diff --git a/src/relayer/Relayer.ts b/src/relayer/Relayer.ts index f89496184..25f36892c 100644 --- a/src/relayer/Relayer.ts +++ b/src/relayer/Relayer.ts @@ -1358,7 +1358,7 @@ export class Relayer { // repayment chain, was not selected for repayment. So the "unprofitable" log should be modified to indicate // this lite chain edge case. const fromOverallocatedLiteChain = deposit.fromLiteChain && lpFeePct.eq(bnUint256Max); - const depositFailedToSimulateWithMessage = isMessageEmpty(deposit.message) && gasCost.eq(bnUint256Max); + const depositFailedToSimulateWithMessage = !isMessageEmpty(deposit.message) && gasCost.eq(bnUint256Max); depositMrkdwn += `- DepositId ${deposit.depositId} (tx: ${depositblockExplorerLink})` + ` of input amount ${formattedInputAmount} ${inputSymbol}` + @@ -1367,8 +1367,8 @@ export class Relayer { `${fromOverallocatedLiteChain ? " is from an over-allocated lite chain" : ""}` + `${ depositFailedToSimulateWithMessage - ? "" - : ` failed to simulate with message of size ${ethersUtils.hexDataLength(deposit.message)} bytes` + ? ` failed to simulate with message of size ${ethersUtils.hexDataLength(deposit.message)} bytes` + : "" }` + `${` with relayerFeePct ${formattedRelayerFeePct}% lpFeePct ${ lpFeePct.eq(bnUint256Max) ? "∞" : formattedLpFeePct