Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
campaign duration >= 12h =< 360d
Browse files Browse the repository at this point in the history
  • Loading branch information
clbrge committed Feb 16, 2020
1 parent f468063 commit c5f8151
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/SimpleRougeCampaign.sol
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ contract SimpleRougeCampaign {
uint256 rgeBalance = rge.balanceOf(address(this));
require(rgeBalance >= issuance * tare);

// XXX minimum campaign duration 1 day, maximum 120 days (could be a param for tare ?)
require(_campaignExpiration >= now + 60*60*24);
require(_campaignExpiration <= now + 60*60*24*120);
// minimum campaign duration 12 hours, maximum 360 days (XXX could be a param for tare ?)
require(_campaignExpiration >= now + 60*60*12);
require(_campaignExpiration <= now + 60*60*24*360);

name = _name;
campaignIssued = true;
Expand Down

0 comments on commit c5f8151

Please sign in to comment.