diff --git a/src/dlob-subscriber/DLOBSubscriberIO.ts b/src/dlob-subscriber/DLOBSubscriberIO.ts index b96c261..8701970 100644 --- a/src/dlob-subscriber/DLOBSubscriberIO.ts +++ b/src/dlob-subscriber/DLOBSubscriberIO.ts @@ -2,6 +2,7 @@ import { BN, DLOBSubscriber, DLOBSubscriptionConfig, + DriftEnv, L2OrderBookGenerator, MarketType, PositionDirection, @@ -61,6 +62,7 @@ export class DLOBSubscriberIO extends DLOBSubscriber { constructor( config: DLOBSubscriptionConfig & { + env: DriftEnv, redisClient: RedisClient; perpMarketInfos: wsMarketInfo[]; spotMarketInfos: wsMarketInfo[]; diff --git a/src/index.ts b/src/index.ts index e955c02..c54604d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -345,7 +345,6 @@ const main = async (): Promise => { const initDlobSubscriberStart = Date.now(); const dlobSubscriber = new DLOBSubscriber({ driftClient, - env: driftEnv, dlobSource: dlobProvider, slotSource: dlobProvider, updateFrequency: ORDERBOOK_UPDATE_INTERVAL,