-
Notifications
You must be signed in to change notification settings - Fork 215
Change max cap for tier
If the tier in the crowdsale campaign, created by ICO Wizard, is updatable and crowdsale is not finalized yet, you are able to change the max cap of it.
-
Choose the network. For example,
(ETH) Etherscan.io
, if your contract is in mainnet.
- Attach to your crowdsale/tier contract: crowdsale/tier contract address and ABI are from the file downloaded at step 4 of ICO Wizard. CLick Access button.
Attach to your tier contract. The tier contract address and ABI are from the file downloaded at step 4 of ICO Wizard. The tier contract address at this line: Crowdsale contract address for [tier name] in the file. ABI of crowdsale contract is under this line: Crowdsale contract ABI: in the file. CLick Access button.
- In Select a function combo choose
setMaximumSellableTokens
method
- In How would you like to access your wallet? choose any preferable option. If you chose
MetaMask/Mist
, click "Connect to Metamask".
-
Fill tokens input with the amount of tokens multiplied to 10 to n power. Where n is the decimals number of your token. For example, if you needed to set 250000000 tokens max cap, and your token has 18 decimals, then you should fill the tokens field with
250000000000000000000000000
. -
Click Write.
-
Choose 0 in Amount to Send. The Gas Limit will be calculated automatically. Click "Generate transaction".
- You'll see the transaction data. Click Yes, I am sure. Make transaction..
- Confirm transaction in MetaMask popup.
-
Open MetaMask Chrome plugin
-
Connect to the network, where the crowdsale contract is deployed. For example,
mainnet
. -
Choose an account, which is the owner of crowdsale. This account should has sufficient balance in this network too.
-
Send transaction to the address of the crowdsale contract with the data =
0x2c2de40a
+hex(n*10^decimals)
.
where n
- maxCap of the tier,
decimals
- token decimals
hex(x)
- hexademical representation of x
, normalized to 32 bytes (required number of zeros before hex).
For example, if you need to set maxCap = 1000
for tier of crowdsale joined with token of 18 decimals
, the data should be: 0x2c2de40a00000000000000000000000000000000000000000000003635c9adc5dea00000
. Amount to send should be 0.
- Introduction
- Demo
- Requirements
- Strategy
- How to run
- Using POA Networks
- Deployment Time & Gas
- Verifying Smart-Contracts
- Possible Tx Failures
- Token Wizard Projects
- Notable Contributors
- Support
- Disclaimer
- FAQ
- Change Start & End Times
- Change max cap for tier
- Change rate
- Distribute reserved tokens
- Finalize crowdsale