The transferFrom
function uses getNormalizedIncome
without updating the state, and also double scales the amount to transfer.
The transferFrom of the Rtoken allow users to transfer their tokens to another address
The issue with this implementation is that, it uses the getNormalizedIncome
which returns the previous normalizedIncome
and does not update the state, this will lead to transferring incorrect amount.
Another issue with this is that, the function scales the amount in the transfer
function, then again the overridden internal _update did the same , this will lead to incorrect scaling and thus incorrect transfer of assets
Incorrect scaling of the assets an also incorrect interest quote.
Manual review
Scales the amount only once and update the interest by calling the updateState before quoting the normalizedIncome
.
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.