The balanceIncrease is miscalculated due to double conversion.
The balanceIncrease is the increased amount due to interest accrual, but the current implementation doubles-convert the scaledBalance
, meaning that an incorrect balanceIncrease
will be there
The balanceOf already returns the scaled amount, so there's no need of scaling it again
This will lead to double conversion and thus incorrect minting of tokens.
The same happened when burning as well. Another instance is R token mint function.
Double conversion leading to incorrect minting of token
Manual review
To get the interest from last updated index to current index , Get total accumulated balance then substract accumulated value from start to last updated index. Use this line for balanceIncrease
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.