From f88a0de63c3949eee6a852dfab4bc35d7a3e084e Mon Sep 17 00:00:00 2001 From: costcould Date: Wed, 14 Aug 2024 22:32:39 +0800 Subject: [PATCH] chore: remove repeat words (#2579) Signed-off-by: costcould Co-authored-by: Sai Kumar <17549398+gsk967@users.noreply.github.com> --- x/incentive/keeper/scenario_test.go | 2 +- x/leverage/types/keys.go | 2 +- x/leverage/types/token.go | 2 +- x/uibc/quota/quota_test.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/x/incentive/keeper/scenario_test.go b/x/incentive/keeper/scenario_test.go index 67736d2c66..25bd220d39 100644 --- a/x/incentive/keeper/scenario_test.go +++ b/x/incentive/keeper/scenario_test.go @@ -303,7 +303,7 @@ func TestZeroBondedAtProgramEnd(t *testing.T) { require.Equal(t, incentive.ProgramStatusOngoing, k.programStatus(1), "program 1 status ongoing (time 150)") require.Equal(t, sdk.NewInt(6_666667), program.RemainingRewards.Amount, "one third of program rewards distributed") - // unbond half of the supply. Since Alice is is the only supplier, this should not change reward distribution + // unbond half of the supply. Since Alice is the only supplier, this should not change reward distribution // also, alice claims rewards when unbonding k.mustBeginUnbond(alice, coin.New(uUmee, 50_000000)) diff --git a/x/leverage/types/keys.go b/x/leverage/types/keys.go index 6efd841870..32d2844849 100644 --- a/x/leverage/types/keys.go +++ b/x/leverage/types/keys.go @@ -76,7 +76,7 @@ func KeyCollateralAmountNoDenom(addr sdk.AccAddress) []byte { return util.ConcatBytes(0, KeyPrefixCollateralAmount, address.MustLengthPrefix(addr)) } -// KeyReserveAmount returns a KVStore key for getting and setting the amount reserved of a a given token. +// KeyReserveAmount returns a KVStore key for getting and setting the amount reserved of a given token. func KeyReserveAmount(tokenDenom string) []byte { // reserveamountprefix | denom | 0x00 for null-termination return util.ConcatBytes(1, KeyPrefixReserveAmount, []byte(tokenDenom)) diff --git a/x/leverage/types/token.go b/x/leverage/types/token.go index 1cd22fd63d..f825d072ba 100644 --- a/x/leverage/types/token.go +++ b/x/leverage/types/token.go @@ -59,7 +59,7 @@ func (t Token) Validate() error { } // The following rules ensure the utilization:APY graph is continuous if t.KinkUtilization.GT(t.MaxSupplyUtilization) { - return fmt.Errorf("kink utilization (%s) cannot be greater than than max supply utilization (%s)", + return fmt.Errorf("kink utilization (%s) cannot be greater than max supply utilization (%s)", t.KinkUtilization, t.MaxSupplyUtilization) } if t.KinkUtilization.Equal(t.MaxSupplyUtilization) && !t.MaxBorrowRate.Equal(t.KinkBorrowRate) { diff --git a/x/uibc/quota/quota_test.go b/x/uibc/quota/quota_test.go index 2337173072..39ca6ee6ad 100644 --- a/x/uibc/quota/quota_test.go +++ b/x/uibc/quota/quota_test.go @@ -59,7 +59,7 @@ func TestUnitCheckAndUpdateQuota(t *testing.T) { assert.ErrorContains(t, err, "quota") k.checkOutflows(umee, 8, 52) - // transferring 1 umee => 2USD, will will be still OK (8+2 <= 10) + // transferring 1 umee => 2USD, will be still OK (8+2 <= 10) err = k.CheckAndUpdateQuota(umee, sdk.NewInt(1)) assert.NilError(t, err) k.checkOutflows(umee, 10, 54)