Chainlink's latestRoundData might return stale or incorrect results
description
Description: Chainlink's latestRoundData() is used but there is no check if the return value indicates stale data. This could lead to stale prices according to the Chainlink documentation
The PriceOracle._getPriceFeed() function uses Chainlink's latestRoundData() to get the latest price. However, there is no check if the return value indicates stale data.
subject
Chainlink's latestRoundData might return stale or incorrect results
description
Description: Chainlink's latestRoundData() is used but there is no check if the return value indicates stale data. This could lead to stale prices according to the Chainlink documentation
The PriceOracle._getPriceFeed() function uses Chainlink's latestRoundData() to get the latest price. However, there is no check if the return value indicates stale data.
impact-
The PriceOracle could return stale price data for the underlying asset.recommendation
Consider adding checks for stale data.
locations
severity
Medium
damage
exploitability
category
Oracle Manipulation
system_generated: auditor:rajatbeladiya submission_id:1772717350