This repository has been archived by the owner on Dec 17, 2023. It is now read-only.
SolidityATL - Vulnerable unpause logic flow lead to unfair forced liquidations #168
Labels
Duplicate
A valid issue that is a duplicate of an issue with `Has Duplicates` label
Medium
A valid Medium severity issue
Reward
A payout will be made for this issue
Sponsor Disputed
The sponsor disputed this issue's validity
SolidityATL
medium
Vulnerable unpause logic flow lead to unfair forced liquidations
Summary
Before pausing a protocol a position can be in good health.Once the protocol is paused that position cannot be updated. After resuming a pause, the position can immediately be liquidated if the positions falls below maintenance after settlement. This doesn't give the borrower a fair advantage to keep their collateral above
maintenance.
Vulnerability Detail
Impact
Borrowers are liquidated without given the chance to credit their account to keep a healthy maintenance level on their open positions
Code Snippet
https://github.com/sherlock-audit/2023-05-perennial/blob/main/perennial-mono/packages/perennial/contracts/collateral/Collateral.sol#L108-L135
Tool used
Manual Review
Recommendation
The recommendation is to incorporate a threshold period (ie. 3hrs) so borrowers can update their positions to a healthy level after the protocol is unpaused.
Duplicate of #190
The text was updated successfully, but these errors were encountered: