Skip to content

Commit

Permalink
fix: streamlined message
Browse files Browse the repository at this point in the history
  • Loading branch information
Namaskar-1F64F committed Apr 10, 2024
1 parent e965768 commit fb72231
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/actions/minipool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit fb72231

Please sign in to comment.