Skip to content

Commit

Permalink
cargo fmt --all
Browse files Browse the repository at this point in the history
  • Loading branch information
rustlang-dev committed Nov 7, 2024
1 parent 5f9ef06 commit 6c50e89
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ use frame_support::{
OnTimestampSet,
},
weights::{
constants::WEIGHT_REF_TIME_PER_MILLIS, constants::WEIGHT_REF_TIME_PER_NANOS, ConstantMultiplier, Weight, WeightToFeeCoefficient,
constants::WEIGHT_REF_TIME_PER_MILLIS, constants::WEIGHT_REF_TIME_PER_NANOS,
ConstantMultiplier, Weight, WeightToFeeCoefficient,
},
PalletId,
};
Expand Down Expand Up @@ -342,13 +343,13 @@ impl<T: frame_system::Config> WeightToFeePolynomial for WeightToCtcFee<T> {

fn polynomial() -> frame_support::weights::WeightToFeeCoefficients<Self::Balance> {
let p = MILLI_CTC / 2;
let q = 100 * Balance::from(ExtrinsicBaseWeight::get().ref_time());
smallvec::smallvec![WeightToFeeCoefficient {
degree: 1,
negative: false,
coeff_frac: Perbill::from_rational(p % q, q),
coeff_integer: p / q,
}]
let q = 100 * Balance::from(ExtrinsicBaseWeight::get().ref_time());
smallvec::smallvec![WeightToFeeCoefficient {
degree: 1,
negative: false,
coeff_frac: Perbill::from_rational(p % q, q),
coeff_integer: p / q,
}]
}
}

Expand Down Expand Up @@ -532,7 +533,6 @@ impl pallet_staking::BenchmarkingConfig for StakingBenchmarkingConfig {

pub const CTC: Balance = 1_000_000_000_000_000_000;


const CTC_REWARD_PER_BLOCK: Balance = 2 * CTC;

pub struct EraPayout;
Expand Down

0 comments on commit 6c50e89

Please sign in to comment.