File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/lib/hooks/use-best-quote Expand file tree Collapse file tree 1 file changed +2
-4
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)
@@ -85,9 +85,8 @@ export const useBestQuote = (
85
85
publicClient : ! ! publicClient ,
86
86
chainId,
87
87
address,
88
- rpcUrl,
89
88
} )
90
- if ( ! provider || ! publicClient || ! chainId || ! address || ! rpcUrl ) {
89
+ if ( ! provider || ! publicClient || ! chainId || ! address ) {
91
90
console . error ( 'Error fetching quotes - no provider or chain id present' )
92
91
return
93
92
}
@@ -176,7 +175,6 @@ export const useBestQuote = (
176
175
nativeTokenPrice ,
177
176
provider ,
178
177
publicClient ,
179
- rpcUrl ,
180
178
] ,
181
179
)
182
180
You can’t perform that action at this time.
0 commit comments