Incorrect scaling is done in rtoken contract while minting new tokens.
Following is mint function in Rtoken contract
Now instead of minting amountScaled tokens to the depositor whole amount i.e unscaled amount is minted which is incorrect.Due to this when we check the balanceOf(onBehalfOf) it will multiply the unscaled amount with the liquidity index. Therefore increasing the balance of the user many times larger than intended.
Wrong amount of tokens minted to the user
Manual Review
Mint tokens equal to amount scaled to the user instead of the whole amount to mint.
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.