This is due to the _liquidityIndex variable
_liquidityIndex is set to 1 RAY in the constructor of RToken. There is the updateLiquidityIndex function , which is ment to update the variable but it is only callable by the LendingPool, leaving the variable equal to 1 RAY practically forever. This makes it impossible for the transferFrom function to perform an accurate transfer, because the amount transferred should be denominated in underlying assets and then scaled by the active liquidity index
RToken::transferFrom performs inacurate transfers which may be an issue in the StabilityPool contract
Manual Review
fetch the liquidity index from LendingPool instead of relying to the _liquidityIndex variable
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.