In the LendingPool.sol contract the liquidation logic is unfair because it allows the stability pool to finalize liquidations even when the protocol is paused, while users are unable to close liquidations during the same period.
The vulnerability arises from the protocol's handling of paused states during liquidations. When the protocol is paused, users are unable to close their liquidations, but the stability pool can still finalize liquidations once the grace period expires. This creates an unfair scenario where users are disadvantaged during emergency situations when the protocol is paused.
In the event of an emergency that causes the protocol to be paused, users will be unable to close their liquidations, potentially leading to the loss of their collateral. Meanwhile, the stability pool can finalize these liquidations, resulting in an unfair advantage. This can lead to financial losses for users and damage the trust and integrity of the protocol.
Manual Review
To mitigate this vulnerability, the protocol should be adjusted to ensure fairness during paused states. There are two potential solutions:
Allow users to close their liquidations even when the protocol is paused.
Prevent the stability pool from finalizing liquidations when the protocol is paused.
Implementing either of these solutions will ensure that users are not unfairly disadvantaged during emergency situations and maintain the integrity of the protocol.
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.