Skip to content

Change max cap for tier

Victor Baranov edited this page Feb 2, 2018 · 19 revisions

If the tier in the crowdsale campaign, created by Token Wizard, is updatable and crowdsale is not started yet, you are able to change the max cap of it.

Change max cap from the Manage crowdsale page

  1. Go to the manage crowdsale page for your crowdsales (see instructions here)

  2. If the tier you want to modify is updatable, you'll be able to modify the input with the max cap value.

  3. After changing the max cap, click the Save button and confirm the transaction.

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 a pricing strategy contract data (i.e. its address and ABI) to your tier. The tier contract address and its ABI are taken from the file downloaded at Step 4 of Token Wizard:

    • The address of the tier contract is at this line: Crowdsale contract address for [tier name] in the file.
    • ABI of the crowdsale contract is under this line: Crowdsale contract ABI: in the file.

    Then 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 number 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 have 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