Skip to content

Commit 977c6a7

Browse files
committed
check startedAT > 0
1 parent 295000b commit 977c6a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contracts/ChainlinkPriceFeedV1R1.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ contract ChainlinkPriceFeedV1R1 is IChainlinkPriceFeedR1, IPriceFeed, BlockConte
6161
// Answer == 1: Sequencer is down
6262
require(answer == 0, "CPF_SD");
6363

64+
// startedAt timestamp will be 0 when the round is invalid.
65+
require(startedAt > 0, "CPF_IR");
66+
6467
// Make sure the grace period has passed after the sequencer is back up.
6568
uint256 timeSinceUp = block.timestamp - startedAt;
6669
// CPF_GPNO: Grace Period Not Over

0 commit comments

Comments
 (0)