This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
OxZ00mer - No L2 sequencer check when getting ETH price for the sake of calculating keeper fees #146
Labels
Non-Reward
This issue will not receive a payout
Sponsor Disputed
The sponsor disputed this issue's validity
OxZ00mer
medium
No L2 sequencer check when getting ETH price for the sake of calculating keeper fees
Summary
The lack of a sequencer uptime check allows for the use of a stale price for calculating keeper payouts.
Vulnerability Detail
In the case of sequencer downtime, the prices provided by the Chainlink ETH price feed can become outdated, paying the keepers out with outdated rates.
Impact
If ETH was to significantly move in price while the sequencer is down it will cause financial damage to the protocol.
Code Snippet
https://github.com/sherlock-audit/2023-07-perennial/blob/main/root/contracts/attribute/Kept.sol#L62
Tool used
Manual Review
Recommendation
Consider using the following Chainlink feed to conduct a check for whether the L2 sequencer is down or not.
https://blog.chain.link/how-to-use-chainlink-price-feeds-on-arbitrum/#almost_done!_meet_the_l2_sequencer_health_flag
The text was updated successfully, but these errors were encountered: