How do we know if the validation of checking stale data is sufficient? Is only checking timestamp data sufficient?
(uint256 roundId,,, uint256 updatedAt, uint80 answeredInRound) =
AggregatorV3Interface(feed).latestRoundData();```
Is checking for updateAt timestamp sufficient to know if it's stale data?
if (block.timestamp < updatedAt + feedConfig.priorityPeriodThreshold) return returnValues;
Is there a need to also check for roundId?
require(answeredInRound >= roundID, "Stale price");
https://docs.chain.link/data-feeds#check-the-timestamp-of-the-latest-answer
– DevCrypto Sep 09 '23 at 04:13