From bd617a1c5076c25c3a2b337118d6fd216153c477 Mon Sep 17 00:00:00 2001 From: fudancoder <171416994+fudancoder@users.noreply.github.com> Date: Wed, 15 Jan 2025 13:07:42 +0800 Subject: [PATCH] chore: fix some function names in comment (#1106) Signed-off-by: fudancoder --- x/amm/keeper/batch_processing.go | 2 +- x/amm/keeper/pool.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x/amm/keeper/batch_processing.go b/x/amm/keeper/batch_processing.go index 73ed6287c..4c527b509 100644 --- a/x/amm/keeper/batch_processing.go +++ b/x/amm/keeper/batch_processing.go @@ -64,7 +64,7 @@ func (k Keeper) GetFirstSwapExactAmountInRequest(ctx sdk.Context, sprefix []byte return &val, sdk.BigEndianToUint64(key[len(key)-8:]) } -// SetSwapExactAmountInRequests stores swap exact amount out request +// SetSwapExactAmountOutRequests stores swap exact amount out request func (k Keeper) SetSwapExactAmountOutRequests(ctx sdk.Context, msg *types.MsgSwapExactAmountOut, index uint64) { store := prefix.NewStore(ctx.TransientStore(k.transientStoreKey), types.KeyPrefix(types.TSwapExactAmountOutKey)) b := k.cdc.MustMarshal(msg) diff --git a/x/amm/keeper/pool.go b/x/amm/keeper/pool.go index 6e44d140d..4e95dfadd 100644 --- a/x/amm/keeper/pool.go +++ b/x/amm/keeper/pool.go @@ -158,7 +158,7 @@ func (k Keeper) GetBestPoolWithDenoms(ctx sdk.Context, denoms []string, usesOrac return bestPool, !maxTvl.IsNegative() } -// IterateLiquidty iterates over all LiquidityPools and performs a +// IterateLiquidityPools iterates over all LiquidityPools and performs a // callback. func (k Keeper) IterateLiquidityPools(ctx sdk.Context, handlerFn func(pool types.Pool) (stop bool)) { store := prefix.NewStore(runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)), types.KeyPrefix(types.PoolKeyPrefix))