Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some comments #443

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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 contracts/red-bank/src/liquidate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ pub fn liquidate(
let user_debt_amount_scaled_after =
get_scaled_debt_amount(user_debt_amount_after, &debt_market, block_time)?;

// Compute delta so it can be substracted to total debt
// Compute delta so it can be subtracted to total debt
let debt_amount_scaled_delta =
user_debt.amount_scaled.checked_sub(user_debt_amount_scaled_after)?;

Expand Down
2 changes: 1 addition & 1 deletion contracts/v2-zapper/astroport/src/lp_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ fn from_astro_to_apollo_assets_info(assets: &[AstroAssetInfo]) -> Vec<AssetInfo>
assets.iter().map(|a| from_astro_to_apollo_asset_info(a.clone())).collect()
}

/// Converts Astro to Apollo `AssetInfo`. Apollo crates have coverters from Astro to Apollo but we use
/// Converts Astro to Apollo `AssetInfo`. Apollo crates have converters from Astro to Apollo but we use
/// different astroport version so we can't use them directly.
fn from_astro_to_apollo_asset_info(asset_info: AstroAssetInfo) -> AssetInfo {
match asset_info {
Expand Down
2 changes: 1 addition & 1 deletion contracts/vault/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ pub fn redeem(
let total_unlocked_vault_tokens =
unlocked.into_iter().map(|us| us.vault_tokens).sum::<Uint128>();

// check that the the provided vault tokens is equal or greater than total unlocked vault tokens
// check that the provided vault tokens is equal or greater than total unlocked vault tokens
if vault_tokens < total_unlocked_vault_tokens {
return Err(ContractError::InvalidAmount {
reason: "provided vault tokens is less than total unlocked amount".to_string(),
Expand Down
2 changes: 1 addition & 1 deletion packages/chains/osmosis/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ impl Pool {
}
}

/// Query an Osmosis pool's coin depths and the supply of of liquidity token
/// Query an Osmosis pool's coin depths and the supply of liquidity token
pub fn query_pool(querier: &QuerierWrapper, pool_id: u64) -> StdResult<Pool> {
let req: QueryRequest<Empty> = PoolRequest {
pool_id,
Expand Down