Skip to content

Commit 4dfd3f7

Browse files
authored
fix: support fetching initial data for delisted markets, just not being subscribed (#1985)
1 parent 7f9aec9 commit 4dfd3f7

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

sdk/src/accounts/grpcDriftClientAccountSubscriberV2.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -709,21 +709,6 @@ export class grpcDriftClientAccountSubscriberV2
709709
await this.perpMarketsSubscriber.removeAccounts(
710710
perpMarketPubkeysToRemove
711711
);
712-
// Clean up the mapping for removed perp markets
713-
for (const pubkey of perpMarketPubkeysToRemove) {
714-
const pubkeyString = pubkey.toBase58();
715-
for (const [
716-
marketIndex,
717-
accountPubkey,
718-
] of this.perpMarketIndexToAccountPubkeyMap.entries()) {
719-
if (accountPubkey === pubkeyString) {
720-
this.perpMarketIndexToAccountPubkeyMap.delete(marketIndex);
721-
this.perpOracleMap.delete(marketIndex);
722-
this.perpOracleStringMap.delete(marketIndex);
723-
break;
724-
}
725-
}
726-
}
727712
}
728713

729714
// Remove accounts in batches - oracles

0 commit comments

Comments
 (0)