We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eddad9d + 5adb607 commit ca2f3f6Copy full SHA for ca2f3f6
crates/pallet-transaction-fees/src/lib.rs
@@ -257,10 +257,9 @@ where
257
pub fn calculate_transaction_byte_fee() -> BalanceOf<T> {
258
let credit_supply = T::CreditSupply::get();
259
260
- match T::TotalSpacePledged::get().checked_sub(
261
- T::BlockchainHistorySize::get()
262
- .saturating_mul(u128::from(T::MinReplicationFactor::get())),
263
- ) {
+ match (T::TotalSpacePledged::get() / u128::from(T::MinReplicationFactor::get()))
+ .checked_sub(T::BlockchainHistorySize::get())
+ {
264
Some(free_space) if free_space > 0 => {
265
credit_supply / BalanceOf::<T>::saturated_from(free_space)
266
}
0 commit comments