diff --git a/runtime/moonriver/src/lib.rs b/runtime/moonriver/src/lib.rs index 5e2914a1c50..a7f06823f31 100644 --- a/runtime/moonriver/src/lib.rs +++ b/runtime/moonriver/src/lib.rs @@ -43,8 +43,7 @@ use frame_support::{ }, weights::{ constants::{RocksDbWeight, WEIGHT_PER_SECOND}, - DispatchClass, GetDispatchInfo, IdentityFee, Weight, WeightToFeeCoefficient, - WeightToFeeCoefficients, WeightToFeePolynomial, + DispatchClass, GetDispatchInfo, IdentityFee, Weight, }, PalletId, }; @@ -82,7 +81,6 @@ use sp_runtime::{ use sp_std::{convert::TryFrom, prelude::*}; use cumulus_primitives_core::{relay_chain::BlockNumber as RelayBlockNumber, DmpMessageHandler}; -use smallvec::smallvec; #[cfg(feature = "std")] use sp_version::NativeVersion; use sp_version::RuntimeVersion; @@ -286,28 +284,6 @@ where } } -pub struct WeightToFee; -impl WeightToFeePolynomial for WeightToFee { - type Balance = Balance; - - /// Return a vec of coefficients. Here we just use one coefficient and reduce it to a constant - /// modifier in order to closely match Ethereum-based fees. - /// - /// Calculation, per the documentation in `frame_support`: - /// - /// ```ignore - /// coeff_integer * x^(degree) + coeff_frac * x^(degree) - /// ``` - fn polynomial() -> WeightToFeeCoefficients { - smallvec![WeightToFeeCoefficient { - degree: 1, - coeff_frac: Perbill::zero(), - coeff_integer: currency::WEIGHT_FEE, - negative: false, - }] - } -} - impl pallet_transaction_payment::Config for Runtime { type OnChargeTransaction = CurrencyAdapter>; type TransactionByteFee = ConstU128<{ currency::TRANSACTION_BYTE_FEE }>;