Skip to content

Commit ac7ab38

Browse files
committed
remove unused rpcUrl
1 parent d20c39e commit ac7ab38

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const useBestQuote = (
4242
outputToken: Token,
4343
) => {
4444
const publicClient = usePublicClient()
45-
const { address, provider, rpcUrl } = useWallet()
45+
const { address, provider } = useWallet()
4646
const { chainId: networkChainId } = useNetwork()
4747
const { logEvent } = useAnalytics()
4848
// Assume mainnet when no chain is connected (to be able to fetch quotes)
@@ -85,9 +85,8 @@ export const useBestQuote = (
8585
publicClient: !!publicClient,
8686
chainId,
8787
address,
88-
rpcUrl,
8988
})
90-
if (!provider || !publicClient || !chainId || !address || !rpcUrl) {
89+
if (!provider || !publicClient || !chainId || !address) {
9190
console.error('Error fetching quotes - no provider or chain id present')
9291
return
9392
}
@@ -176,7 +175,6 @@ export const useBestQuote = (
176175
nativeTokenPrice,
177176
provider,
178177
publicClient,
179-
rpcUrl,
180178
],
181179
)
182180

0 commit comments

Comments
 (0)