DeFiHardhatFoundry
250,000 USDC
View results
Submission Details
Severity: medium
Valid

LibUsdOracle doesn't work because of hardcoded `chainlinkRegistry`

Summary

Currently chainlinkRegistry is hardcoded to 0x47Fb2585D2C56Fe188D0E6ec628a38b74fCeeeDf.

However protocol is supposed to migrate into L2, and Chainlink Registry has different address on different networks. That address is empty on Arbitrum, Polygon, Optimism etc.

Impact

Price cannot be fetched from Chainlink.

Tools Used

Manual Review

Recommendations

Configure chainlinkRegistry in storage during deployment

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

Chainlink Oracle FeedRegistry only available on L1

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.