Skip to content

Commit

Permalink
Revert "try to fix position observable"
Browse files Browse the repository at this point in the history
This reverts commit 0a8623a.
  • Loading branch information
Ridel1e committed Nov 9, 2023
1 parent 0a8623a commit f62d27d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/network/cardano/api/positions/positions.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import {
combineLatest,
debounceTime,
filter,
first,
map,
publishReplay,
refCount,
Expand All @@ -18,7 +16,6 @@ import {
unverifiedAmmPools$,
} from '../ammPools/ammPools';
import { lpBalance$ } from '../balance/lpBalance';
import { networkAssetBalance$ } from '../balance/networkAssetBalance.ts';
import { networkContext$ } from '../networkContext/networkContext';

export const positions$ = combineLatest([
Expand All @@ -30,11 +27,7 @@ export const positions$ = combineLatest([
return allAmmPools$;
}),
),
networkAssetBalance$.pipe(
filter(Boolean),
first(),
switchMap(() => lpBalance$.pipe(startWith(new Balance([])))),
),
lpBalance$.pipe(startWith(new Balance([]))),
networkContext$,
]).pipe(
debounceTime(200),
Expand Down

0 comments on commit f62d27d

Please sign in to comment.