-
Notifications
You must be signed in to change notification settings - Fork 214
Change max cap for tier
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.
-
Go to the manage crowdsale page for your crowdsales (see instructions here)
-
If the tier you want to modify is updatable, you'll be able to modify the input with the max cap value.
-
After changing the max cap, click the Save button and confirm the transaction.
-
Choose the network. For example,
(ETH) Etherscan.io
, if your contract is inmainnet
.
-
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.
- 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 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 with250000000000000000000000000
. -
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 have 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 ofx
, 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