ERC20 Tokens EBIKE and Crowdsale.
Crowdsale for Ebike Token.
stage
: Stage of ICO, ICOStage.PreSale or ICOStage.ICObonus
: Mapping of stage to bonus. Bonus should be in10x
format. eg -bonus[uint(ICOStage.PreSale)] = 500;
500 for 50% PrivateisFinished
: Used to indicate the end of Sale.decimals
: Decimals used in token. i.e 18totalTokenLimit
: Total supply of tokens. 109 milpublicMaxTokens
: Total token supply for pyblic sale. 60 miltotalTokensForPreSale
: Total token supply for PreSale. 10 miltotalTokensForPrivateSale
: Total token supply for Private Sale. 4 miltotalTokensForDevelopers
: Total token supply for Developers. 20 miltotalTokensForTeam
: Total token supply for AltBlock team. 10 miltotalTokensForBounty
: Total token supply for Bounty. 5 miltotalTokensMintedPreSale
: Total token sold during PreSale.totalTokensMintedICO
: Total tokens sold during ICO.totalWeiRaisedDuringPreSale
: Total amount raised during PreSale.totalWeiRaisedDuringICO
: Total amount raised during ICO.bonusCoff
:10x
of 100%
Creates the EbikeTokenCrowdsale instance.
_openingTime
: Time to open the sale._closingTime
: Time when sale closes._rate
: Rate of conversion of eth and EBK eg: 1 eth = 3600 EBK._wallet
: eaddress to which to transefer the eth and remaining tokens._token
: EbikeTokens address. Should be mintable.trackpad).
Sets opening time for the sale.
_openingTime
: new opening time._openingTime
should be less than_closingTime
.
Updates circulating tokens.
_maxTokens
: new limit of circulating coins._maxTokens
should be less thanpublicMaxTokens
.
Change Crowdsale Stage. Available Options: PreICO, ICO.
value
:0
for PreSale and1
for ICO.
Change the current rate
_rate
: new rate for the sale._rate
must be greater than 0.
Returns token amount with added bonus.
amount
: amount of token given by weiAmount.
Finish the pre sale. Mint the unsold tokens and sends to wallet(_wallet).
Finish the sale. Mint and send tokens to developer's, team's, bounty's privateSale's Private wallet respectively.
developerWallet
: address of wallet which holds tokens for developers.teamWallet
: address of wallet which holds tokens for altblock.io Team.bountyWallet
: address of wallet which holds tokens for bounty.privateSaleWallet
: address of wallet which holds tokens for privateSale.