Skip to content

Commit

Permalink
Merge pull request #142 from InvArch/gabriel-invarch_fees
Browse files Browse the repository at this point in the history
Scale fees for InvArch
  • Loading branch information
arrudagates authored Jan 30, 2024
2 parents 2c1cc6c + 54d93e7 commit 4fab3e6
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion invarch/node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "invarch-node"
version = "1.0.0"
version = "1.1.1"
authors = ["InvArchitects <https://github.com/InvArch>"]
description = "A Substrate-based InvArch Node."
license = "GPL-3.0"
Expand Down
2 changes: 1 addition & 1 deletion invarch/runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "invarch-runtime"
version = "1.0.0"
version = "1.1.1"
authors = ["InvArchitects <https://github.com/InvArch>"]
license = "Unlicense"
homepage = "https://substrate.io"
Expand Down
4 changes: 2 additions & 2 deletions invarch/runtime/src/balances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ pub struct WeightToFee;
impl WeightToFeePolynomial for WeightToFee {
type Balance = Balance;
fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {
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,
Expand Down
2 changes: 1 addition & 1 deletion invarch/runtime/src/inv4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion invarch/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions invarch/runtime/src/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4fab3e6

Please sign in to comment.