Submitted by gpersoon
On several locations in the code precautions are taken not to divide by 0, because this will revert the code.
However on some locations this isnt done.
Especially in doYield a first check is done for totalAmount >0, however a few lines later there is an other div(totalAmount) which isnt checked.
The proof of concept show another few examples.
Recommend making sure division by 0 wont occur by checking the variables beforehand and handling this edge case.
Evert0x (Sherlock) confirmed:
Evert0x (Sherlock) commented:
Evert0x (Sherlock) commented:
Evert0x (Sherlock) commented:
