Permalink
Browse files

added 2nd Tier ICO

  • Loading branch information...
conejoninja committed Jun 8, 2018
1 parent 7ce7e29 commit 2a635f6b86650192494e688405b1429ee60b664f
Showing with 64 additions and 0 deletions.
  1. +64 −0 contracts/ICOTierTwo.sol
@@ -0,0 +1,64 @@
pragma solidity ^0.4.22;

import "./ICO.sol";


/**
* @title ICOTierTwo
* @notice This contract is used to sell tokens to investors
* @author https://marketpay.io/ & https://goo.gl/kdECQu
*/
contract ICOTierTwo is ICO {
/**
* @notice ICO constructor. Definition of ICO parameters and subcontracts autodeployment
*/
constructor(address _SCEscrow, address _SCTokens, address _SCWhitelist, address _SCRefundVault) public {
if (_SCTokens == 0x0) {
revert('Tokens Constructor: _SCTokens == 0x0');
}
if (_SCWhitelist == 0x0) {
revert('Tokens Constructor: _SCWhitelist == 0x0');
}
if (_SCRefundVault == 0x0) {
revert('Tokens Constructor: _SCRefundVault == 0x0');
}

SCTokens = Tokens(_SCTokens);
SCWhitelist = Whitelist(_SCWhitelist);
SCRefundVault = RefundVault(_SCRefundVault);

weisPerEther = 1 ether; // 10e^18 multiplier

// Deadline
startTime = timestamp();
endTime = timestamp().add(28 days); //

// Token Price
bigTokensPerEther = 7500; // tokens (w/o multiplier) got for 1 ether
tokensPerEther = bigTokensPerEther.mul(weisPerEther); // tokens (with multiplier) got for 1 ether

// tier 2 has no discount, avoid unnecessary operations
//discount = 0; // tier 2 0%
//discountedPricePercentage = 100;
//discountedPricePercentage = discountedPricePercentage.sub(discount);

weisMinInvestment = weisPerEther.mul(1);

// HardCap
etherHardCap = 65333;
tokensHardCap = tokensPerEther.mul(etherHardCap);//.mul(100).div(discountedPricePercentage);

weisPerBigToken = weisPerEther.div(bigTokensPerEther);

weisHardCap = weisPerEther.mul(etherHardCap);

// SoftCap
etherSoftCap = 2000;
weisSoftCap = weisPerEther.mul(etherSoftCap);

SCEscrow = Escrow(_SCEscrow);

ICOStage = 2;
}

}

0 comments on commit 2a635f6

Please sign in to comment.