ChainlinkUtil.getPrice()
doesn't work properly when startedAt = 0
.
According to the chainlink docs, sequencerUptimeFeed
can return a 0 value for startedAt
if it is called during an "invalid round".
An "invalid round" is described to mean there was a problem updating the sequencer's status, possibly due to network issues or problems with data from oracles, and is shown by a startedAt
time of 0 and answer
is 0.
But in getPrice()
, it will work without reverting because timeSinceUp
is greater than SEQUENCER_GRACE_PERIOD_TIME
.
ChainlinkUtil.getPrice()
won't revert when the sequencer uptime feed is not updated or called in an invalid round.
Manual Review
getPrice()
should revert when startedAt = 0
.
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.