-
Notifications
You must be signed in to change notification settings - Fork 215
Change rate
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 rate 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 rate.
-
After changing the rate, 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 pricing strategy contract address and ABI are taken from the file downloaded at Step 4 of Token Wizard:
- The address of the pricing strategy contract for the tier is at this line: Pricing strategy contract address for [tier name] in the file.
- ABI of the pricing strategy contract is under this line: Pricing strategy contract ABI: in the file.
Then click Access button.
- In Select a function combo choose
updateRate
method
- In How would you like to access your wallet? choose any preferable option. If you choose
MetaMask/Mist
, click "Connect to Metamask".
-
Fill newOneTokenInWei input with the price of one token in wei. For example, if you need to set
rate = 1000
(1000 tokens per 1 ETH), then price for1 token = 10^15 wei = 1000000000000000
-
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 pricingStrategy contract with the data =
0x69ea1771
+hex(one_token_in_wei)
.where
hex(one_token_in_wei)
- hexademical representation of 1 token price in wei, normalized to 32 bytes (required number of zeros before hex).For example, if you need to set
rate = 1000
(1000 tokens per 1 ETH), then price for1 token = 10^15 wei = 1000000000000000
. Hex from it will be38d7ea4c68000
, and normalized to bytes32:00000000000000000000000000000000000000000000000000038d7ea4c68000
. Finally, the data should be:0x69ea177100000000000000000000000000000000000000000000000000038d7ea4c68000
. 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