difftreelog
Move min gas price to common
in: master
4 files changed
runtime/common/src/constants.rsdiffbeforeafterboth--- a/runtime/common/src/constants.rs
+++ b/runtime/common/src/constants.rs
@@ -21,6 +21,9 @@
pub const WEIGHT_TO_FEE_COEFF: u32 = 142_688_000;
+// Targeting 0.15 UNQ per transfer
+pub const MIN_GAS_PRICE: u64 = 1_018_751_825_264;
+
/// We assume that ~10% of the block weight is consumed by `on_initalize` handlers.
/// This is used to limit the maximal weight of a single extrinsic.
pub const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(10);
runtime/opal/src/lib.rsdiffbeforeafterboth--- a/runtime/opal/src/lib.rs
+++ b/runtime/opal/src/lib.rs
@@ -226,8 +226,7 @@
pub struct FixedFee;
impl FeeCalculator for FixedFee {
fn min_gas_price() -> U256 {
- // Targeting 0.15 UNQ per transfer
- 1_018_751_825_264u64.into()
+ MIN_GAS_PRICE.into()
}
}
runtime/quartz/src/lib.rsdiffbeforeafterboth--- a/runtime/quartz/src/lib.rs
+++ b/runtime/quartz/src/lib.rs
@@ -226,8 +226,7 @@
pub struct FixedFee;
impl FeeCalculator for FixedFee {
fn min_gas_price() -> U256 {
- // Targeting 0.15 UNQ per transfer
- 1_018_751_825_264u64.into()
+ MIN_GAS_PRICE.into()
}
}
runtime/unique/src/lib.rsdiffbeforeafterboth225pub struct FixedFee;225pub struct FixedFee;226impl FeeCalculator for FixedFee {226impl FeeCalculator for FixedFee {227 fn min_gas_price() -> U256 {227 fn min_gas_price() -> U256 {228 // Targeting 0.15 UNQ per transfer229 1_018_751_825_264u64.into()228 MIN_GAS_PRICE.into()230 }229 }231}230}232231