From ea793400c3344778dae8db20c67f198c24b31c15 Mon Sep 17 00:00:00 2001 From: 99adarsh Date: Sat, 7 Dec 2024 19:17:08 +0530 Subject: [PATCH] fix swap-by-denom response --- x/amm/keeper/msg_server_swap_by_denom.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/amm/keeper/msg_server_swap_by_denom.go b/x/amm/keeper/msg_server_swap_by_denom.go index aa9796141..aef5e8c20 100644 --- a/x/amm/keeper/msg_server_swap_by_denom.go +++ b/x/amm/keeper/msg_server_swap_by_denom.go @@ -100,7 +100,7 @@ func (k Keeper) SwapByDenom(ctx sdk.Context, msg *types.MsgSwapByDenom) (*types. } return &types.MsgSwapByDenomResponse{ - Amount: sdk.NewCoin(msg.DenomOut, res.TokenInAmount), + Amount: sdk.NewCoin(msg.DenomIn, res.TokenInAmount), InRoute: nil, OutRoute: outRoute, SpotPrice: spotPrice,