The RToken contract's mint() function incorrectly mints the non-scaled amountToMint instead of the amountScaled amount.
The RToken contract's mint() function incorrectly mints the non-scaled amountToMint instead of the amountScaled amount. When users deposit assets, they receive more RTokens than they should based on the current liquidity index, creating a mismatch between protocol assets and RToken supply.
Users can withdraw more assets than they deposited
Protocol becomes insolvent as RToken supply exceeds asset reserves
Early depositors can drain protocol's assets
manual code review
Fix the mint function to use the scaled amount
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.