The RToken.transferFrom() function calculates the transfer amount scaledAmount using _liquidityIndex, which is a state variable of the RToken contract rather than the current liquidity index of the LendingPool. As a result, this function transfers an incorrect amount.
The RToken.transferFrom() function calculates the transfer amount scaledAmount using _liquidityIndex.
However, _liquidityIndex is a state variable of the RToken contract, so it differs from the actual liquidity index of the LendingPool.
As a result, the transfer amount is incorrect.
The transfer amount is incorrect.
Manual review
Use the liquidity index from the LendingPool.
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.