diff --git a/src/network/cardano/api/positions/positions.ts b/src/network/cardano/api/positions/positions.ts index 8af0f9e6d..f383c1d69 100644 --- a/src/network/cardano/api/positions/positions.ts +++ b/src/network/cardano/api/positions/positions.ts @@ -9,12 +9,12 @@ import { import { Balance } from '../../../../common/models/Balance'; import { Position } from '../../../../common/models/Position'; -import { ammPools$ } from '../ammPools/ammPools'; +import { allAmmPools$ } from '../ammPools/ammPools'; import { lpBalance$ } from '../balance/lpBalance'; import { networkContext$ } from '../networkContext/networkContext'; export const positions$ = combineLatest([ - ammPools$, + allAmmPools$, lpBalance$.pipe(startWith(new Balance([]))), networkContext$, ]).pipe( diff --git a/src/network/cardano/cardano.ts b/src/network/cardano/cardano.ts index f77d370e2..b206c4dea 100644 --- a/src/network/cardano/cardano.ts +++ b/src/network/cardano/cardano.ts @@ -1,5 +1,6 @@ -import { Observable, of } from 'rxjs'; +import { map, Observable, of } from 'rxjs'; +import { applicationConfig } from '../../applicationConfig'; import { TxId } from '../../common/types'; import { Network, SupportedNetworks } from '../common/Network'; import { convertToConvenientNetworkAsset } from './api/adaRatio/adaRatio'; @@ -85,7 +86,11 @@ const makeCardanoNetwork = ( lpBalance$, locks$: of([]), positions$, - displayedAmmPools$: ammPools$, + displayedAmmPools$: ammPools$.pipe( + map((aps) => + aps.filter((ap) => !applicationConfig.deprecatedPools.includes(ap.id)), + ), + ), ammPools$, getAddresses: getAddresses, getUsedAddresses: getUsedAddresses,