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

feat: reduce coupling between salary and core-fellowship pallet #5159

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marcuspang
Copy link
Contributor

@marcuspang marcuspang commented Jul 26, 2024

Fixes #3617

Description

Introduce a new parameter to define the salary of rank for a specific duration (currently in number of blocks), in the core-fellowship pallet. This enables other pallets using this salary information to derive the actual "salary" to give after a certain amount of blocks have passed.

Specifically, for the salary pallet, we can now independently calculate the salary to distribute based on the difference in cycles, without having to know what "duration" means in core-fellowship

Perhaps it might be useful to define an auxiliary type to facilitate conversion between "duration" and "cycles"

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.

improve fellowshipCore.setParams and related code
1 participant