Skip to content

Commit

Permalink
MainSale updated with 250:1 rate for period-1 and configurable end ti…
Browse files Browse the repository at this point in the history
…me to support whitepaper requirements
  • Loading branch information
btalbot committed Nov 29, 2017
1 parent c2b77c9 commit 62cd213
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion contracts/MainSale.sol
Expand Up @@ -23,6 +23,13 @@ contract MainSale is FlipCrowdsale {
return tok.TOTAL_TOKENS().sub(tok.totalSupply());
}

function setEndTime(uint256 _endTime) onlyOwner public {
require(!hasEnded());
require(_endTime >= now);
require(_endTime >= startTime);
endTime = _endTime;
}

/*
* internal functions
*/
Expand All @@ -37,7 +44,7 @@ contract MainSale is FlipCrowdsale {
uint256 rate;
// checks for before startTime and after endTime are handled elsewhere
if(nowts < startTime.add(period)) {
rate = 240;
rate = 250;
} else if(nowts < startTime.add(period).add(period)) {
rate = 230;
} else if(nowts < startTime.add(period).add(period).add(period)) {
Expand Down

0 comments on commit 62cd213

Please sign in to comment.