From f46332e22df4d8f42a627eb9a009f46a9d89f396 Mon Sep 17 00:00:00 2001 From: Yahor Tsaryk Date: Fri, 19 Apr 2024 13:50:16 +0200 Subject: [PATCH] Inflation parameters changed (#305) ### Description - Inflation parameters for the staking reward curve are back to normal values - Daily burning is set to 2.5% ### Types of Changes - [ ] 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 - [x] This change requires a runtime migration. - [ ] Modifies `on_initialize` - [ ] Modifies `on_finalize` ### Checklist - [ ] Change has been tested locally. - [ ] Change adds / updates tests. - [ ] Changelog doc updated. --- CHANGELOG.md | 7 +++++++ Cargo.lock | 32 ++++++++++++++++---------------- Cargo.toml | 2 +- runtime/cere-dev/src/lib.rs | 8 ++++---- runtime/cere/src/lib.rs | 8 ++++---- 5 files changed, 32 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea55a8642..cbfbb7abf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Cargo.lock b/Cargo.lock index aff636a9b..0879df10a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -683,7 +683,7 @@ dependencies = [ [[package]] name = "cere-cli" -version = "5.1.3" +version = "5.1.4" dependencies = [ "cere-client", "cere-service", @@ -700,7 +700,7 @@ dependencies = [ [[package]] name = "cere-client" -version = "5.1.3" +version = "5.1.4" dependencies = [ "cere-dev-runtime", "cere-runtime", @@ -732,7 +732,7 @@ dependencies = [ [[package]] name = "cere-dev-runtime" -version = "5.1.3" +version = "5.1.4" dependencies = [ "cere-runtime-common", "ddc-primitives", @@ -821,7 +821,7 @@ dependencies = [ [[package]] name = "cere-rpc" -version = "5.1.3" +version = "5.1.4" dependencies = [ "jsonrpsee", "node-primitives", @@ -850,7 +850,7 @@ dependencies = [ [[package]] name = "cere-runtime" -version = "5.1.3" +version = "5.1.4" dependencies = [ "cere-runtime-common", "ddc-primitives", @@ -939,7 +939,7 @@ dependencies = [ [[package]] name = "cere-runtime-common" -version = "5.1.3" +version = "5.1.4" dependencies = [ "frame-support", "frame-system", @@ -958,7 +958,7 @@ dependencies = [ [[package]] name = "cere-service" -version = "5.1.3" +version = "5.1.4" dependencies = [ "cere-client", "cere-dev-runtime", @@ -1591,7 +1591,7 @@ dependencies = [ [[package]] name = "ddc-primitives" -version = "5.1.3" +version = "5.1.4" dependencies = [ "frame-support", "frame-system", @@ -4714,7 +4714,7 @@ dependencies = [ [[package]] name = "pallet-chainbridge" -version = "5.1.3" +version = "5.1.4" dependencies = [ "frame-support", "frame-system", @@ -4817,7 +4817,7 @@ dependencies = [ [[package]] name = "pallet-ddc-clusters" -version = "5.1.3" +version = "5.1.4" dependencies = [ "ddc-primitives", "frame-benchmarking", @@ -4843,7 +4843,7 @@ dependencies = [ [[package]] name = "pallet-ddc-customers" -version = "5.1.3" +version = "5.1.4" dependencies = [ "ddc-primitives", "frame-benchmarking", @@ -4866,7 +4866,7 @@ dependencies = [ [[package]] name = "pallet-ddc-nodes" -version = "5.1.3" +version = "5.1.4" dependencies = [ "ddc-primitives", "frame-benchmarking", @@ -4887,7 +4887,7 @@ dependencies = [ [[package]] name = "pallet-ddc-payouts" -version = "5.1.3" +version = "5.1.4" dependencies = [ "byte-unit", "chrono", @@ -4911,7 +4911,7 @@ dependencies = [ [[package]] name = "pallet-ddc-staking" -version = "5.1.3" +version = "5.1.4" dependencies = [ "ddc-primitives", "frame-benchmarking", @@ -5006,7 +5006,7 @@ dependencies = [ [[package]] name = "pallet-erc20" -version = "5.1.3" +version = "5.1.4" dependencies = [ "frame-benchmarking", "frame-support", @@ -5025,7 +5025,7 @@ dependencies = [ [[package]] name = "pallet-erc721" -version = "5.1.3" +version = "5.1.4" dependencies = [ "frame-benchmarking", "frame-support", diff --git a/Cargo.toml b/Cargo.toml index b0ea7bca1..dae976000 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [workspace.package] -version = "5.1.3" +version = "5.1.4" authors = ["Cerebellum-Network"] edition = "2021" homepage = "https://cere.network/" diff --git a/runtime/cere-dev/src/lib.rs b/runtime/cere-dev/src/lib.rs index eb9fd1beb..41b1911c2 100644 --- a/runtime/cere-dev/src/lib.rs +++ b/runtime/cere-dev/src/lib.rs @@ -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, @@ -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, @@ -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; diff --git a/runtime/cere/src/lib.rs b/runtime/cere/src/lib.rs index 5576cd529..5beb0351b 100644 --- a/runtime/cere/src/lib.rs +++ b/runtime/cere/src/lib.rs @@ -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, @@ -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, @@ -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;