Skip to content

Commit

Permalink
fix: use legacy providers for testnets (#2234)
Browse files Browse the repository at this point in the history
  • Loading branch information
grothem authored Oct 30, 2024
1 parent 5233c53 commit d5d494e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/UIPoolService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down Expand Up @@ -35,6 +36,7 @@ export class UiPoolService {

private useLegacyUiPoolDataProvider(marketData: MarketDataType) {
if (
ENABLE_TESTNET ||
!marketData.v3 ||
marketData.marketTitle === 'Fantom' ||
marketData.marketTitle === 'Harmony'
Expand Down

2 comments on commit d5d494e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit was deployed on ipfs

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit was deployed on ipfs

Please sign in to comment.