From 6ad2831edffd724d0d4a95cad2737517175a74c8 Mon Sep 17 00:00:00 2001 From: chopan123 Date: Sun, 17 Nov 2024 14:05:51 -0300 Subject: [PATCH] deleted console logs --- src/functions/generateRoute.ts | 4 ---- src/state/swap/hooks.tsx | 1 - 2 files changed, 5 deletions(-) diff --git a/src/functions/generateRoute.ts b/src/functions/generateRoute.ts index d723a066..938c0beb 100644 --- a/src/functions/generateRoute.ts +++ b/src/functions/generateRoute.ts @@ -118,7 +118,6 @@ export const useRouterSDK = () => { tradeType, currentProtocolsStatus, }: GenerateRouteProps) => { - console.log('generateRoute:', amountAsset, quoteAsset, amount, tradeType, currentProtocolsStatus); if (!factory) throw new Error('Factory address not found'); const currencyAmount = fromAddressAndAmountToCurrencyAmount( amountAsset.currency.contract, @@ -141,7 +140,6 @@ export const useRouterSDK = () => { if (isHorizonEnabled) { horizonPath = (await getHorizonBestPath(horizonProps, sorobanContext)) as BuildTradeRoute; } - console.log('horizonPath:', horizonPath); let sorobanPath: BuildTradeRoute | undefined; if (isAggregator) { @@ -171,9 +169,7 @@ export const useRouterSDK = () => { return result; })) as BuildTradeRoute; } - console.log('sorobanPath:', sorobanPath); const bestPath = getBestPath(horizonPath, sorobanPath, tradeType); - console.log('bestPath:', bestPath); return bestPath; }; diff --git a/src/state/swap/hooks.tsx b/src/state/swap/hooks.tsx index 13925d91..24d9e03c 100644 --- a/src/state/swap/hooks.tsx +++ b/src/state/swap/hooks.tsx @@ -130,7 +130,6 @@ export function useDerivedSwapInfo(state: SwapState) { (isExactIn ? outputCurrency : inputCurrency) ?? undefined, account, ); - console.log('trade:', trade); const currencyBalances = useMemo( () => ({