mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 19:07:57 +00:00
More efficient identity and multiplier weight to fee (#11226)
This commit is contained in:
@@ -710,6 +710,10 @@ where
|
||||
degree: 1,
|
||||
})
|
||||
}
|
||||
|
||||
fn calc(weight: &Weight) -> Self::Balance {
|
||||
Self::Balance::saturated_from(*weight)
|
||||
}
|
||||
}
|
||||
|
||||
/// Implementor of [`WeightToFeePolynomial`] that uses a constant multiplier.
|
||||
@@ -738,6 +742,10 @@ where
|
||||
degree: 1,
|
||||
})
|
||||
}
|
||||
|
||||
fn calc(weight: &Weight) -> Self::Balance {
|
||||
Self::Balance::saturated_from(*weight).saturating_mul(M::get())
|
||||
}
|
||||
}
|
||||
|
||||
/// A struct holding value for each `DispatchClass`.
|
||||
|
||||
Reference in New Issue
Block a user