Skip to content

Commit

Permalink
fix publishers driftClient init
Browse files Browse the repository at this point in the history
  • Loading branch information
wphan committed Nov 27, 2023
1 parent 58526bd commit f76f11a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
20 changes: 10 additions & 10 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -650,11 +650,11 @@ const main = async () => {
numVammOrders: parseInt((numVammOrders ?? '100') as string),
fallbackL2Generators: isSpot
? [
`${includePhoenix}`.toLowerCase() === 'true' &&
MARKET_SUBSCRIBERS[normedMarketIndex].phoenix,
`${includeSerum}`.toLowerCase() === 'true' &&
MARKET_SUBSCRIBERS[normedMarketIndex].serum,
].filter((a) => !!a)
`${includePhoenix}`.toLowerCase() === 'true' &&
MARKET_SUBSCRIBERS[normedMarketIndex].phoenix,
`${includeSerum}`.toLowerCase() === 'true' &&
MARKET_SUBSCRIBERS[normedMarketIndex].serum,
].filter((a) => !!a)
: [],
});

Expand Down Expand Up @@ -768,11 +768,11 @@ const main = async () => {
: `${normedParam['includeVamm']}`.toLowerCase() === 'true',
fallbackL2Generators: isSpot
? [
`${normedParam['includePhoenix']}`.toLowerCase() === 'true' &&
MARKET_SUBSCRIBERS[normedMarketIndex].phoenix,
`${normedParam['includeSerum']}`.toLowerCase() === 'true' &&
MARKET_SUBSCRIBERS[normedMarketIndex].serum,
].filter((a) => !!a)
`${normedParam['includePhoenix']}`.toLowerCase() === 'true' &&
MARKET_SUBSCRIBERS[normedMarketIndex].phoenix,
`${normedParam['includeSerum']}`.toLowerCase() === 'true' &&
MARKET_SUBSCRIBERS[normedMarketIndex].serum,
].filter((a) => !!a)
: [],
});

Expand Down
1 change: 0 additions & 1 deletion src/publishers/dlobPublisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ const main = async () => {
accountLoader: bulkAccountLoader,
},
env: driftEnv,
userStats: true,
});

const slotSubscriber = new SlotSubscriber(connection, {});
Expand Down
1 change: 0 additions & 1 deletion src/publishers/tradesPublisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ const main = async () => {
accountLoader: bulkAccountLoader,
},
env: driftEnv,
userStats: true,
});

const slotSubscriber = new SlotSubscriber(connection, {});
Expand Down

0 comments on commit f76f11a

Please sign in to comment.