From 81b9a9aeeecb6860b044f9336d32d98271b816d6 Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Wed, 12 Feb 2025 23:00:35 +0100 Subject: [PATCH 1/3] Update lib.rs --- modules/incentives/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/incentives/src/lib.rs b/modules/incentives/src/lib.rs index 5aae740..0e852b6 100644 --- a/modules/incentives/src/lib.rs +++ b/modules/incentives/src/lib.rs @@ -185,9 +185,9 @@ impl IncentiveOps for Module } } - fn get_accumlated_rewards(who: &T::AccountId, left: &CurrencyId, right: &CurrencyId) -> Share { + fn get_accumulated_rewards(who: &T::AccountId, left: &CurrencyId, right: &CurrencyId) -> Share { if let Ok(id) = Self::get_dex_id(left, right) { - T::RewardPool::get_accumlated_rewards(who, &id) + T::RewardPool::get_accumulated_rewards(who, &id) } else { Zero::zero() } @@ -196,10 +196,10 @@ impl IncentiveOps for Module fn get_account_info(who: &T::AccountId, left: &CurrencyId, right: &CurrencyId) -> IncentivePoolAccountInfo { if let Ok(pool_id) = Self::get_dex_id(left, right) { let shares = T::RewardPool::get_account_shares(who, &pool_id); - let accumlated_rewards = T::RewardPool::get_accumlated_rewards(who, &pool_id); - IncentivePoolAccountInfo { shares, accumlated_rewards, } + let accumulated_rewards = T::RewardPool::get_accumulated_rewards(who, &pool_id); + IncentivePoolAccountInfo { shares, accumulated_rewards, } } else { - IncentivePoolAccountInfo { shares: Zero::zero(), accumlated_rewards: Zero::zero(), } + IncentivePoolAccountInfo { shares: Zero::zero(), accumulated_rewards: Zero::zero(), } } } From 12822159661e7874495c9793556819e0df26a1ae Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Wed, 12 Feb 2025 23:01:08 +0100 Subject: [PATCH 2/3] Update lib.rs --- modules/reward-pool/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/reward-pool/src/lib.rs b/modules/reward-pool/src/lib.rs index adec323..1e30c78 100644 --- a/modules/reward-pool/src/lib.rs +++ b/modules/reward-pool/src/lib.rs @@ -299,7 +299,7 @@ impl Module { impl RewardPoolOps for Module { /// add shares to the reward pool - /// note: should call this function insdie a storage transaction + /// note: should call this function inside a storage transaction /// steps: /// 1. update the rewards /// 2. caculate the share price in the pool From 5cb523ba10118b6f85fb2e421f5f8b0ba035a7d1 Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Wed, 12 Feb 2025 23:02:13 +0100 Subject: [PATCH 3/3] Update lib.rs --- modules/claims/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/claims/src/lib.rs b/modules/claims/src/lib.rs index c3468d3..2608118 100644 --- a/modules/claims/src/lib.rs +++ b/modules/claims/src/lib.rs @@ -409,7 +409,7 @@ pub mod pallet { ) -> Result, DispatchError> { let bridge_account = Self::elastic_bridge_accounts(network); - // mint must be orginated from bridge account + // mint must be originated from bridge account ensure!( Some(&from) == bridge_account.as_ref(), Error::::NoPermission