Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Co-authored-by: MOZGIII <[email protected]>
  • Loading branch information
dmitrylavrenov and MOZGIII committed Aug 11, 2023
1 parent f1b4304 commit 5ef7ed1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/pallet-bridges-initializer-currency-swap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ impl<T: Config> Pallet<T> {
)?;
weight += T::DbWeight::get().writes(1);

// We can safely ignore the result as overflow cann't be reached.
// We can safely ignore the result as overflow can't be reached.
// current_native_bridge_balance < amount. The resulted balance is equal to amount.
let _ = T::NativeCurrency::resolve_into_existing(
&T::NativeEvmBridgePot::get(),
Expand All @@ -277,7 +277,7 @@ impl<T: Config> Pallet<T> {
)?;
weight += T::DbWeight::get().writes(1);

// We can safely ignore the result as overflow cann't be reached.
// We can safely ignore the result as overflow can't be reached.
// current_native_bridge_balance + current_native_treasury < total_issuance.
// So, imbalance + current_native_treasury < total_issuance.
let _ = T::NativeCurrency::resolve_into_existing(
Expand Down Expand Up @@ -321,7 +321,7 @@ impl<T: Config> Pallet<T> {
);
weight += T::DbWeight::get().writes(1);

// We can safely ignore the result as overflow cann't be reached.
// We can safely ignore the result as overflow can't be reached.
// current_evm_bridge_balance < amount. The resulted balance is equal to amount.
let _ =
T::EvmCurrency::resolve_into_existing(&T::EvmNativeBridgePot::get(), imbalance);
Expand All @@ -335,7 +335,7 @@ impl<T: Config> Pallet<T> {
);
weight += T::DbWeight::get().writes(1);

// We can safely ignore the result as underflow cann't be reached.
// We can safely ignore the result as underflow can't be reached.
// current_evm_bridge_balance > amount => imbalance < current_evm_bridge_balance.
let _ = T::EvmCurrency::settle(
&T::EvmNativeBridgePot::get(),
Expand Down

0 comments on commit 5ef7ed1

Please sign in to comment.