The burn
function in DebtToken contract emits the following event:
with:
amount
should be in underlying asset units, but the burn
function actually passes the amount in debt token units:
amountScaled
is the amount divided by the index to get the amount in debt token index. amount
should be passed when emitting the event.
The impact of this issue is medium as it leads to event emission with incorrect data, leading to important front-end integration issues.
Manual review.
Make sure to pass the right value to for the amount
key in the 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.