The RToken is meant to be interest-bearing token, similar to Aave's aToken. Users deposit crvUSD tokens get minted RTokens and this tokens should accrue interest based on the liquidityIndex. However upon minting:
We can see that in case of balance increase, this value is not applied anywhere, but only dynamically incremented, which has no effect. This makes the index-based interest accrual implementation completely inefficient, thus can lead to loss of RToken for lenders.
High, can cause loss of tokens for lenders, as they will not get more tokens regardless of the interactions with the protocol (movement of the liquidityIndex)
Manual Review
The balance increase should be applied also upon minting.
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 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.