diff --git a/drift-common b/drift-common index de934ba..fc0fb4d 160000 --- a/drift-common +++ b/drift-common @@ -1 +1 @@ -Subproject commit de934ba09e19b3e9e769f37610eefa5ebb1fabc4 +Subproject commit fc0fb4d2bd37ede822008c6f57a6e7dbb2b9cb39 diff --git a/src/dlob-subscriber/DLOBSubscriberIO.ts b/src/dlob-subscriber/DLOBSubscriberIO.ts index b978097..ad5ac28 100644 --- a/src/dlob-subscriber/DLOBSubscriberIO.ts +++ b/src/dlob-subscriber/DLOBSubscriberIO.ts @@ -153,7 +153,7 @@ export class DLOBSubscriberIO extends DLOBSubscriber { ); const nowMinus1000Ms = Date.now() - 1000; - mmQuotes.forEach((quote) => { + for (const quote of mmQuotes) { if (Number(quote['ts']) > nowMinus1000Ms) { const indicativeBaseOrder: Order = { status: OrderStatus.OPEN, @@ -233,7 +233,7 @@ export class DLOBSubscriberIO extends DLOBSubscriber { ); } } - }); + } } this.getL2AndSendMsg(marketArgs); this.getL3AndSendMsg(marketArgs); diff --git a/src/publishers/dlobPublisher.ts b/src/publishers/dlobPublisher.ts index 5b1077a..2432be0 100644 --- a/src/publishers/dlobPublisher.ts +++ b/src/publishers/dlobPublisher.ts @@ -520,7 +520,7 @@ const main = async () => { perpMarketInfos, spotMarketInfos, killSwitchSlotDiffThreshold: KILLSWITCH_SLOT_DIFF_THRESHOLD, - protectedMakerView: true, + protectedMakerView: false, indicativeQuotesRedisClient: indicativeRedisClient, }); await dlobSubscriberIndicative.subscribe();