From d5d494e37058fd4c948c89ea6c7804abea389360 Mon Sep 17 00:00:00 2001 From: Mark Grothe Date: Wed, 30 Oct 2024 12:19:24 -0500 Subject: [PATCH] fix: use legacy providers for testnets (#2234) --- src/services/UIPoolService.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/UIPoolService.ts b/src/services/UIPoolService.ts index fb9e8fa480..dc30dee52b 100644 --- a/src/services/UIPoolService.ts +++ b/src/services/UIPoolService.ts @@ -7,6 +7,7 @@ import { } from '@aave/contract-helpers'; import { Provider } from '@ethersproject/providers'; import { MarketDataType } from 'src/ui-config/marketsConfig'; +import { ENABLE_TESTNET } from 'src/utils/marketsAndNetworksConfig'; export type UserReservesDataHumanized = { userReserves: UserReserveDataHumanized[]; @@ -35,6 +36,7 @@ export class UiPoolService { private useLegacyUiPoolDataProvider(marketData: MarketDataType) { if ( + ENABLE_TESTNET || !marketData.v3 || marketData.marketTitle === 'Fantom' || marketData.marketTitle === 'Harmony'