Users can burn all their DebtTokens
through repayments while still owing debt due to index increases. This breaks debt accounting, making it impossible to repay the remaining debt and preventing users from closing liquidations, leaving them permanently stuck in liquidation state.
Example scenario (crvUSD
without decimals for simplicity):
User borrows 500 crvUSD
(usageIndex = 1.1e27
):
User repays 500 crvUSD
(usageIndex
increases to 1.2e27
):
User still has remaining debt (scaledDebtBalance = 37.879
) that cannot be repaid because all debt tokens have been burned.
High: Users can burn all debt tokens while still owing debt. Remaining debt becomes unrepayable as there are no debt tokens to burn. Users cannot close liquidations due to remaining debt.
Align scaling logic between DebtToken
and LendingPool
.
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.