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

chore(runtime): Adjust target inflation value #3176

Merged
merged 2 commits into from
Aug 30, 2023

Conversation

ekovalev
Copy link
Member

The target inflation parameter has to be changed to 6% to reflect the latest changes in token economics.

@ekovalev ekovalev added A0-pleasereview PR is ready to be reviewed by the team D2-node Gear Node C2-refactoring Refactoring proposal labels Aug 25, 2023
pallets/staking-rewards/src/lib.rs Show resolved Hide resolved
pallets/staking-rewards/src/migration.rs Outdated Show resolved Hide resolved
pallets/staking-rewards/src/migration.rs Outdated Show resolved Hide resolved
pallets/staking-rewards/src/migration.rs Outdated Show resolved Hide resolved
pallets/staking-rewards/src/tests.rs Show resolved Hide resolved
pallets/staking-rewards/src/lib.rs Show resolved Hide resolved
@breathx breathx changed the title Adjust target inflation value chore(runtime): Adjust target inflation value Aug 28, 2023
assert_eq!(inflation, Perquintill::from_percent(6),);
let old_inflation: Perquintill = Decode::decode(&mut &state[..]).unwrap();
let new_inflation = pallet::TargetInflation::<T>::get();
assert_ne!(old_inflation, new_inflation);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a tests that runs locally even without any chain state

@NikVolf NikVolf added A2-mergeoncegreen PR is ready to merge after CI passes and removed C2-refactoring Refactoring proposal A0-pleasereview PR is ready to be reviewed by the team labels Aug 29, 2023
@ukint-vs ukint-vs merged commit 32982c8 into master Aug 30, 2023
11 checks passed
@ukint-vs ukint-vs deleted the ek-adjust-inflation-curve branch August 30, 2023 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A2-mergeoncegreen PR is ready to merge after CI passes D2-node Gear Node
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants