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,