From a49d3c7cd2cb0f934c35f4f44027085416fad16c Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Fri, 09 Sep 2022 09:40:39 +0000 Subject: [PATCH] fix: use IdentityFeeUpdate --- --- 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! { -- gitstuff