The mint function of DebtToken
incorrectly mints amountToMint
(amount
+ balanceIncrease
) when it should only mint amount
. This allows a user to get more debt tokens than intended if they have an existing debt token balance.
The mint
function mints an inflated amount to the user, which allows a user to own more debt tokens than they should. The correct mint amount should be amount
since _update
contains the logic to scale the mint amount.
Users receive more debt tokens than they should when borrowing from the protocol
Protocol's total supply of debt tokens becomes inflated
Manual
Fix the mint function to only mint the original 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.