Missing 'whenNotPaused' modifier in 'finalizeLiquidation' function.
Other functions have whenNotPaused modifiers, which is a safe approach, but finalizeLiquidation is missing. Even if it is called by onlyStabilityPool, it should not be callable when paused.
Liquidation can still be performed when the contract is suspended, potentially bypassing the contract's protections.
Manual review
The whenNotPaused modifier should always be added to ensure that critical operations cannot be performed in the paused state to ensure the safety of the system.
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.