EXCHANGE_RATE_PRECISION
in AssertToken.sol should not be a constant because different token have different value of decimals
so it can create a wrong calculation in deposit
function in ThunderLoan.sol and mintAmount in deposit function give wrong value.
EXCHANGE_RATE_PRECISION
in AssertToken.sol should not be a constant because different token have different value of decimals
so it can create a wrong calculation in deposit
function in ThunderLoan.sol and mintAmount in deposit function give wrong value.
above code is showing that EXCHANGE_RATE_PRECISION
is a constant and it is not a good practice because different token have different value of decimals
.
for example:
mintAmount in deposit function give wrong value.
Manual review
This can give a correct value of decimals.
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.