From 10227133b3cf7f9bae00fbef384658b1f4b3f80b Mon Sep 17 00:00:00 2001 From: mountdisk Date: Fri, 16 Aug 2024 21:31:34 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: mountdisk --- modules/dex/src/lib.rs | 2 +- modules/idle-scheduler/src/tests.rs | 2 +- modules/incentives/src/tests.rs | 2 +- modules/prices/src/lib.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/dex/src/lib.rs b/modules/dex/src/lib.rs index 92d1d25672..f8882aebc4 100644 --- a/modules/dex/src/lib.rs +++ b/modules/dex/src/lib.rs @@ -169,7 +169,7 @@ pub mod module { UnacceptableShareIncrement, /// The liquidity withdrawn is unacceptable UnacceptableLiquidityWithdrawn, - /// The swap dosen't meet the invariant check + /// The swap doesn't meet the invariant check InvariantCheckFailed, /// The Provision is unqualified to be converted to `Enabled` UnqualifiedProvision, diff --git a/modules/idle-scheduler/src/tests.rs b/modules/idle-scheduler/src/tests.rs index 13b49ab6fd..9f47752d7d 100644 --- a/modules/idle-scheduler/src/tests.rs +++ b/modules/idle-scheduler/src/tests.rs @@ -80,7 +80,7 @@ fn can_process_tasks_up_to_weight_limit() { Weight::from_parts(100_002_000_000, 0) + <()>::on_idle_base() + (<()>::clear_tasks() * 2), ); - // Due to hashing, excution is not guaranteed to be in order. + // Due to hashing, execution is not guaranteed to be in order. assert_eq!( Tasks::::get(0), Some(ScheduledTasks::BalancesTask(BalancesTask::OnIdle)) diff --git a/modules/incentives/src/tests.rs b/modules/incentives/src/tests.rs index d80d2c566d..853bda0910 100644 --- a/modules/incentives/src/tests.rs +++ b/modules/incentives/src/tests.rs @@ -1163,7 +1163,7 @@ fn transfer_reward_and_update_rewards_storage_atomically_when_accumulate_incenti vec![(PoolId::Loans(LDOT), vec![(ACA, 30), (AUSD, 90)]),], )); - // accumulate ACA and AUSD failed, because pool dosen't exist + // accumulate ACA and AUSD failed, because pool doesn't exist IncentivesModule::accumulate_incentives(PoolId::Loans(LDOT)); assert_eq!( orml_rewards::PoolInfos::::contains_key(PoolId::Dex(LDOT)), diff --git a/modules/prices/src/lib.rs b/modules/prices/src/lib.rs index e5a89a8b1b..a534871f7b 100644 --- a/modules/prices/src/lib.rs +++ b/modules/prices/src/lib.rs @@ -23,7 +23,7 @@ //! The data from Oracle cannot be used in business, prices module will do some //! process and feed prices for Acala. Process include: //! - specify a fixed price for stable currency -//! - feed price in USD or related price bewteen two currencies +//! - feed price in USD or related price between two currencies //! - lock/unlock the price data get from oracle #![cfg_attr(not(feature = "std"), no_std)]