You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
sherlock-admin opened this issue
Apr 30, 2023
· 0 comments
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
Undesired behaviour of chainlink feeds when sequencer is down
Summary
No check to see if sequencer is down in Chainlink feeds
Vulnerability Detail
It is recommended to follow the code example of Chainlink:
See this, but this is not being followed and as such the answer data returned in latestRoundData(), representing sequencer could be any of the following:
// Answer == 0: Sequencer is up
// Answer == 1: Sequencer is down
Impact
Chainlink feeds lack check for when seqquencer is down
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
Bauchibred
medium
Undesired behaviour of chainlink feeds when sequencer is down
Summary
No check to see if sequencer is down in Chainlink feeds
Vulnerability Detail
It is recommended to follow the code example of Chainlink:
See this, but this is not being followed and as such the
answer
data returned inlatestRoundData()
, representing sequencer could be any of the following:// Answer == 0: Sequencer is up
// Answer == 1: Sequencer is down
Impact
Chainlink feeds lack check for when seqquencer is down
Code Snippet
https://github.com/sherlock-audit/2023-04-blueberry/blob/96eb1829571dc46e1a387985bd56989702c5e1dc/blueberry-core/contracts/oracle/ChainlinkAdapterOracle.sol#L77-L97
Tool used
Manual Review
Recommendation
Introduce a method to check if the sequencer is down in the protocol this could be done by implementing a boolean check as simple as the bbelow:
Duplicate of #142
The text was updated successfully, but these errors were encountered: