From 920a48232844e5bb977b162f1f1ff10ba23e10fb Mon Sep 17 00:00:00 2001 From: wphan Date: Thu, 4 Sep 2025 11:03:52 -0700 Subject: [PATCH] use v2 drift client subscriber --- src/publishers/dlobPublisher.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/publishers/dlobPublisher.ts b/src/publishers/dlobPublisher.ts index 680747e..d21b871 100644 --- a/src/publishers/dlobPublisher.ts +++ b/src/publishers/dlobPublisher.ts @@ -16,8 +16,8 @@ import { SpotMarketConfig, PhoenixSubscriber, decodeName, - WebSocketAccountSubscriberV2, ONE, + WebSocketDriftClientAccountSubscriberV2, } from '@drift-labs/sdk'; import { RedisClient, RedisClientPrefix } from '@drift/common/clients'; @@ -414,8 +414,7 @@ const main = async () => { commitment: stateCommitment, resubTimeoutMs: 30_000, logResubMessages: true, - perpMarketAccountSubscriber: WebSocketAccountSubscriberV2, - oracleAccountSubscriber: WebSocketAccountSubscriberV2, + driftClientAccountSubscriber: WebSocketDriftClientAccountSubscriberV2, }; slotSubscriber = new SlotSubscriber(connection, { resubTimeoutMs: 10_000,