Coder Social home page Coder Social logo

ibnzuk / trc20_token_airdrop_contract Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 4.0 143 KB

TRC20 Token redistribution (Airdrop) dapp on Tron network

Solidity 100.00%
airdrop ibnz ibnz-developers ibnzdevelopers ibnzuk solidity token trc-20 trc20 tron airdrop-contract airdrop-example smart-contract-airdrop solidity-example-airdrop token-airdrop token-redistribution

trc20_token_airdrop_contract's Introduction

TRC20_Token_Airdrop_Contract

TRC20 Token redistribution (Airdrop) dapp on Tron network

A smart contract on TRON main network to equaly redistribute TRC20 tokens. Preview

Smart contract on main TRON network

https://tronscan.org/#/contract/TSYmsMxx2m9b5o8ZDLXT2fAGSXNY2RgDL6/code

Running instructions:

  • After deploying, the deployer gets manager rights and can add 2 more admins to use the contract.

  • To use contract with your token first call function setNewToken with your trc20 token address as an argument

  • Enter your users. Function enterListOfUsers() takes an array of addresses that are eligible for airdrop ["TEST6KPenCBGCxTWC7fSoAb1YrhH2wom21", "TEST6............2, ..."]

  • Top-up account with your TRC20 token, by simply sending tokens to the smart contract.

  • Check redistribution amount with function howMuchEachGetting()

  • Call startAirdrop() function

  • Reset contract resetEverything()

Known Issues, on Main Net.

Use no more than 100 - 130 addresses at the time. Longer arrays take too much time for EVM to execute causing an error to be thrown and that leads for operations to fail, but the manager still ends up paying operation fees.

trc20_token_airdrop_contract's People

Contributors

ibnzuk avatar

Watchers

 avatar  avatar  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.