Skip to content

Commit

Permalink
bug: price oracle sentinel (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
axelsly authored Mar 21, 2024
1 parent b368cd5 commit 38a9be4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/protocol/configuration/PriceOracleSentinel.sol
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ contract PriceOracleSentinel is IPriceOracleSentinel {
* @return True if the SequencerOracle is up and the grace period passed, false otherwise
*/
function _isUpAndGracePeriodPassed() internal view returns (bool) {
(, int256 answer, , uint256 lastUpdateTimestamp, ) = _sequencerOracle.latestRoundData();
return answer == 0 && block.timestamp - lastUpdateTimestamp > _gracePeriod;
(, int256 answer, uint256 startedAt, , ) = _sequencerOracle.latestRoundData();
return answer == 0 && block.timestamp - startedAt > _gracePeriod;
}

/// @inheritdoc IPriceOracleSentinel
Expand Down

0 comments on commit 38a9be4

Please sign in to comment.