Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Set maximum limit to reportExpirationTimeSec
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnaguib committed Apr 29, 2019
1 parent a95c5a9 commit 8e6ade4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/MedianOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ contract MedianOracle is Ownable, IOracle {
uint256 minimumProviders_)
public
{
require(reportExpirationTimeSec_ < MAX_REPORT_EXPIRATION_TIME);
require(reportExpirationTimeSec_ <= MAX_REPORT_EXPIRATION_TIME);
require(minimumProviders_ > 0);
reportExpirationTimeSec = reportExpirationTimeSec_;
reportDelaySec = reportDelaySec_;
Expand All @@ -65,7 +65,7 @@ contract MedianOracle is Ownable, IOracle {
external
onlyOwner
{
require(reportExpirationTimeSec_ < MAX_REPORT_EXPIRATION_TIME);
require(reportExpirationTimeSec_ <= MAX_REPORT_EXPIRATION_TIME);
reportExpirationTimeSec = reportExpirationTimeSec_;
}

Expand Down

0 comments on commit 8e6ade4

Please sign in to comment.