When transfering RToken we have inconsistnet logic in the transfer and transferFrom functions that calculate and send the amount to the target address.
Due to the fact tha the _liquidityIndex is never updated by the LendingPool in the RToken contract it would always be equal to 1 RAY as this is the values set in the constructure. This means that when we call transferFrom we would transfer the same amount of RTokens that the input amount coresponds to. Compared to when we call the transfer function we would transfer current equivalent RToken amount(based on the current liqudity index) of the input amount which is in underlying asset units.
Inconsistenciy when transfering tokens depending on if we use transfer or transferFrom.
Manual Review
Rework the two functions to behave in the same way, either both transfering the input amount of tokens or expecting input in underlying asset units and transfering the equivalent based on the current liquidity index
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.