Closed toyv0 closed 1 year ago
sanity checks are the following
`(uint80 roundId, int256 price, , uint256 timestamp, uint80 answeredInRound) = tokenPrice.latestRoundData();
require(answeredInRound >= roundId, "Stale price");
require(timestamp != 0, "Round not complete");
require(price > 0, "Chainlink answer reporting 0");`