Skip to content
Snippets Groups Projects
Commit 53994691 authored by Nazar Mokrynskyi's avatar Nazar Mokrynskyi Committed by GitHub
Browse files

More efficient identity and multiplier weight to fee (#11226)

parent 53575a95
No related merge requests found
......@@ -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`.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment