The closeLiquidation()
function currently has a whenNotPaused
modifier, which prevents users from closing their liquidation if the contract is paused
. This can lead to situations where users are unable to act within the grace period
, potentially resulting in their liquidation.
When a user's liquidation is initiated, they have a grace period to close it.
However, if the contract is paused
during this period, the user cannot make repayments or execute the closeLiquidation()
function due to the whenNotPaused
modifier. This oversight can lead to unintended liquidations, as users may miss the opportunity to close their liquidation while the contract is paused
.
Users may be unable to close their liquidation during the pause period, leading to:
Loss of user funds due to the inability to act within the grace period.
Manual Review
Implement a way to ensure that pause duration does not eat into the user's grace period.
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.