The design choice to not allow partial repayment or additional collateral will cause a complete loss of positions for borrowers as liquidators can trigger liquidation without options to restore health factor.
In LendingPool.sol the initiateLiquidation() and closeLiquidation() functions don't provide mechanisms for users to:
Partially repay their debt
Add more collateral
to prevent liquidation once initiated.
User's health factor needs to be below healthFactorLiquidationThreshold
User must be under liquidation status
User needs full debt repayment to close liquidation
The borrowers are forced to repay full debt amount to prevent liquidation, which may be impossible in many cases, leading to unnecessary liquidations and loss of collateral.
Add functionality to:
Allow partial debt repayment
Allow additional collateral deposits
Recalculate health factor after these actions
Close liquidation if health factor is restored above threshold
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.