Contract - LendingPool.sol
The initiateLiquidation()
function is used to start user's position liquidation.
The closeLiquidation()
function is used to liquidate user's position, it can be called by anyone.
Suppose grace period passed; now USER_A
wants to liquidate the position, but he won't be able to achieve this because of condition -
Now USER_A
tries to initilize liquidation again, but he won't be able to because of check(below) inside initiateLiquidation()
-
so if grace period passed without any liquidation, then user's position will be freezed forever because all 3 functions initiateLiquidation()
, closeLiquidation()
and finalizeLiquidation()
will revert.
User positions will never be liquidated, if it's not done in grace period.
If user's position not liquidated, means it can lead to very drastic loss to protocol.
Manual
change the current architecture of liquidation.
instead of reverting modify changes to state variables associated with liquidation, so the operations like re-initialization
can be performed, and position can be liquidated in other attempts.
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.