diff --git a/crates/pallet-domains/src/staking_epoch.rs b/crates/pallet-domains/src/staking_epoch.rs index 2695599341..1f9b1af660 100644 --- a/crates/pallet-domains/src/staking_epoch.rs +++ b/crates/pallet-domains/src/staking_epoch.rs @@ -405,14 +405,14 @@ pub(crate) fn do_slash_operator( // current staked amount let nominator_staked_amount = share_price.shares_to_stake::(nominator_shares); - let pedning_deposit = deposit + let pending_deposit = deposit .pending .map(|pending_deposit| pending_deposit.amount) .unwrap_or_default(); // do not slash the deposit that is not staked yet let amount_to_slash_in_holding = locked_amount - .checked_sub(&pedning_deposit) + .checked_sub(&pending_deposit) .ok_or(TransitionError::BalanceUnderflow)?; T::Currency::transfer_on_hold( @@ -430,7 +430,7 @@ pub(crate) fn do_slash_operator( T::Currency::release( &staked_hold_id, &nominator_id, - pedning_deposit, + pending_deposit, Precision::BestEffort, ) .map_err(|_| TransitionError::RemoveLock)?; diff --git a/domains/primitives/messenger/src/messages.rs b/domains/primitives/messenger/src/messages.rs index 568d7e73c6..e353399ab8 100644 --- a/domains/primitives/messenger/src/messages.rs +++ b/domains/primitives/messenger/src/messages.rs @@ -61,7 +61,7 @@ pub struct Channel { /// Owner of the channel /// Owner maybe None if the channel was initiated on the other chain. pub maybe_owner: Option, - /// The amount of fund hold on the owner account for this channel + /// The amount of funds put on hold by the owner account for this channel pub channel_reserve_fee: Balance, }