-
Notifications
You must be signed in to change notification settings - Fork 11
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
add reward pallet modifications #288
Conversation
@saiakilesh good to merge if you review and give it the go ahead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Along, with my comments on specific lines of code, here are a few overarching things:
- We have renamed things:
DepositTree
->UnspentTree
,WithdrawTree -> SpentTree
. - I would rather separate concerns and have two different pallets, a claims pallet and an AMM pallet. The claims pallet is responsible for storing reward tree roots, checking claims circuit proof, and inserting commitments into the AP VAnchor. The AMM pallet is responsible for converting AP into Tangle tokens (or whatever the reward token is).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deposit -> unspent
, withdraw -> spent
Summary of changes
Changes introduced in this pull request:
-Scaffold for pallet modifications for rewards (AP VAnchor updating, etc)