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 Dec 31, 2023. It is now read-only.
sherlock-admin opened this issue
Jul 1, 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
getPrice() and getOriginalPrice() doesn't check whether arbitrum sequencer is down
Summary
Downtimes are common on L2s so it is important to validate if Arbitrum sequencer is operational before any state-changing operation occurs. This is to ensure that the prices are fresh and not stale.
Vulnerability Detail
D3Oracle.getPrice() and D3Oracle.getOriginalPrice() functions don't check if Arbitrum sequencer is down.
Impact
Stale prices would be used and might result in false liquidations.
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
seeques
medium
getPrice() and getOriginalPrice() doesn't check whether arbitrum sequencer is down
Summary
Downtimes are common on L2s so it is important to validate if Arbitrum sequencer is operational before any state-changing operation occurs. This is to ensure that the prices are fresh and not stale.
Vulnerability Detail
D3Oracle.getPrice() and D3Oracle.getOriginalPrice() functions don't check if Arbitrum sequencer is down.
Impact
Stale prices would be used and might result in false liquidations.
Code Snippet
https://github.com/sherlock-audit/2023-06-dodo/blob/main/new-dodo-v3/contracts/DODOV3MM/periphery/D3Oracle.sol#L48
https://github.com/sherlock-audit/2023-06-dodo/blob/main/new-dodo-v3/contracts/DODOV3MM/periphery/D3Oracle.sol#L58
Tool used
Manual Review
Recommendation
Follow the chainlink example code
https://docs.chain.link/data-feeds/l2-sequencer-feeds#example-code
Duplicate of #62
The text was updated successfully, but these errors were encountered: