Implement User Migration with Merkle Tree and Bonus System for MAHA Locker#54
Open
obchain wants to merge 10 commits intomahaxyz:masterfrom
Open
Implement User Migration with Merkle Tree and Bonus System for MAHA Locker#54obchain wants to merge 10 commits intomahaxyz:masterfrom
obchain wants to merge 10 commits intomahaxyz:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Working on the Merkle Tree Script: Implement the functionality to generate the Merkle tree and handle proofs.
Testing the Contract: Write and execute tests to ensure the contract works as expected with different migration scenarios.
Deployment Script: Develop a script to deploy the contract to the appropriate network and handle initial setup.