Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

ext fees inclusion on tip #14717

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion frame/transaction-payment/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,11 @@ where
match info.class {
DispatchClass::Normal => {
// For normal class we simply take the `tip_per_weight`.
scaled_tip
let fee_n_multiplier = T::OperationalFeeMultiplier::get()
.saturated_into::<BalanceOf<T>>().saturating_mul(final_fee);
// Taking into account extrinsic fee
// final_tip = multiplier * final_fee + scaled_tip
scaled_tip.saturating_add(fee_n_multiplier)
},
DispatchClass::Mandatory => {
// Mandatory extrinsics should be prohibited (e.g. by the [`CheckWeight`]
Expand Down