In the current implementation of the liquidation process, there's a potential issue that can prevent a necessary liquidation even when the collateral ratio of a user is above 100%. This can happen due to the bonus calculation logic, which could decrease the user's health after the liquidation, leading to a revert. This could accelerate the insolvency of the protocol.
Consider the following scenario:
Scenario where liquidation is not possible:
User A mints 1000DSC using 1 WETH as collateral.
The WETH price drops to 1099 USD.
User B tries to liquidate User A by repaying 500DSC on their behalf.
Before the liquidation, User A's health is 0.5495, making liquidation possible.
User B receives approximately 0.5045 WETH through the liquidation.
User A's health decreases to 0.549, which is lower than before the liquidation, causing a revert.
Even though the collateral ratio is sufficient, the liquidation doesn't occur, and this could accelerate the protocol's insolvency.
This can quickly lead to insolvency of the protocol if it is not cleared despite a sufficient collateralization ratio.
VS Code
In a situation where health is decreased by bonus at liquidation, the amount of bonus should be decreased to prevent health from decreasing.
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.