15,000 USDC
View results
Submission Details
Severity: medium

`latestRoundData()` problem

Summary

This is the latestRoundData() problem, the contract call latestRoundData() but does not check the return value

Vulnerability Details

https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/blob/main/src/libraries/OracleLib.sol#L26

Impact

This could lead to stale prices according to the Chainlink documentation:
https://docs.chain.link/data-feeds/price-feeds/historical-data

Related report:
code-423n4/2021-05-fairside-findings#70

Tools Used

vs code

Recommendations

we can refer to :
https://github.com/sherlock-audit/2023-02-blueberry-judging/issues/94

Support

FAQs

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