difftreelog
Move coeff to common
in: master
4 files changed
runtime/common/src/constants.rsdiffbeforeafterboth14pub const HOURS: BlockNumber = MINUTES * 60;14pub const HOURS: BlockNumber = MINUTES * 60;15pub const DAYS: BlockNumber = HOURS * 24;15pub const DAYS: BlockNumber = HOURS * 24;1617pub const WEIGHT_TO_FEE_COEFF: u32 = 142_688_000;161817/// We assume that ~10% of the block weight is consumed by `on_initalize` handlers.19/// We assume that ~10% of the block weight is consumed by `on_initalize` handlers.18/// This is used to limit the maximal weight of a single extrinsic.20/// This is used to limit the maximal weight of a single extrinsic.runtime/opal/src/lib.rsdiffbeforeafterboth467 fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {467 fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {468 smallvec!(WeightToFeeCoefficient {468 smallvec!(WeightToFeeCoefficient {469 // Targeting 0.1 Unique per NFT transfer469 // Targeting 0.1 Unique per NFT transfer470 coeff_integer: 142_688_000u32.into(),470 coeff_integer: WEIGHT_TO_FEE_COEFF.into(),471 coeff_frac: Perbill::zero(),471 coeff_frac: Perbill::zero(),472 negative: false,472 negative: false,473 degree: 1,473 degree: 1,runtime/quartz/src/lib.rsdiffbeforeafterboth467 fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {467 fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {468 smallvec!(WeightToFeeCoefficient {468 smallvec!(WeightToFeeCoefficient {469 // Targeting 0.1 Unique per NFT transfer469 // Targeting 0.1 Unique per NFT transfer470 coeff_integer: 142_688_000u32.into(),470 coeff_integer: WEIGHT_TO_FEE_COEFF.into(),471 coeff_frac: Perbill::zero(),471 coeff_frac: Perbill::zero(),472 negative: false,472 negative: false,473 degree: 1,473 degree: 1,runtime/unique/src/lib.rsdiffbeforeafterboth466 fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {466 fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {467 smallvec!(WeightToFeeCoefficient {467 smallvec!(WeightToFeeCoefficient {468 // Targeting 0.1 Unique per NFT transfer468 // Targeting 0.1 Unique per NFT transfer469 coeff_integer: 142_688_000u32.into(),469 coeff_integer: WEIGHT_TO_FEE_COEFF.into(),470 coeff_frac: Perbill::zero(),470 coeff_frac: Perbill::zero(),471 negative: false,471 negative: false,472 degree: 1,472 degree: 1,