From 78a09c1acbfc9121e73cab100f57a87c49065c95 Mon Sep 17 00:00:00 2001 From: Chris Heaney Date: Fri, 20 Oct 2023 15:13:42 -0400 Subject: [PATCH] fix isMakerBreachedMaintenanceMarginLog after change in log --- src/bots/common/txLogParse.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bots/common/txLogParse.ts b/src/bots/common/txLogParse.ts index 3e44fe4f..d078ab85 100644 --- a/src/bots/common/txLogParse.ts +++ b/src/bots/common/txLogParse.ts @@ -51,7 +51,7 @@ export function isMakerBreachedMaintenanceMarginLog( log: string ): string | null { const regex = - /^maker \(([1-9A-HJ-NP-Za-km-z]+)\) breached maintenance requirements.*$/; + /^maker \(([1-9A-HJ-NP-Za-km-z]+)\) breached (maintenance|fill) requirements.*$/; const match = log.match(regex); return match ? match[1] : null; @@ -59,7 +59,7 @@ export function isMakerBreachedMaintenanceMarginLog( export function isTakerBreachedMaintenanceMarginLog(log: string): boolean { const match = log.match( - new RegExp('.*taker breached maintenance requirements.*') + new RegExp('.*taker breached (maintenance|fill) requirements.*') ); return match !== null;