From 9b0d54145385c12beb472c43a83d90cde1f70638 Mon Sep 17 00:00:00 2001 From: Gabriel Facco de Arruda Date: Tue, 30 Jan 2024 16:24:53 +0800 Subject: [PATCH 1/2] fix: Scale fees for InvArch --- invarch/runtime/src/balances.rs | 4 ++-- invarch/runtime/src/inv4.rs | 2 +- invarch/runtime/src/staking.rs | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/invarch/runtime/src/balances.rs b/invarch/runtime/src/balances.rs index e9d1aa96..a54c4fda 100644 --- a/invarch/runtime/src/balances.rs +++ b/invarch/runtime/src/balances.rs @@ -49,8 +49,8 @@ pub struct WeightToFee; impl WeightToFeePolynomial for WeightToFee { type Balance = Balance; fn polynomial() -> WeightToFeeCoefficients { - let p = MILLIUNIT; - let q = 100 * Balance::from(ExtrinsicBaseWeight::get().ref_time()); + let p = 10 * MILLIUNIT; + let q = 2 * Balance::from(ExtrinsicBaseWeight::get().ref_time()); smallvec::smallvec![WeightToFeeCoefficient { degree: 1, negative: false, diff --git a/invarch/runtime/src/inv4.rs b/invarch/runtime/src/inv4.rs index 4955cb84..fe05be42 100644 --- a/invarch/runtime/src/inv4.rs +++ b/invarch/runtime/src/inv4.rs @@ -20,7 +20,7 @@ parameter_types! { pub const MaxMetadata: u32 = 10000; pub const MaxCallers: u32 = 10000; pub const CoreSeedBalance: Balance = 1000000u128; - pub const CoreCreationFee: Balance = UNIT * 100; + pub const CoreCreationFee: Balance = UNIT * 1000; pub const RelayCoreCreationFee: Balance = UNIT; pub const MaxCallSize: u32 = 50 * 1024; diff --git a/invarch/runtime/src/staking.rs b/invarch/runtime/src/staking.rs index 88e95073..6964d6bd 100644 --- a/invarch/runtime/src/staking.rs +++ b/invarch/runtime/src/staking.rs @@ -5,15 +5,15 @@ use frame_support::{parameter_types, PalletId}; parameter_types! { pub const BlocksPerEra: BlockNumber = DAYS; - pub const RegisterDeposit: Balance = 500 * UNIT; + pub const RegisterDeposit: Balance = 5000 * UNIT; pub const MaxStakersPerCore: u32 = 10000; - pub const MinimumStakingAmount: Balance = 10 * UNIT; + pub const MinimumStakingAmount: Balance = 50 * UNIT; pub const MaxEraStakeValues: u32 = 5; pub const MaxUnlockingChunks: u32 = 5; - pub const UnbondingPeriod: u32 = 7; + pub const UnbondingPeriod: u32 = 28; pub const OcifStakingPot: PalletId = PalletId(*b"inv/stak"); pub const RewardRatio: (u32, u32) = (60, 40); - pub const StakeThresholdForActiveCore: Balance = 25000 * UNIT; + pub const StakeThresholdForActiveCore: Balance = 250_000 * UNIT; pub const MaxNameLength: u32 = 20; pub const MaxDescriptionLength: u32 = 300; pub const MaxImageUrlLength: u32 = 100; From 54d93e744ddba418fe5806dd4eb6c354c0fa3c5d Mon Sep 17 00:00:00 2001 From: Gabriel Facco de Arruda Date: Tue, 30 Jan 2024 16:26:26 +0800 Subject: [PATCH 2/2] chore: Bump versions --- invarch/node/Cargo.toml | 2 +- invarch/runtime/Cargo.toml | 2 +- invarch/runtime/src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/invarch/node/Cargo.toml b/invarch/node/Cargo.toml index ecd98f54..4e175014 100644 --- a/invarch/node/Cargo.toml +++ b/invarch/node/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "invarch-node" -version = "1.0.0" +version = "1.1.1" authors = ["InvArchitects "] description = "A Substrate-based InvArch Node." license = "GPL-3.0" diff --git a/invarch/runtime/Cargo.toml b/invarch/runtime/Cargo.toml index c9056366..45bd3c6b 100644 --- a/invarch/runtime/Cargo.toml +++ b/invarch/runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "invarch-runtime" -version = "1.0.0" +version = "1.1.1" authors = ["InvArchitects "] license = "Unlicense" homepage = "https://substrate.io" diff --git a/invarch/runtime/src/lib.rs b/invarch/runtime/src/lib.rs index 72b84641..6c7be75c 100644 --- a/invarch/runtime/src/lib.rs +++ b/invarch/runtime/src/lib.rs @@ -139,7 +139,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("invarch"), impl_name: create_runtime_str!("invarch"), authoring_version: 1, - spec_version: 5, + spec_version: 6, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1,