When the contract is paused, users cannot call depositNFT to add collateral or repay to pay off their debt. However, the finalizeLiquidation function remains callable, allowing liquidations to proceed. As a result, once liquidation begins, users have no way to protect themselves if the market is paused.
depositNFT and repay both require whenNotPaused
During a pause, new collateral cannot be posted, and debt cannot be repaid.
Even while paused, the finalizeLiquidation function can still be called by the Stability Pool.
If a user’s liquidation process starts and the market is paused, that user cannot prevent or stop liquidation because they cannot add collateral or repay their debt.
Because finalizeLiquidation remains accessible while the market is paused, users who rely on repaying or adding collateral to avoid liquidation will be unable to do so.
Users can be forced into liquidation if the market is paused.
No mechanism exists for users to protect themselves by adding collateral or repaying debt during this period.
This could lead to unexpected asset loss and liquidation events.
Manual Code Review and Foundry
Allow debt repayment and collateral addition (repay and depositNFT) even when the market is paused.
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.