An issue was identified in the LendingPool.sol contract regarding how the protocol handles bad debt during the liquidation process. The final step of liquidation is executed by the Stability Pool, which calls finalizeLiquidation() to transfer reserve assets (crvUSD) to reserveRTokenAddress. However, the protocol lacks a proper mechanism to absorb bad debt, leading to a risk of insolvency and potential bank runs.
initiateLiquidation() in LendingPool.sol
finalizeLiquidation()
When a borrower’s health factor falls below the healthFactorLiquidationThreshold, liquidation is triggered via initiateLiquidation(). The final step of liquidation occurs when the Stability Pool calls finalizeLiquidation(), which transfers crvUSD to reserveRTokenAddress to cover the bad debt. However, the mechanism for handling bad debt is flawed due to the following reasons:
Lack of Liquidator Incentive: There is no direct incentive for liquidators, which discourages participation and increases the probability of accumulating bad debt.
No Defined Source of crvUSD Deposits: The protocol assumes that crvUSD will always be available in the Stability Pool, but there is no deposit mechanism for crvUSD in the codebase.
Risk of Insolvency & Bank Runs: Since crvUSD is not properly socialized among lenders, early lenders can withdraw their funds, leaving later lenders at risk of losing their deposits in case of large-scale bad debt accumulation.
The protocol’s failure to properly mitigate bad debt can lead to insolvency.
Potential for Bank Runs: If a significant amount of bad debt accumulates, early lenders can withdraw while later lenders may suffer losses.
Manual
Introduce Liquidator Incentives: Provide a liquidation bonus or discount to encourage liquidators to participate in the process.
Implement a Socialized Loss Mechanism: Ensure bad debt is distributed among all lenders rather than affecting only late withdrawers.
Establish a Clear Deposit Mechanism for crvUSD: Ensure that crvUSD is funded adequately through deposits or a reserve mechanism before being relied upon for covering bad debt.
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.