Skip to content

Implement User Migration with Merkle Tree and Bonus System for MAHA Locker#54

Open
obchain wants to merge 10 commits intomahaxyz:masterfrom
obchain:migrate/maha-merkle-tree
Open

Implement User Migration with Merkle Tree and Bonus System for MAHA Locker#54
obchain wants to merge 10 commits intomahaxyz:masterfrom
obchain:migrate/maha-merkle-tree

Conversation

@obchain
Copy link
Copy Markdown
Contributor

@obchain obchain commented Nov 25, 2024

This PR introduces a system for migrating users from another locker, utilizing a Merkle tree to verify user eligibility and distribute bonuses. Users will receive a pre-determined bonus of MAHA tokens based on their migration data, with additional rewards for those who extend their lock durations.

Key features:

  • Merkle Tree Implementation: Users' data is used to generate a Merkle tree, ensuring efficient and secure verification of eligibility.

  • Migration Process: A contract that allows users to migrate their data from the previous locker, mint NFTs on the base chain, and receive the MAHA bonus.

  • Bonus System: Users will receive a specified MAHA bonus, with extra bonuses for those who extend their lock durations.

  • Bonus Handling: The bonus is included in the Merkle proof data, allowing easy distribution on migration.

  • Extending Lock Duration Bonus: Users who opt to extend their lock durations will receive additional MAHA as a reward.

TODOs:

  1. Working on the Merkle Tree Script: Implement the functionality to generate the Merkle tree and handle proofs.

  2. Testing the Contract: Write and execute tests to ensure the contract works as expected with different migration scenarios.

  3. Deployment Script: Develop a script to deploy the contract to the appropriate network and handle initial setup.

@obchain obchain marked this pull request as ready for review November 26, 2024 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant