Calculating redeem
is susceptible to precision loss due to division before multiplication.
LibUnripe.getPenalizedUnderlying()
calculates redeem amount of Ripe Tokens. 1) underlyingAmount
multiplication by s.recapitalized
2) dividing by totalUsdNeeded
3) mul by amount
4) div by supply
redeem of Ripe tokens calculates wrong
Manual
Multiplication before division
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.