Overview
The Token Airdrop Smart Contract is an ERC20 token smart contract that allows for the airdropping of tokens to whitelisted users. The contract is designed to only allow the admin to add whitelist addresses, and users can then claim their tokens. Users are required to pay transaction gas fees for token transfers. The contract is hosted on the Ropsten Testnet Network with an initial supply of 100,000 ATN (Airdrop Token).
Features
- Can airdrop the token to whitelisted accounts.
- Maximum token available for airdrop is 30,000 ATN (30% of the initial supply).
- Current available token for airdrop is 29,900 ATN.
- Only the admin can add addresses and amount to the whitelist.
- Users can interact with the front-end and claim the token by paying the gas fee.
- Users need to input the amount of ATN they want to claim, which should match the allotted amount by the admin.
- Admin can add new addresses and amounts to the whitelist through the front-end.
- A whitelisted account can only claim the airdrop once.
Installation
To get started with the Token Airdrop Smart Contract, follow these steps:
- Clone the GitHub repository:
git clone https://github.com/akshay-na/erc20-airdrop-contract - Navigate to the directory:
cd erc20-airdrop-contract/token/contracts - Start the app in development mode:
npm start - Open http://localhost:3000 in your browser.
- To run the tests, use the command:
npm test - To build the app for production, use the command:
npm run build - The built app will be located in the
buildfolder and can be deployed to a server.
Summary
The Token Airdrop Smart Contract is a useful tool for distributing tokens to whitelisted users. With features like a maximum token limit for airdrops, automatic extraction of addresses from Metamask, and the ability for the admin to manage the whitelist through the front-end, this smart contract provides a streamlined and secure way for conducting token airdrops. The front-end interface hosted on Heroku allows for easy interaction and claiming of tokens for users.