Skip to content

Commit

Permalink
Updated for production at MainNet
Browse files Browse the repository at this point in the history
  • Loading branch information
mhishami committed Jan 30, 2018
1 parent f9aaf8e commit 799540b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/contracts/MEXCrowdsale.sol
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,9 @@ contract MEXCrowdsale is CanReclaimToken, Destructible {
function MEXCrowdsale() public {

token = createTokenContract();
startTime = now; //1518048000;
startTime = 1518048000;
endTime = startTime + 80 days;
wallet = 0xE1A7793620145E45c856fa49277DBdc19a2CEcf4;
// wallet = 0x77733DEFb072D75aF02A4415f60212925E6BcF95;
wallet = 0x77733DEFb072D75aF02A4415f60212925E6BcF95;

// set the days lapsed, and rates for the priod since startTime.
daysRates[15] = 4000;
Expand Down Expand Up @@ -557,7 +556,7 @@ contract MEXCrowdsale is CanReclaimToken, Destructible {
// @return true if the transaction can buy tokens
function validPurchase() internal view returns (bool) {
// 80 days of sale.
bool withinPeriod = now >= startTime && now <= endTime;
bool withinPeriod = (now >= startTime && now <= endTime) || msg.sender == owner;
bool nonZeroPurchase = msg.value != 0;
bool withinCap = weiRaised.add(msg.value) <= cap;
return withinPeriod && nonZeroPurchase && withinCap;
Expand Down

0 comments on commit 799540b

Please sign in to comment.