burn function of DebtToken contract, burns incorrect amount of debtTokens. Input argument amountis in terms of asset Tokens, so amountScaled would be the corresponding Debt Token amount.
Instead of burning amountScaled, function burns amount, causing loss of funds to protocol.
The `burn` function improperly uses raw amount instead of scaled debt amount (`amountScaled`) when burning debt tokens:
Whenever users repay the debt in partial amounts, It causes Over-burning of DebtTokens (if interest has accrued, index > 1), which causes loss of funds to the protocol.
users will pay lesser debt than they have to. Can be exploited by malicious attackers to steal funds from protocol.
Manual review
burn amountScaled instead of amount.
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.