diff --git a/src/bots/makerBidAskTwapCrank.ts b/src/bots/makerBidAskTwapCrank.ts index dcbb1266..b5ab9e33 100644 --- a/src/bots/makerBidAskTwapCrank.ts +++ b/src/bots/makerBidAskTwapCrank.ts @@ -274,7 +274,9 @@ export class MakerBidAskTwapCrank implements Bot { } const markets = PerpMarkets[this.globalConfig.driftEnv!].filter( - (market) => market.pythLazerId !== undefined + (market) => + market.pythLazerId !== undefined && + !isOneOfVariant(market.marketStatus, ['delisted', 'settlement']) ); const pythLazerIds = markets.map((m) => m.pythLazerId!); const pythLazerIdsChunks = chunks(pythLazerIds, 4);