File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/lib/hooks/use-best-quote Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export const useBestQuote = (
42
42
outputToken : Token ,
43
43
) => {
44
44
const publicClient = usePublicClient ( )
45
- const { address, provider, rpcUrl } = useWallet ( )
45
+ const { address, provider } = useWallet ( )
46
46
const { chainId : networkChainId } = useNetwork ( )
47
47
const { logEvent } = useAnalytics ( )
48
48
// Assume mainnet when no chain is connected (to be able to fetch quotes)
@@ -80,7 +80,7 @@ export const useBestQuote = (
80
80
return
81
81
}
82
82
83
- if ( ! provider || ! publicClient || ! chainId || ! address || ! rpcUrl ) {
83
+ if ( ! provider || ! publicClient || ! chainId || ! address ) {
84
84
console . error ( 'Error fetching quotes - no provider or chain id present' )
85
85
return
86
86
}
@@ -169,7 +169,6 @@ export const useBestQuote = (
169
169
nativeTokenPrice ,
170
170
provider ,
171
171
publicClient ,
172
- rpcUrl ,
173
172
] ,
174
173
)
175
174
You can’t perform that action at this time.
0 commit comments