Skip to content

Commit c8f9841

Browse files
Keep oracle data of delisted markets. (#1988)
1 parent 9f515db commit c8f9841

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

sdk/src/accounts/grpcDriftClientAccountSubscriberV2.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -714,17 +714,6 @@ export class grpcDriftClientAccountSubscriberV2
714714
// Remove accounts in batches - oracles
715715
if (oraclePubkeysToRemove.length > 0) {
716716
await this.oracleMultiSubscriber.removeAccounts(oraclePubkeysToRemove);
717-
// Clean up oracle data for removed oracles by finding their sources
718-
for (const pubkey of oraclePubkeysToRemove) {
719-
// Find the oracle source by checking oracleInfos
720-
const oracleInfo = this.oracleInfos.find((info) =>
721-
info.publicKey.equals(pubkey)
722-
);
723-
if (oracleInfo) {
724-
const oracleId = getOracleId(pubkey, oracleInfo.source);
725-
this.oracleIdToOracleDataMap.delete(oracleId);
726-
}
727-
}
728717
}
729718
}
730719

0 commit comments

Comments
 (0)