Skip to content

Change rate

Victor edited this page Oct 13, 2017 · 15 revisions

If the tier in the crowdsale campaign, created by ICO Wizard, is updatable, you are able to change the rate of it.

  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 at this network too.

  4. 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, you need to set rate = 1000 (1000 tokens per 1 ETH). Then price for 1 token = is 10^15 wei = 1000000000000000. Hex from it will be 38d7ea4c68000, and normalized to bytes32: 00000000000000000000000000000000000000000000000000038d7ea4c68000.

For example, if you need to set rate = 1000, the data should be: 0x69ea177100000000000000000000000000000000000000000000000000038d7ea4c68000. Amount to send should be 0.

Clone this wiki locally