From 9c5b368047cbbcfaa07da012573b68605ed54928 Mon Sep 17 00:00:00 2001 From: Vinay Singh Date: Tue, 6 Feb 2024 23:15:35 +0530 Subject: [PATCH] settings fixed in swap --- src/hooks/useAllV3Routes.ts | 2 +- src/hooks/useV3SwapPools.ts | 6 +----- src/pages/Swap/index.tsx | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/hooks/useAllV3Routes.ts b/src/hooks/useAllV3Routes.ts index 9cd858e8..74cbe07f 100644 --- a/src/hooks/useAllV3Routes.ts +++ b/src/hooks/useAllV3Routes.ts @@ -55,7 +55,7 @@ export function useAllV3Routes( currencyOut?: Currency ): { loading: boolean; routes: any[] } { const { chainId } = useAccountDetails() - const { pools, loading: poolsLoading } = useV3SwapPools(allPools, currencyIn, currencyOut) + const { pools, loading: poolsLoading } = useV3SwapPools(allPools) // const [singleHopOnly] = useUserSingleHopOnly() const singleHopOnly = true diff --git a/src/hooks/useV3SwapPools.ts b/src/hooks/useV3SwapPools.ts index 9674c01a..cb990e06 100644 --- a/src/hooks/useV3SwapPools.ts +++ b/src/hooks/useV3SwapPools.ts @@ -73,11 +73,7 @@ const getPoolProps = (address: string) => { return { liquidity, sqrtPriceX96, tickCurrent, token0, token1, fee: Number(fee) } } -export function useV3SwapPools( - allPools: string[], - currencyIn?: Currency, - currencyOut?: Currency -): { +export function useV3SwapPools(allPools: string[]): { pools: Pool[] loading: boolean } { diff --git a/src/pages/Swap/index.tsx b/src/pages/Swap/index.tsx index 4c51ac76..86cd51c5 100644 --- a/src/pages/Swap/index.tsx +++ b/src/pages/Swap/index.tsx @@ -184,7 +184,7 @@ export default function SwapPage({ className }: { className?: string }) { ) : (