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

add reward pallet modifications #288

Merged
merged 11 commits into from
Feb 21, 2023
Merged

Conversation

kwhuo68
Copy link
Contributor

@kwhuo68 kwhuo68 commented Jan 27, 2023

Summary of changes
Changes introduced in this pull request:
-Scaffold for pallet modifications for rewards (AP VAnchor updating, etc)

@drewstone
Copy link
Contributor

@saiakilesh good to merge if you review and give it the go ahead.

Copy link
Contributor

@akileshtangella akileshtangella left a 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:

  1. We have renamed things: DepositTree -> UnspentTree, WithdrawTree -> SpentTree.
  2. 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).

pallets/anonymity-mining/src/lib.rs Outdated Show resolved Hide resolved
pallets/anonymity-mining/src/lib.rs Outdated Show resolved Hide resolved
pallets/anonymity-mining/src/lib.rs Outdated Show resolved Hide resolved
pallets/anonymity-mining/src/lib.rs Outdated Show resolved Hide resolved
pallets/anonymity-mining/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@akileshtangella akileshtangella left a 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

pallets/anonymity-mining-claims/src/lib.rs Outdated Show resolved Hide resolved
pallets/anonymity-mining-claims/src/lib.rs Show resolved Hide resolved
pallets/anonymity-mining-claims/src/lib.rs Outdated Show resolved Hide resolved
@drewstone drewstone requested review from akileshtangella and removed request for drewstone and semaraugusto February 19, 2023 09:11
@drewstone drewstone merged commit a16d875 into main Feb 21, 2023
@drewstone drewstone deleted the kevin/reward-pallet-modifications branch February 21, 2023 18:31
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.

3 participants