From fb72231323193711a3f84c721f1816e627d7ac95 Mon Sep 17 00:00:00 2001 From: Kyle Date: Wed, 10 Apr 2024 08:32:42 +0800 Subject: [PATCH] fix: streamlined message --- src/actions/minipool.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/actions/minipool.ts b/src/actions/minipool.ts index 6709022..485ecd8 100644 --- a/src/actions/minipool.ts +++ b/src/actions/minipool.ts @@ -164,18 +164,19 @@ export const minipoolStatusChange = async (context: Context, event: Event) => { "NewStreamlinedMinipoolMade" )?.length > 0; if (hasNewStreamlinedMinipoolMadeEvent) { - if(transactionEvent.logs.length > 5) { + if (transactionEvent.logs.length > 5) { message = await getMessageFromStatusChangedEvent( statusChangedEvents[0], transactionEvent, MinipoolStatus.STREAMLINE_RELAUNCH ); + } else { + message = await getMessageFromStatusChangedEvent( + statusChangedEvents[0], + transactionEvent, + MinipoolStatus.STREAMLINE_PRELAUNCH + ); } - message = await getMessageFromStatusChangedEvent( - statusChangedEvents[0], - transactionEvent, - MinipoolStatus.STREAMLINE_PRELAUNCH - ); } else { message = await getMessageFromStatusChangedEvent( statusChangedEvents[0],