Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature(smart-contracts): Airdrops #15550

Merged
merged 25 commits into from
Feb 26, 2025
Merged

feature(smart-contracts): Airdrops #15550

merged 25 commits into from
Feb 26, 2025

Conversation

0xTxbi
Copy link
Member

@0xTxbi 0xTxbi commented Feb 21, 2025

Description

This PR introduces a smart contract for managing token airdrops with a two-step verification process. Recipients must first sign the Terms of Service (TOS) for each campaign and then provide a valid Merkle proof to claim tokens. The contract supports multiple airdrop campaigns, each with its own TOS and Merkle tree of eligible recipients. It tracks TOS signatures and claimed tokens to ensure secure and compliant distribution.

Issues

Fixes #
Refs #15541

Checklist:

  • 1 PR, 1 purpose: my Pull Request applies to a single purpose
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the docs to reflect my changes if applicable
  • I have added tests (and stories for frontend components) that prove my fix is effective or that my feature works
  • I have performed a self-review of my own code
  • If my code involves visual changes, I am adding applicable screenshots to this thread

@cla-bot cla-bot bot added the cla-signed label Feb 21, 2025
Copy link

vercel bot commented Feb 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
unlock-airdrops ⬜️ Ignored (Inspect) Visit Preview Feb 26, 2025 4:28pm
unlock-static-site ⬜️ Ignored (Inspect) Feb 26, 2025 4:28pm
unlock-storybook ⬜️ Ignored (Inspect) Feb 26, 2025 4:28pm

@0xTxbi 0xTxbi requested a review from julien51 February 21, 2025 12:18
Copy link
Member

@julien51 julien51 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trees a good first start! Please add tests! Also I forgot but we need an extra feature: a blocklist and the ability to add to BlockList by the contract owner!

using `yarn hardhat release --contract contracts/tokens/UP/Airdrops.sol --dest-folder UP` from `smart-contracts` folder
@julien51 julien51 merged commit efdb5e7 into master Feb 26, 2025
19 checks passed
@julien51 julien51 deleted the airdrops-smart-contract branch February 26, 2025 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants