Skip to content

Commit

Permalink
settings fixed in swap
Browse files Browse the repository at this point in the history
  • Loading branch information
vnaysngh-mudrex committed Feb 6, 2024
1 parent f602a6d commit 9c5b368
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/hooks/useAllV3Routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 1 addition & 5 deletions src/hooks/useV3SwapPools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
} {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Swap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export default function SwapPage({ className }: { className?: string }) {
) : (
<Swap
className={className}
chainId={ChainId.MAINNET}
chainId={connectedChainId}
initialInputCurrencyId={loadedUrlParams?.[Field.INPUT]?.currencyId}
initialOutputCurrencyId={loadedUrlParams?.[Field.OUTPUT]?.currencyId}
allPools={allPools}
Expand Down

0 comments on commit 9c5b368

Please sign in to comment.