mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 04:41:03 +00:00
Add LengthToFee to runtimes (#1152)
* Add LengthToFee to runtimes
* update lockfile for {"polkadot"}
* fmt
* Update Cargo.lock
Co-authored-by: parity-processbot <>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
@@ -44,7 +44,7 @@ use constants::{currency::*, fee::WeightToFee};
|
||||
use frame_support::{
|
||||
construct_runtime, parameter_types,
|
||||
traits::{ConstU128, ConstU16, ConstU32, ConstU64, ConstU8, Everything},
|
||||
weights::DispatchClass,
|
||||
weights::{ConstantMultiplier, DispatchClass},
|
||||
PalletId,
|
||||
};
|
||||
use frame_system::limits::{BlockLength, BlockWeights};
|
||||
@@ -208,9 +208,9 @@ impl pallet_balances::Config for Runtime {
|
||||
impl pallet_transaction_payment::Config for Runtime {
|
||||
type OnChargeTransaction =
|
||||
pallet_transaction_payment::CurrencyAdapter<Balances, DealWithFees<Runtime>>;
|
||||
/// Relay Chain `TransactionByteFee` / 10
|
||||
type TransactionByteFee = ConstU128<MILLICENTS>;
|
||||
type WeightToFee = WeightToFee;
|
||||
/// Relay Chain `TransactionByteFee` / 10
|
||||
type LengthToFee = ConstantMultiplier<Balance, ConstU128<MILLICENTS>>;
|
||||
type FeeMultiplierUpdate = SlowAdjustingFeeUpdate<Self>;
|
||||
type OperationalFeeMultiplier = ConstU8<5>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user