29445 - [SC - Insight] latestRoundData Call May Result Stale
Previous29432 - [SC - Low] Malicious project can grief reward payouts from...Next29467 - [SC - Low] RewardTimelockexecuteRewardTransaction - L Inco...
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Path: ./src/oracles/FeedRegistryL2.sol
100: (, int256 answer, uint256 startedAt, , ) = SEQUENCER_UPTIME_FEED.latestRoundData(); // @audit-issue
...
( roundId, rawPrice, , updateTime, answeredInRound ) = AggregatorV3Interface(XXXXX).latestRoundData();
require(rawPrice > 0, "Chainlink price <= 0");
require(updateTime != 0, "Incomplete round");
require(answeredInRound >= roundId, "Stale price");
...