Coder Social home page Coder Social logo

airdropper's Introduction

ODEM Airdropper

Airdropper contract for token bounty distribution.

Parts of this implementation (SafeMath and Ownable) are taken from OpenZeppelin v1.8.0, with modification to support Solidity v0.4.21.

Why an airdropper?

As part of On-Demand Education Marketplace’s bounty and rewards campaign, the company is obliged to transfer more than one million ODEM Tokens to thousands of users. Transferring them one user at a time would be both tedious and expensive.

Both of these problems can be managed by using an airdropper contract to complete many individual transfers within one combined transaction. The contract reduces the number of transactions and fees associated with the distribution.

Unique features

This airdropper differs from most others in that it never holds tokens. Instead it calls ERC20's transferFrom to transfer tokens directly from a given source address to the recipients. This has two distinct advantages:

  • ODEM has already published the address which holds the tokens to be distributed as bounty. The recipients will see that their tokens came directly from this address, so they can verify that they received their rewards in good order. The address is recorded in the ODEM ICO repository.

  • The contract can be tested on the main network without interfering with the allocation of bounty tokens, and without the need to deploy a new instance after testing.

This airdropper also has a method to self-destruct, which is called as soon as tokens have been distributed to all recipients. This prevents it from being used as an attack vector in any future zero-day exploits, and also takes some load off the Ethereum network — it's important to be a good neighbour.

airdropper's People

Contributors

aelmessiry avatar kierendavies avatar tscherrie avatar w1nk avatar

Stargazers

 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.