-
Notifications
You must be signed in to change notification settings - Fork 215
Set reserved tokens in percents and in tokens
-
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 at 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 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 be 8ac7230489e80000
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 be a
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