This repository has been archived by the owner on Jan 7, 2024. It is now read-only.
n33k - Vault: should have a grace period after sequencer is up #176
Labels
Non-Reward
This issue will not receive a payout
n33k
medium
Vault: should have a grace period after sequencer is up
Summary
Oracle only checks if sequence is up but does not check for how long it has been up. If sequencer went down and prices changed significantly. Mass liquidation could happen when it goes up. Should provide a grace period to allow customers to react to such an event.
Vulnerability Detail
Only checks if sequencer is active.
Impact
Unfair liquidation to borrowers when this happens.
Code Snippet
https://github.com/sherlock-audit/2023-06-unstoppable/blob/main/unstoppable-dex-audit/contracts/margin-dex/Vault.vy#L588-L592
Tool used
Manual Review
Recommendation
Have a grace period for customers to react to such event.
Duplicate of #124
The text was updated successfully, but these errors were encountered: