The RToken contract correctly calculates balance increase from interest accrual during additional deposits but fails to include this increase in the final mint amount, leading to users receiving fewer RTokens than they should.
In the mint function, the contract:
Correctly calculates interest-accrued balance increase
But fails to add this increase to the final mint amount
Users receive fewer RTokens than entitled during additional deposits as the contract fails to account for accrued interest in the mint amount, resulting in permanent loss of interest-accrued tokens.
Manual Review
Include the calculated balance increase when minting new tokens
The balanceIncrease is the interest that has already accrued on the user's existing scaledBalance since their last interaction. It's not something you mint as new tokens in the _mint function.
The balanceIncrease is the interest that has already accrued on the user's existing scaledBalance since their last interaction. It's not something you mint as new tokens in the _mint function.
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.