-
Notifications
You must be signed in to change notification settings - Fork 215
Set reserved tokens in percents and in tokens
-
Choose the network. For example,
(ETH) Etherscan.io
, if your contract is inmainnet
.
-
Attach to your token contract. The token contract address and its ABI are taken from the file downloaded at Step 4 of Token Wizard:
- ABI of the token contract is under this line: Token contract ABI: in the file.
Then click Access button.
- In Select a function combo choose
setReservedTokensList
method
- In How would you like to access your wallet? choose any preferable option. If you chose
MetaMask/Mist
, click "Connect to Metamask".
-
Enter method data:
- Fill addr input with the address, for which tokens are reserved.
- Fill inTokens input with tokens amount multiplied to 10 to
n
power, wheren
is the number of the token decimals (For example, we want to set 255 tokens, which decimals number is 18. Then we should fill input with255000000000000000000
). - Fill inPercentage input with the amount of percents.
-
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 has sufficient balance in this network too.
-
Send transaction to the address of the token contract with the data =
0xf30f8508
+address_for_tokens_reservation
+hex(number_of_tokens*10^decimals)
+hex(number_of_percents)
, where-
0xf30f8508
- signature of the method; -
address_for_tokens_reservation
- address, for which tokens are reserved, normalized to 32 bytes (required number of zeros before address); -
hex(number_of_tokens*10^decimals)
- number of tokens multiplied to 10^(decimals), hexed, normalized to 32 bytes (required number of zeros before address).
For example, we want to set 10 tokens, which decimals are 18.
number_of_tokens*10^decimals
= 10*10^18 =10000000000000000000
. Hex from it will be8ac7230489e80000
and normalized to 32 bytes will be:0000000000000000000000000000000000000000000000008ac7230489e80000
.-
hex(number_of_percents)
- hex from number of percents, normalized to 32 bytes (required number of zeros before address). For example, we want to set 10%. Hex from 10 will bea
and normalized to 32 bytes will be:000000000000000000000000000000000000000000000000000000000000000a
.
-
For example, if you need to reserve 10% of total number of issued tokens and 10 tokens for wallet address 0x6e524b4aa2174f32eba4ddfcfa5fb168f1d753
, the data should be: 0xf30f8508000000000000000000000000006e524b4aa2174f32eba4ddfcfa5fb168f1d7530000000000000000000000000000000000000000000000008ac7230489e80000000000000000000000000000000000000000000000000000000000000000000a
. 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