Skip to content

Commit

Permalink
fix swap-by-denom response
Browse files Browse the repository at this point in the history
  • Loading branch information
99adarsh committed Dec 7, 2024
1 parent ccf272a commit ea79340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/amm/keeper/msg_server_swap_by_denom.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),

Check warning on line 103 in x/amm/keeper/msg_server_swap_by_denom.go

View check run for this annotation

Codecov / codecov/patch

x/amm/keeper/msg_server_swap_by_denom.go#L103

Added line #L103 was not covered by tests
InRoute: nil,
OutRoute: outRoute,
SpotPrice: spotPrice,
Expand Down

0 comments on commit ea79340

Please sign in to comment.