This question already has an answer here:

How can you add airdrop functionality to an already deployed smart contract on the mist wallet?

marked as duplicate by Richard Horrocks, Thomas Clowes, Malone, Jesse Busman, flygoing Dec 28 '17 at 2:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


You don't actually need to add the Airdrop functionality to an existing smart contract - which is not possible-, you could just create a separate smart contract that interacts with your ERC20 token.

You'd just need to transfer the tokens from your balance in the ERC20 token contract to this new contract which would have a function that distributes some tokens to a list of addresses.

Here's an article I recently wrote, which could give you a few pointers on how to build such a contract: https://medium.freecodecamp.org/how-i-built-a-multi-token-airdrop-central-to-distribute-erc20-tokens-cb70b6218b5c

Not the answer you're looking for? Browse other questions tagged or ask your own question.