From cd4a2313ace7492d7a8c9893b3d9197b7c1bafb9 Mon Sep 17 00:00:00 2001 From: Justin Domingue Date: Mon, 27 Sep 2021 12:04:59 -0400 Subject: [PATCH] restore use v3 (#2449) --- src/state/swap/hooks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state/swap/hooks.ts b/src/state/swap/hooks.ts index 7fccdd0863..4dba9d1f17 100644 --- a/src/state/swap/hooks.ts +++ b/src/state/swap/hooks.ts @@ -160,7 +160,7 @@ export function useDerivedSwapInfo(toggledVersion: Version | undefined): { // skip if other version is toggled const v2Trade = useBestV2Trade( isExactIn ? TradeType.EXACT_INPUT : TradeType.EXACT_OUTPUT, - parsedAmount, + toggledVersion !== Version.v3 ? parsedAmount : undefined, (isExactIn ? outputCurrency : inputCurrency) ?? undefined ) const v3Trade = useBestV3Trade(