Skip to content

Commit 119591c

Browse files
committed
Merge remote-tracking branch 'origin/master' into feat/complete-chakra-refactor
# Conflicts: # src/lib/hooks/use-best-quote/index.ts
2 parents 8eadc2d + b75670d commit 119591c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/lib/hooks/use-best-quote/index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { useCallback, useEffect, useMemo, useState } from 'react'
2-
import { usePublicClient } from 'wagmi'
32

43
import { ARBITRUM } from '@/constants/chains'
54
import { isAvailableForFlashMint } from '@/lib/hooks/use-best-quote/utils/available'
@@ -41,7 +40,6 @@ export const useBestQuote = (
4140
inputToken: Token,
4241
outputToken: Token,
4342
) => {
44-
const publicClient = usePublicClient()
4543
const { address, provider } = useWallet()
4644
const { chainId: networkChainId } = useNetwork()
4745
const { logEvent } = useAnalytics()
@@ -80,8 +78,10 @@ export const useBestQuote = (
8078
return
8179
}
8280

83-
if (!provider || !publicClient || !chainId || !address) {
84-
console.error('Error fetching quotes - no provider or chain id present')
81+
if (!provider || !chainId || !address) {
82+
console.error(
83+
'Error fetching quotes - no provider | chain id | address present',
84+
)
8585
return
8686
}
8787

@@ -168,7 +168,6 @@ export const useBestQuote = (
168168
outputToken,
169169
nativeTokenPrice,
170170
provider,
171-
publicClient,
172171
],
173172
)
174173

0 commit comments

Comments
 (0)