From 02f330780911ed24a3f44ba23ee3cd67edb4a4c2 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Mon, 19 Aug 2024 11:01:04 +0300 Subject: [PATCH] Fix spelling issues (#426) * fix spelling types_diff_v1_0_0__mars_v2.txt * fix spelling issue test_incentives.rs * add auxiliary verb health_computer.rs --- files/types_diff_v1_0_0__mars_v2.txt | 2 +- integration-tests/tests/test_incentives.rs | 2 +- packages/health-computer/src/health_computer.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/types_diff_v1_0_0__mars_v2.txt b/files/types_diff_v1_0_0__mars_v2.txt index ab557531..efa14970 100644 --- a/files/types_diff_v1_0_0__mars_v2.txt +++ b/files/types_diff_v1_0_0__mars_v2.txt @@ -287,7 +287,7 @@ index 1ec39a76..c94cad79 100644 - /// How many MARS will be assigned per second to be distributed among all Red Bank - /// depositors - emission_per_second: Option, -+ /// The denom of the collatearal token to receive incentives ++ /// The denom of the collateral token to receive incentives + collateral_denom: String, + /// The denom of the token to give incentives with + incentive_denom: String, diff --git a/integration-tests/tests/test_incentives.rs b/integration-tests/tests/test_incentives.rs index ee0a3098..aa71e3e6 100644 --- a/integration-tests/tests/test_incentives.rs +++ b/integration-tests/tests/test_incentives.rs @@ -65,7 +65,7 @@ fn rewards_claim() { assert!(rewards_balance.is_empty()); } -// Credit accounts can deposit / withdraw from Red Bank and accure rewards in incentives contract. +// Credit accounts can deposit / withdraw from Red Bank and accrue rewards in incentives contract. #[test] fn rewards_claim_for_credit_account() { let owner = Addr::unchecked("owner"); diff --git a/packages/health-computer/src/health_computer.rs b/packages/health-computer/src/health_computer.rs index 4af0262b..23ab5691 100644 --- a/packages/health-computer/src/health_computer.rs +++ b/packages/health-computer/src/health_computer.rs @@ -220,7 +220,7 @@ impl HealthComputer { // This represents the max ltv adjusted value of the coin being swapped from let swap_from_ltv_value = from_coin_value.checked_mul_floor(from_ltv)?; - // The from_denom is always taken on as debt, as the trade is the bullish direction + // The from_denom is always taken on as debt, as the trade is in the bullish direction // of the to_denom (expecting it to outpace the borrow rate from the from_denom) let swap_to_ltv_value = from_coin_value.checked_mul_floor(to_ltv)?;