@@ -306,10 +306,10 @@ pub mod module {
306306 /// transaction fee paid, the second is the tip paid, if any.
307307 type OnTransactionPayment : OnUnbalanced < NegativeImbalanceOf < Self > > ;
308308
309- /// A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
309+ /// A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
310310 /// `priority`
311311 ///
312- /// This value is multipled by the `final_fee` to obtain a "virtual tip" that is later
312+ /// This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
313313 /// added to a tip component in regular `priority` calculations.
314314 /// It means that a `Normal` transaction can front-run a similarly-sized `Operational`
315315 /// extrinsic (with no tip), by including a tip value greater than the virtual tip.
@@ -371,19 +371,19 @@ pub mod module {
371371 /// Weight information for the extrinsics in this module.
372372 type WeightInfo : WeightInfo ;
373373
374- /// PalletId used to derivate sub account.
374+ /// PalletId used to derivative sub account.
375375 #[ pallet:: constant]
376376 type PalletId : Get < PalletId > ;
377377
378378 /// Treasury account used to transfer balance to sub account of `PalletId`.
379379 #[ pallet:: constant]
380380 type TreasuryAccount : Get < Self :: AccountId > ;
381381
382- /// Custom fee surplus if not payed with native asset.
382+ /// Custom fee surplus if not paid with native asset.
383383 #[ pallet:: constant]
384384 type CustomFeeSurplus : Get < Percent > ;
385385
386- /// Alternative fee surplus if not payed with native asset.
386+ /// Alternative fee surplus if not paid with native asset.
387387 #[ pallet:: constant]
388388 type AlternativeFeeSurplus : Get < Percent > ;
389389
@@ -1462,7 +1462,7 @@ where
14621462 len : usize ,
14631463 _result : & DispatchResult ,
14641464 ) -> Result < ( ) , TransactionValidityError > {
1465- if let Some ( ( tip, who, Some ( payed ) , fee, surplus) ) = pre {
1465+ if let Some ( ( tip, who, Some ( paid ) , fee, surplus) ) = pre {
14661466 let actual_fee = Pallet :: < T > :: compute_actual_fee ( len as u32 , info, post_info, tip) ;
14671467 let refund_fee = fee. saturating_sub ( actual_fee) ;
14681468 let mut refund = refund_fee;
@@ -1489,7 +1489,7 @@ where
14891489
14901490 let actual_payment = match <T as Config >:: Currency :: deposit_into_existing ( & who, refund) {
14911491 Ok ( refund_imbalance) => {
1492- // The refund cannot be larger than the up front payed max weight.
1492+ // The refund cannot be larger than the up front paid max weight.
14931493 // `PostDispatchInfo::calc_unspent` guards against such a case.
14941494 match payed. offset ( refund_imbalance) {
14951495 SameOrOther :: Same ( actual_payment) => actual_payment,
@@ -1499,7 +1499,7 @@ where
14991499 }
15001500 // We do not recreate the account using the refund. The up front payment
15011501 // is gone in that case.
1502- Err ( _) => payed ,
1502+ Err ( _) => paid ,
15031503 } ;
15041504 let ( tip, fee) = actual_payment. split ( actual_tip) ;
15051505
@@ -1570,14 +1570,14 @@ where
15701570 fn refund_fee (
15711571 who : & T :: AccountId ,
15721572 refund_weight : Weight ,
1573- payed : NegativeImbalanceOf < T > ,
1573+ paid : NegativeImbalanceOf < T > ,
15741574 ) -> Result < ( ) , TransactionValidityError > {
1575- log:: debug!( target: "transaction-payment" , "refund_fee: who: {:?}, refund_weight: {:?}, payed : {:?}" , who, refund_weight, payed. peek( ) ) ;
1575+ log:: debug!( target: "transaction-payment" , "refund_fee: who: {:?}, refund_weight: {:?}, paid : {:?}" , who, refund_weight, payed. peek( ) ) ;
15761576
15771577 let refund = Pallet :: < T > :: weight_to_fee ( refund_weight) ;
15781578 let actual_payment = match <T as Config >:: Currency :: deposit_into_existing ( who, refund) {
15791579 Ok ( refund_imbalance) => {
1580- // The refund cannot be larger than the up front payed max weight.
1580+ // The refund cannot be larger than the up front paid max weight.
15811581 match payed. offset ( refund_imbalance) {
15821582 SameOrOther :: Same ( actual_payment) => actual_payment,
15831583 SameOrOther :: None => Default :: default ( ) ,
@@ -1586,7 +1586,7 @@ where
15861586 }
15871587 // We do not recreate the account using the refund. The up front payment
15881588 // is gone in that case.
1589- Err ( _) => payed ,
1589+ Err ( _) => paid ,
15901590 } ;
15911591
15921592 // distribute fee
0 commit comments