GithubHelp home page GithubHelp logo

1vip-events-erc-20-token-'s Introduction

*** This is NOT an official token of 1inch Network.

*It is only an experimental project as part of my web3 development learning!

1VIP

An experimental 1inch 1-VIPToken, an ERC20 token with special features, created to give 1INCH token stakers VIP access to events and parties.

Features

  • Used OpenZeppelin's ERC20 and Ownable contracts for a solid and secure foundation
  • Designed to airdrop tokens to specific addresses based on their staked 1INCH token amounts (i.e. <1000 st1INCH)
  • Transfers between addresses are disabled to eliminate spoofing, allowing only minting and burning of the toke
  • The contract owner has control over the airdrop status, enabling or disabling at the event team's discretion

Functions

Constructor

The constructor function initializes the contract with the staking token address (1INCH) and sets the token name and symbol.

_beforeTokenTransfer

This function overrides the _beforeTokenTransfer function from the ERC20 contract to prevent token transfers between addresses.

airdropTokens

This function is used to airdrop OneInchVIPToken to a list of recipient addresses, based on their staked 1INCH token amount. Only the contract owner can execute this function, and it will only work if the airdrop is active.

toggleAirdropStatus

This function allows the contract owner to toggle the airdrop status (active or inactive) as needed.

Usage

  1. Deploy the contract with the staking token address (1INCH) as a parameter.
  2. Use the airdropTokens function to airdrop tokens to eligible addresses.
  3. The contract owner can enable or disable the airdrop using the toggleAirdropStatus function.

1vip-events-erc-20-token-'s People

Contributors

tradersnow222 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.