Incorrect event emission takes place in ReserveLibrary::withdraw
.
Note that incorrect event emission has been a valid issue in codehawks contests previously.
In RToken::burn
the comment suggests that the first returned value should be the amount of scaled tokens burned:
However, the first returned variable is amount, not the scaled amount.
Therefore, the burnedScaledAmount value here is not actually the scaled amount, it is just the amount.
Therefore, the event emission here is incorrect.
Front end services may utilise these incorrect values, causing UI errors and misleading users.
Manual review
Return the correct value in Rtoken::burn
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.