From c5f81510a0c0e090d457adb8d594cad860958226 Mon Sep 17 00:00:00 2001 From: Christophe Le Bars Date: Sun, 16 Feb 2020 18:03:26 +0100 Subject: [PATCH] campaign duration >= 12h =< 360d --- contracts/SimpleRougeCampaign.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/SimpleRougeCampaign.sol b/contracts/SimpleRougeCampaign.sol index b3a6517..3d68ce6 100644 --- a/contracts/SimpleRougeCampaign.sol +++ b/contracts/SimpleRougeCampaign.sol @@ -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;