Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

0xG0P1 - Missing checks for whether Optimism Sequencer is active #107

Closed
github-actions bot opened this issue Apr 22, 2024 · 1 comment
Closed

0xG0P1 - Missing checks for whether Optimism Sequencer is active #107

github-actions bot opened this issue Apr 22, 2024 · 1 comment
Labels
Excluded Excluded by the judge without consulting the protocol or the senior Non-Reward This issue will not receive a payout

Comments

@github-actions
Copy link

github-actions bot commented Apr 22, 2024

0xG0P1

medium

Missing checks for whether Optimism Sequencer is active

Summary

Missing checks for whether Optimism Sequencer is active

Vulnerability Detail

the protocol intends to deploy to Optimism

Chainlink recommends that users using price oracles, check whether the Optimism sequencer is active

https://docs.chain.link/data-feeds#l2-sequencer-uptime-feeds
https://docs.chain.link/data-feeds/l2-sequencer-feeds#optimism-base-metis-and-scroll

If the sequencer goes down, the index oracles may have stale prices, since L2-submitted transactions (i.e. by the aggregating oracles) will not be processed.

Impact

Stale prices, while fetching the price through getExpectedExchange due to sequencer is down the function returns stale price which affects the minimumAmountOut in claimAndDonateRewards

Code Snippet

https://github.com/sherlock-audit/2024-04-alchemix/blob/main/v2-foundry/src/utils/collectors/OptimismRewardCollector.sol#L57
https://github.com/sherlock-audit/2024-04-alchemix/blob/main/v2-foundry/src/utils/collectors/OptimismRewardCollector.sol#L91-L143
https://github.com/sherlock-audit/2024-04-alchemix/blob/main/v2-foundry/src/utils/RewardRouter.sol#L55

Tool used

Manual Review

Recommendation

Use sequencer oracle to determine whether the sequencer is offline or not

@github-actions github-actions bot added the Excluded Excluded by the judge without consulting the protocol or the senior label Apr 22, 2024
@sherlock-admin4 sherlock-admin4 changed the title Acidic Pewter Wallaby - Missing checks for whether Optimism Sequencer is active 0xG0P1 - Missing checks for whether Optimism Sequencer is active Apr 30, 2024
@sherlock-admin4 sherlock-admin4 added the Non-Reward This issue will not receive a payout label Apr 30, 2024
@SteveHarrington0
Copy link

SteveHarrington0 commented Apr 30, 2024

@Hash01011122 This issue should be a duplicate of #14. Kindly escalate this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Excluded Excluded by the judge without consulting the protocol or the senior Non-Reward This issue will not receive a payout
Projects
None yet
Development

No branches or pull requests

2 participants