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 17, 2023. It is now read-only.
sherlock-admin opened this issue
Jun 11, 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
Chainlink registry not available on arbitrum & optimism
Summary
The price oracle of the protocol relies on using the chainlink registry to fetch asset prices. According to chainlink docs the registry is currently only available on mainnet.
Vulnerability Detail
The price oracle contract will not be able to register any feeds on arbitrum or optimism due to unavailability of a chainlink registry on both the chains.
Due to a lack of a registry from chainlink on arbitrum and optimism the price oracle contract will render itself useless as it won't be able to register any new feeds and hence not return price for any assets.
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
sufi
high
Chainlink registry not available on arbitrum & optimism
Summary
The price oracle of the protocol relies on using the chainlink registry to fetch asset prices. According to chainlink docs the registry is currently only available on mainnet.
Vulnerability Detail
The price oracle contract will not be able to register any feeds on arbitrum or optimism due to unavailability of a chainlink registry on both the chains.
https://docs.chain.link/data-feeds/feed-registry#contract-addresses
Impact
Due to a lack of a registry from chainlink on arbitrum and optimism the price oracle contract will render itself useless as it won't be able to register any new feeds and hence not return price for any assets.
Code Snippet
https://github.com/sherlock-audit/2023-05-ironbank/blob/main/ib-v2/src/protocol/oracle/PriceOracle.sol#L104
Tool used
Manual Review
Recommendation
Consider creating oracles specific for L2s that use chainlink feeds for two reasons:
Duplicate of #191
The text was updated successfully, but these errors were encountered: