More Premium Hugo Themes Premium React Themes

Erc20 Airdrop Contract

ERC20 token smart contract which contains method to Airdrop tokens to whitelisted users . Only Admin of the contract will be able to add whitelist addresses and users can claim their tokens by interacting with the web page. Users will pay transaction gas fees for token transfers.

Erc20 Airdrop Contract

ERC20 token smart contract which contains method to Airdrop tokens to whitelisted users . Only Admin of the contract will be able to add whitelist addresses and users can claim their tokens by interacting with the web page. Users will pay transaction gas fees for token transfers.

Author Avatar Theme by akshay-na
Github Stars Github Stars: 13
Last Commit Last Commit: Jan 19, 2022 -
First Commit Created: Jan 15, 2024 -
Erc20 Airdrop Contract screenshot

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:

  1. Clone the GitHub repository: git clone https://github.com/akshay-na/erc20-airdrop-contract
  2. Navigate to the directory: cd erc20-airdrop-contract/token/contracts
  3. Start the app in development mode: npm start
  4. Open http://localhost:3000 in your browser.
  5. To run the tests, use the command: npm test
  6. To build the app for production, use the command: npm run build
  7. The built app will be located in the build folder 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.