Skip to content

Commit

Permalink
Use DealWithFees in transaction_payment (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guantong authored Dec 29, 2022
1 parent a29b2cc commit 85b70e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion runtime/crab/src/pallets/transaction_payment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ impl pallet_transaction_payment::Config for Runtime {
type FeeMultiplierUpdate = polkadot_runtime_common::SlowAdjustingFeeUpdate<Self>;
// Relay Chain `TransactionByteFee` / 10
type LengthToFee = ConstantMultiplier<Balance, ConstU128<{ 10 * MICROUNIT }>>;
type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, ()>;
type OnChargeTransaction =
pallet_transaction_payment::CurrencyAdapter<Balances, DealWithFees<Runtime>>;
type OperationalFeeMultiplier = sp_runtime::traits::ConstU8<5>;
type RuntimeEvent = RuntimeEvent;
type WeightToFee = WeightToFee;
Expand Down
3 changes: 2 additions & 1 deletion runtime/darwinia/src/pallets/transaction_payment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ impl pallet_transaction_payment::Config for Runtime {
type FeeMultiplierUpdate = polkadot_runtime_common::SlowAdjustingFeeUpdate<Self>;
// Relay Chain `TransactionByteFee` / 10
type LengthToFee = ConstantMultiplier<Balance, ConstU128<{ 10 * MICROUNIT }>>;
type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, ()>;
type OnChargeTransaction =
pallet_transaction_payment::CurrencyAdapter<Balances, DealWithFees<Runtime>>;
type OperationalFeeMultiplier = sp_runtime::traits::ConstU8<5>;
type RuntimeEvent = RuntimeEvent;
type WeightToFee = WeightToFee;
Expand Down
3 changes: 2 additions & 1 deletion runtime/pangolin/src/pallets/transaction_payment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ impl pallet_transaction_payment::Config for Runtime {
type FeeMultiplierUpdate = polkadot_runtime_common::SlowAdjustingFeeUpdate<Self>;
// Relay Chain `TransactionByteFee` / 10
type LengthToFee = ConstantMultiplier<Balance, ConstU128<{ 10 * MICROUNIT }>>;
type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, ()>;
type OnChargeTransaction =
pallet_transaction_payment::CurrencyAdapter<Balances, DealWithFees<Runtime>>;
type OperationalFeeMultiplier = sp_runtime::traits::ConstU8<5>;
type RuntimeEvent = RuntimeEvent;
type WeightToFee = WeightToFee;
Expand Down

0 comments on commit 85b70e2

Please sign in to comment.