In the LibUnripe::unripeToUnderlying()
function, division below take an input parameter, supply
, which does not have any zero-value
checks, which may lead to the functions reverting
when zero
is passed.
underlying
is calculated as follows:
The vulnerability stems from the .div(supply)
The unripeToUnderlying()
function will revert if supply
is zero
.
Manual Review
Perform zero-value check on the function parameters.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.