Skip to content

Change max cap for tier

Victor edited this page Oct 20, 2017 · 19 revisions

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.

Change max cap from MyEtherWallet

  1. Go to https://www.myetherwallet.com/#contracts

  2. Choose the network. For example, (ETH) Etherscan.io, if your contract is in mainnet.

  1. 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.

  1. In Select a function combo choose setMaximumSellableTokens method

  1. In How would you like to access your wallet? choose any preferable option. If you chose MetaMask/Mist, click "Connect to Metamask".

  1. 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.

  2. Click Write.

  3. Choose 0 in Amount to Send. The Gas Limit will be calculated automatically. Click "Generate transaction".

  1. You'll see the transaction data. Click Yes, I am sure. Make transaction..

  1. Confirm transaction in MetaMask popup.

Change max cap from MetaMask by method signature

  1. Open MetaMask Chrome plugin

  2. Connect to the network, where the crowdsale contract is deployed. For example, mainnet.

  3. Choose an account, which is the owner of crowdsale. This account should has sufficient balance in this network too.

  4. 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.

Clone this wiki locally