diff --git a/packages/web/hooks/use-swap.tsx b/packages/web/hooks/use-swap.tsx index e83028f725..a41b12da57 100644 --- a/packages/web/hooks/use-swap.tsx +++ b/packages/web/hooks/use-swap.tsx @@ -521,9 +521,13 @@ export function useSwap( accountStore .signAndBroadcast( chainStore.osmosis.chainId, - routes.length === 1 - ? "swapExactAmountIn" - : "splitRouteSwapExactAmountIn", + quoteType === "out-given-in" + ? routes.length === 1 + ? "swapExactAmountIn" + : "splitRouteSwapExactAmountIn" + : routes.length === 1 + ? "swapExactAmountOut" + : "splitRouteSwapExactAmountOut", messages, undefined, signOptions?.fee,