This repository consists of Kyber Genesis Token (KGT) smart contract and a smart contract to speed the airdropping process. In the airdrop every user get 2 KNC, and in addition user may also get 1 KGT.
In addition, the repository consists of web3 javascript files that were used to initiate the airdrop transactions and monitor the progress.
The scripts makes the transaction via infura public node, and the monitoring via local parity node that is run with --no-wrap
flag.
As otherwise it is not possible to fetch old events.
The airdrop sequence is as follows:
- Deploy KGT and airdrop contract.
- Approve enough KNC tokens (other tokens are also supported) to the airdrop contract.
- Compile a list of reciepient addresses and store them in
upload.txt
file. - Run
upload.js
script. - When airdrop ends, call
endMiniting
function in KGT contract.
When used for future airdrop one should:
- Code valid private key string in
upload.js
. - Change
emergencyERC20Drain
to send stuck tokens to a predefined address. Currently it sends it to kyber wallet. - Set desiriable gas fees.
- Change hardcoded addresses to match actual token address and source wallet.