From 007cc249de2ac863d447718e502bee3ac9beed92 Mon Sep 17 00:00:00 2001 From: Inokentii Mazhara Date: Wed, 31 Jan 2024 14:28:56 +0200 Subject: [PATCH] TW-1285: Exchange rates: remove extra logic that caused worse estimations (#141) --- src/utils/tokens.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/utils/tokens.ts b/src/utils/tokens.ts index cc392be..578f957 100644 --- a/src/utils/tokens.ts +++ b/src/utils/tokens.ts @@ -112,13 +112,7 @@ const getSwapsByOneToken = async (outputTokenSymbol: string) => { throw new Error(`Failed to get swaps for 1 ${outputTokenSymbol}`); } - const directSwap = await getThreeRouteSwap({ - inputTokenSymbol: THREE_ROUTE_TEZ_SYMBOL, - outputTokenSymbol, - realAmount: invertedSwap.output - }); - - return { directSwap, invertedSwap, updatedAt }; + return { directSwap: EMPTY_SWAP, invertedSwap, updatedAt }; }; const getSwaps = async (outputTokenSymbol: string) => {