Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Merkle airdrop #6

Description

@h4x3rotab

ETH gas price has already skyrocketed. We need a better way to reduce the costs for airdrop.

"Merkle Airdrop" is a solution. We ask the users to claim instead of sending the rewards. It's unnecessary to store the reward list on-chain at all. We can just keep a merkle root of the list so that publishing an airdrop is O(1), and validate the merkle inclusion proof each time a user claims the reward.

There are reference implementations. This one has both frontend and contract, but it's based on Aragon. We should make the following changes:

  1. Standalone smart contract & dapp by removing Aragon related stuff
  2. O(1) airdrop; work with existing ERC20 token
  3. Send token to users by transferFrom instead of minting new token or transfer from its own account
  4. Allow users to batch claim all his funds on UI
  5. Minimize the contract size

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions