-
Notifications
You must be signed in to change notification settings - Fork 91
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
Remove concept of Domain
in pallet-rewards
#1246
Comments
@mikiquantum WDYT about this? If you agree, I'll go with this first before adding rewards to |
So is the general idea that the rewards pallet doesnt know anything about the domains is dealing with underneath and since it the access to its storage is merely internal, delegating this identification to the I think this change makes sense to me. |
Yes, and this is what we want to avoid. It's true that domains remove the What I propose is to use different instances of PROS:
CONS:
|
If we always create one instance of |
And how can we achieve this without code duplication if we do not extract it into a pallet? I miss some way to store a pallet into a pallet in Substrate. |
Rust inheritance would be nice in this case 😄 . We could use a macro that spits out the storage needed for the reward pallet to be included in the consumer pallets, but that does come with readability issues. |
I've already tried that for the mock-builder, and I couldn't. The procedural macro of Substrate |
Which part of the code is the issue addressing?
Description
Domain
frompallet-rewards
pallet-rewards
per reward system, e.g.pallet-block-rewards
andpallet-liquidity-rewards
Research/based on
#1198 (comment)
How will this affect the code base
What are forseen obstacles or hurdles to overcome?
pallet-rewards
pallet-rewards
in the future if we add more consumersThe text was updated successfully, but these errors were encountered: