To found out this Bug, Workflow is like below
Lp call `LendingPool :: deposit()` with amount
this function further call ReserveLibrary.deposit()
after updating Reserves interst updateReserveInterests (liquidityIndex and usagesIndex), minting of `rToken` happens
here balnaceIncrease is calculated for previously deposited LPs
But as you can see this balanceIncreasevariable never used further in that code base, and _userState[onBehalfOf].indexis updated with current liquidity index,
That means all the Interst accured by Lp from previous liquidity index to current liquidity index will be lost.
https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/core/tokens/RToken.sol#L129-L139
Lp losing their intest on previous deposited value.
Manual review
Add balanceIncreasedwith `amountToMint` and Mint resultant amount to caller
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.