The burn function is responsible for burning tokens and transferring the underlying asset to the receiver. However, the function emits the incorrect value in the Burn event:
amount (underlying) is emitted instead of amountScaled (scaled debt value).
The event should reflect the actual burned amount in scaled units, as it is used for accounting and tracking.
Here, amount is emitted instead of amountScaled, which does not accurately represent the burned amount.
Explorers and analytic tools relying on Burn event will log incorrect values.
Manual Review
Emit amountScaled Instead of amount in Burn Event
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.