--- a/runtime/common/config/substrate.rs +++ b/runtime/common/config/substrate.rs @@ -26,12 +26,14 @@ use sp_runtime::{ generic, traits::{BlakeTwo256, AccountIdLookup}, - Perbill, Permill, Percent, + Perquintill, Perbill, Permill, Percent, }; +use sp_arithmetic::traits::{Zero, One}; use frame_system::{ limits::{BlockLength, BlockWeights}, EnsureRoot, }; +use pallet_transaction_payment::{Multiplier, TargetedFeeAdjustment}; use crate::{ runtime_common::DealWithFees, Runtime, RuntimeEvent, RuntimeCall, RuntimeOrigin, PalletInfo, System, Balances, Treasury, SS58Prefix, Version, @@ -152,15 +154,24 @@ /// This value increases the priority of `Operational` transactions by adding /// a "virtual tip" that's equal to the `OperationalFeeMultiplier * final_fee`. pub const OperationalFeeMultiplier: u8 = 5; + + pub const TargetBlockFullness: Perquintill = Perquintill::zero(); + + pub AdjustmentVariable: Multiplier = Multiplier::zero(); + + pub MinimumMultiplier: Multiplier = Multiplier::one(); } +pub type IdentityFeeUpdate = + TargetedFeeAdjustment; + impl pallet_transaction_payment::Config for Runtime { type RuntimeEvent = RuntimeEvent; type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter; type LengthToFee = ConstantMultiplier; type OperationalFeeMultiplier = OperationalFeeMultiplier; type WeightToFee = pallet_configuration::WeightToFee; - type FeeMultiplierUpdate = (); + type FeeMultiplierUpdate = IdentityFeeUpdate; } parameter_types! {