If Chainlink's latestRoundData()
is called while the previous round is valid and new round has struggles to establish consensus on the new value for the oracle, the price return from the aforementioned function becomes stale. Without proper checks, consumers of this contract may continue using outdated, stale, or incorrect data if oracles are unable to submit and start a new round.
Stale price will be returned in the case of lack of validity checks
Manual Review
Consider adding these checks in the function staleCheckLatestRoundData()
:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.