99 useAccount ,
1010} from 'wagmi' ;
1111
12- import { useDappStatus , useLidoSDK , useLidoSDKL2 } from 'modules/web3' ;
12+ import { useDappStatus , useLidoSDK } from 'modules/web3' ;
1313import { config } from 'config' ;
1414
1515import type { Address , WatchContractEventOnLogsFn } from 'viem' ;
@@ -235,17 +235,16 @@ export const useStethBalance = ({
235235} : UseBalanceProps = { } ) => {
236236 const { chainId } = useDappStatus ( ) ;
237237 const { stETH } = useLidoSDK ( ) ;
238- const { l2, isL2 } = useLidoSDKL2 ( ) ;
239238 const { isSupportedChain, address } = useDappStatus ( ) ;
240239
241240 const mergedAccount = account ?? address ;
242241
243242 const { data : contract , isLoading } = useQuery ( {
244- queryKey : [ 'steth-contract' , chainId , isL2 ] ,
243+ queryKey : [ 'steth-contract' , chainId ] ,
245244 enabled : ! ! mergedAccount && isSupportedChain ,
246245
247246 staleTime : Infinity ,
248- queryFn : async ( ) => ( isL2 ? l2 . steth . getContract ( ) : stETH . getContract ( ) ) ,
247+ queryFn : async ( ) => stETH . getContract ( ) ,
249248 } ) ;
250249
251250 const balanceData = useTokenBalance (
@@ -269,13 +268,12 @@ export const useWstethBalance = ({
269268 const mergedAccount = account ?? address ;
270269 const { chainId } = useDappStatus ( ) ;
271270 const { wstETH } = useLidoSDK ( ) ;
272- const { l2, isL2 } = useLidoSDKL2 ( ) ;
273271
274272 const { data : contract , isLoading } = useQuery ( {
275- queryKey : [ 'wsteth-contract' , chainId , isL2 ] ,
273+ queryKey : [ 'wsteth-contract' , chainId ] ,
276274 enabled : ! ! mergedAccount && isSupportedChain ,
277275 staleTime : Infinity ,
278- queryFn : ( ) => ( isL2 ? l2 . wsteth . getContract ( ) : wstETH . getContract ( ) ) ,
276+ queryFn : ( ) => wstETH . getContract ( ) ,
279277 } ) ;
280278
281279 const balanceData = useTokenBalance (
0 commit comments