-
Notifications
You must be signed in to change notification settings - Fork 53
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 pallet reward inflation #277
Conversation
Master coverage: 71.00% |
@librelois can you merge master in so that its easier to review? |
Co-authored-by: tmpolaczyk <[email protected]>
it would be good to know:
|
test/suites/dev-tanssi/issuance-rewards/test_invulnerable_rewards.ts
Outdated
Show resolved
Hide resolved
runtime/Cargo.toml is missing "pallet-inflation-rewards/try-runtime" under "try-runtime" |
we will add it, thanks! |
* make distribute_rewards transactional * fmt --------- Co-authored-by: girazoki <[email protected]>
* test reward distribution * ensure it still works even with key change * find_map + fmt * fmt * remove dbg!
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.
The changes looks good to me
Add a new pallet reward-inflation that handle new supply issuance and distribution.
The inflation rate is a proportion of the total supply per tanssi block.
We could also create new supply per relay block or per time duration, which could help to manage multi-block correctly, but that's left for a future PR.
TODO: