Incorrect transfer amount in RToken::transfer()
In RToken::transfer(), users can transfer their rTokens. The input parameter is in underlying asset units. So we need to convert the amount to scaled amount. The problem is that we divide the getNormalizedIncome()
twice, this will cause that the actual transfer amount is less than users' expectation.
In transfer() function, we will calculate the scaled amount for the input amount and then we trigger super.transfer()
. In super.transfer()
function, we will trigger _update()
function in RToken, we will divide the getNormalizedIncome()
again, and this will cause the actual transferred amount is less than users' expectation.
The actual transfer amount will less than users' expectation.
Manual
Do not need to calculate the scaled amount in transfer() 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.