From b987718f57b356fa250a5b8820eff6724f0de44c Mon Sep 17 00:00:00 2001 From: Lukas deConantsesznak Date: Tue, 29 Jul 2025 15:39:02 -0600 Subject: [PATCH] feat: use new ws v2 subscriber --- src/publishers/dlobPublisher.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/publishers/dlobPublisher.ts b/src/publishers/dlobPublisher.ts index aead36e..7416f71 100644 --- a/src/publishers/dlobPublisher.ts +++ b/src/publishers/dlobPublisher.ts @@ -9,7 +9,6 @@ import { UserMap, Wallet, BulkAccountLoader, - OrderSubscriber, SlotSource, DriftClientSubscriptionConfig, SlotSubscriber, @@ -18,10 +17,9 @@ import { PerpMarketConfig, SpotMarketConfig, PhoenixSubscriber, - MarketType, - OraclePriceData, - ONE, decodeName, + WebSocketAccountSubscriberV2, + ONE, } from '@drift-labs/sdk'; import { RedisClient, RedisClientPrefix } from '@drift/common/clients'; @@ -29,7 +27,6 @@ import { logger, setLogLevel } from '../utils/logger'; import { SubscriberLookup, getOpenbookSubscriber, - l2WithBNToStrings, parsePositiveIntArray, sleep, } from '../utils/utils'; @@ -391,6 +388,7 @@ const main = async () => { commitment: stateCommitment, resubTimeoutMs: 30_000, logResubMessages: true, + accountSubscriber: WebSocketAccountSubscriberV2, }; slotSubscriber = new SlotSubscriber(connection, { resubTimeoutMs: 10_000,