Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.64 KB

File metadata and controls

41 lines (31 loc) · 1.64 KB
  • at this moment it's deployed on Ropsten network

How to use it?

deploy HubToken, set an admin account

"0x0D6CE14b31A5a5F7e3F206AE9a022D59ACAAaCFF"

deploy HubCrowdsale, use token address from HubToken

	beneficiaryAddr Address where funds are collected
	tokenAddress = HubToken contract

HubCrowdsale "10000", "0x0D6CE14b31A5a5F7e3F206AE9a022D59ACAAaCFF", "0xb0079211bE371AE9937741061f0b1611dAbB8906"

HubToken contract

setTokenOffering = address of HubCrowdsale setTokenOffering "0x052D11408eA1220db219aD42090acC53B3Fb8d9D","0"

Allocate tokens for presale participants before public offering, can only be executed at Stages.Setup stage.

  • it could be used for presale, u don't need to add them in whitelist 10000000000000000 = 0.01 tokens allocateTokensBeforeOffering "0xe4016b3c537011A767385E159a4B9C94143b96b0", "10000000000000000"

set whitelist addresses in contract HubCrowdsale

["0xFed0ABcBd0dF8Cc7743F2B0910B567F5cC6E56b0", "0xFAE6F63424fda2fB96A199A1eb6f71B382DE806f", "0xcC6CaE5E121c69A4c3d4343509E859b804320cF7", "0xe4016b3c537011A767385E159a4B9C94143b96b0"]

start crowdsale, set 0 seconds, it already do what is writing down

	startOffering

	first 1 day with cap min 0.1 eth, max 1 eth , then no limit, in 7 days it ends
	Timelines for contribution limit policy = capReleaseTimestamp		
	1 eth		maxContribution = 1000000000000000000 
	0.1 eth		minContribution = 10000000000000000
	capReleaseTimestamp = startTime + 1 days;
	extraTime = capReleaseTimestamp + 7 days;
	cap = 9000 eth

then send money from whitelisted address to 0x052D11408eA1220db219aD42090acC53B3Fb8d9D

function transfer from HubToken works without enabletransfers