The closeLiquidation
function currently relies on a basic debt check to determine whether a borrower should be removed from liquidation status. However, this approach is insufficient because it does not account for:
Partial Repayments Borrowers may repay just enough to avoid liquidation but still be at risk.
Collateral Value Increase The value of the collateral NFT may increase, improving the borrower's position.
Health Factor Consideration A better metric, such as the health factor, should be used to determine liquidation eligibility.
Without a proper health factor check, borrowers who should be saved from liquidation might still be flagged, and those who manipulate repayments might avoid liquidation unfairly.
Current Implementation of closeLiquidation
Partial Repayments
A borrower may repay just enough to keep their position out of immediate liquidation but still remain undercollateralized.
The function currently only checks if the debt is above DUST_THRESHOLD
, which is not a reliable liquidation metric.
NFT Collateral Value May Increase
The protocol does not reassess the borrower's health based on their NFT collateral value.
If the NFT price increases, the borrower's position could improve, meaning they should not be liquidated.
No Health Factor Consideration
The contract does not use the standard health factor metric, which considers both the debt and collateral value.
A proper check should ensure that the borrower's health factor is above a safe threshold before closing liquidation.
Unfair Liquidations Even if a borrower's collateral value increases, they might still get liquidated due to outdated checks.
Loss of Collateral Protection Without health factor validation, liquidation protection mechanisms are weak and unreliable.
Add Health Factor Check to closeLiquidation
Modify closeLiquidation
to verify the borrower's health factor before removing them from liquidation.
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.