Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/claims/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ pub mod pallet {
) -> Result<BalanceOf<T>, 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::<T>::NoPermission
Expand Down
10 changes: 5 additions & 5 deletions modules/incentives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ impl<T: Trait> IncentiveOps<T::AccountId, CurrencyId, Share, Balance> 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()
}
Expand All @@ -196,10 +196,10 @@ impl<T: Trait> IncentiveOps<T::AccountId, CurrencyId, Share, Balance> for Module
fn get_account_info(who: &T::AccountId, left: &CurrencyId, right: &CurrencyId) -> IncentivePoolAccountInfo<Share, Balance> {
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(), }
}
}

Expand Down
2 changes: 1 addition & 1 deletion modules/reward-pool/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ impl<T: Trait> Module<T> {

impl<T: Trait> RewardPoolOps<T::AccountId, T::PoolId, Share, Balance> for Module<T> {
/// 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
Expand Down