Skip to content

Commit

Permalink
Inflation parameters changed (#305)
Browse files Browse the repository at this point in the history
### Description
- Inflation parameters for the staking reward curve are back to normal
values
- Daily burning is set to 2.5%

### Types of Changes
<!--- What types of changes does your code introduce? -->
- [ ] Tech Debt (Code improvements)
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Dependency upgrade (A change in substrate or any 3rd party crate
version)

### Migrations and Hooks
<!--- Check the following box with an x if the following applies: -->
- [x] This change requires a runtime migration.
- [ ] Modifies `on_initialize`
- [ ] Modifies `on_finalize`

### Checklist
<!--- All boxes need to be checked. Follow this checklist before
requiring PR review -->
- [ ] Change has been tested locally.
- [ ] Change adds / updates tests.
- [ ] Changelog doc updated.
  • Loading branch information
yahortsaryk authored Apr 19, 2024
1 parent f1b973c commit f46332e
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 25 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- ...

## [5.1.4]

### Changed

- [C,D] Inflation parameters for the staking reward curve are back to normal values
- [C,D] Daily burning is set to 2.5%

## [5.1.3]

### Changed
Expand Down
32 changes: 16 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace.package]
version = "5.1.3"
version = "5.1.4"
authors = ["Cerebellum-Network"]
edition = "2021"
homepage = "https://cere.network/"
Expand Down
8 changes: 4 additions & 4 deletions runtime/cere-dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to 0. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 51300,
spec_version: 51400,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 15,
Expand Down Expand Up @@ -507,8 +507,8 @@ impl pallet_session::historical::Config for Runtime {

pallet_staking_reward_curve::build! {
const REWARD_CURVE: PiecewiseLinear<'static> = curve!(
min_inflation: 0_000_200,
max_inflation: 0_100_000,
min_inflation: 0_000_100,
max_inflation: 0_050_000,
ideal_stake: 0_200_000,
falloff: 0_050_000,
max_piece_count: 100,
Expand Down Expand Up @@ -909,7 +909,7 @@ parameter_types! {
pub const ProposalBond: Permill = Permill::from_percent(5);
pub const ProposalBondMinimum: Balance = 50_000 * DOLLARS;
pub const SpendPeriod: BlockNumber = DAYS;
pub const Burn: Permill = Permill::from_parts(580);
pub const Burn: Permill = Permill::from_parts(25000);
pub const TipCountdown: BlockNumber = DAYS;
pub const TipFindersFee: Percent = Percent::from_percent(20);
pub const TipReportDepositBase: Balance = 50_000 * DOLLARS;
Expand Down
8 changes: 4 additions & 4 deletions runtime/cere/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to 0. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 51300,
spec_version: 51400,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 15,
Expand Down Expand Up @@ -502,8 +502,8 @@ impl pallet_session::historical::Config for Runtime {

pallet_staking_reward_curve::build! {
const REWARD_CURVE: PiecewiseLinear<'static> = curve!(
min_inflation: 0_000_200,
max_inflation: 0_100_000,
min_inflation: 0_000_100,
max_inflation: 0_050_000,
ideal_stake: 0_200_000,
falloff: 0_050_000,
max_piece_count: 100,
Expand Down Expand Up @@ -913,7 +913,7 @@ parameter_types! {
pub const ProposalBond: Permill = Permill::from_percent(5);
pub const ProposalBondMinimum: Balance = 50_000 * DOLLARS;
pub const SpendPeriod: BlockNumber = DAYS;
pub const Burn: Permill = Permill::from_parts(580);
pub const Burn: Permill = Permill::from_parts(25000);
pub const TipCountdown: BlockNumber = DAYS;
pub const TipFindersFee: Percent = Percent::from_percent(20);
pub const TipReportDepositBase: Balance = 50_000 * DOLLARS;
Expand Down

0 comments on commit f46332e

Please sign in to comment.