Skip to content

Commit

Permalink
ws: set includeVamm based on market status
Browse files Browse the repository at this point in the history
  • Loading branch information
wphan committed Jan 27, 2024
1 parent 98469e2 commit cf677ae
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/dlob-subscriber/DLOBSubscriberIO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ export class DLOBSubscriberIO extends DLOBSubscriber {
this.lastSeenL2Formatted.set(MarketType.PERP, new Map());

for (const market of config.perpMarketInfos) {
let includeVamm = true;
if (market.marketIndex === 17) {
includeVamm = false;
}
const perpMarket = this.driftClient.getPerpMarketAccount(
market.marketIndex
);
const includeVamm = !isVariant(perpMarket.status, 'ammPaused');

this.marketL2Args.push({
marketIndex: market.marketIndex,
marketType: MarketType.PERP,
Expand Down

0 comments on commit cf677ae

Please sign in to comment.