In DebtToken::mint
, the amount minted is wrong. The amountToMint
is in units of underlying assets instead of scaled units(debtToken). This leads to the wong amount of debtToken being minted, making a user to mint incorrect amount of debtToken than they should have.
The issue arises because:
amount
is in underlying asset units
balanceIncrease
is calculated in underlying asset units
These unscaled values are directly used in _mint
However, _mint
should receive scaled units (DebtToken units)
Users receive incorrect amounts of debt tokens when they mint debt tokens.
System accounting becomes inaccurate
Protocol's debt tracking becomes unreliable
Could lead to under-collateralization or excessive borrowing
Protocol's economic model becomes unstable
Manual Review
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.