Skip to content
This repository was archived by the owner on Apr 25, 2026. It is now read-only.

add reward pallet modifications#288

Merged
drewstone merged 11 commits into
mainfrom
kevin/reward-pallet-modifications
Feb 21, 2023
Merged

add reward pallet modifications#288
drewstone merged 11 commits into
mainfrom
kevin/reward-pallet-modifications

Conversation

@kwhuo68
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

Copy link
Copy Markdown
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).

Comment thread pallets/anonymity-mining/src/lib.rs Outdated
Comment thread pallets/anonymity-mining/src/lib.rs Outdated
Comment thread pallets/anonymity-mining/src/lib.rs Outdated
Comment thread pallets/anonymity-mining/src/lib.rs Outdated
Comment thread pallets/anonymity-mining/src/lib.rs Outdated
Copy link
Copy Markdown
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

Comment thread pallets/anonymity-mining-claims/src/lib.rs Outdated
Comment thread pallets/anonymity-mining-claims/src/lib.rs
Comment thread pallets/anonymity-mining-claims/src/lib.rs Outdated
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants