Skip to content

Commit

Permalink
Update ZKSyncSequencerUptimeFeed.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaveracll committed Aug 28, 2024
1 parent 8927ee6 commit e93d909
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions contracts/src/v0.8/l2ep/dev/zksync/ZKSyncSequencerUptimeFeed.sol
Original file line number Diff line number Diff line change
Expand Up @@ -209,20 +209,20 @@ contract ZKSyncSequencerUptimeFeed is

/// @inheritdoc AggregatorInterface
function getAnswer(uint256 roundId) external view override checkAccess returns (int256) {
if (_isValidRound(roundId)) {
return _getStatusAnswer(s_rounds[uint80(roundId)].status);
if (!_isValidRound(roundId)) {
revert NoDataPresent();
}

revert NoDataPresent();
return _getStatusAnswer(s_rounds[uint80(roundId)].status);
}

/// @inheritdoc AggregatorInterface
function getTimestamp(uint256 roundId) external view override checkAccess returns (uint256) {
if (_isValidRound(roundId)) {
return s_rounds[uint80(roundId)].startedAt;
if (!_isValidRound(roundId)) {
revert NoDataPresent();
}

revert NoDataPresent();
return s_rounds[uint80(roundId)].startedAt;
}

/// @inheritdoc AggregatorV3Interface
Expand Down

0 comments on commit e93d909

Please sign in to comment.