From contest details, it is assumed that protocol work with token that have any decimals.
But both descaleAmount()
and **scaleAmount()
**function assumed that all token will have decimals smaller than 18. When token's decimals > 18, it will make it become underflow, lead to unexpected result for protocol.
unexpected result for protocol due to underflow
Manual review
Handle when decimals > 18 and < 18 separately
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.