Skip to content

Commit

Permalink
fix(Relayer): Fix log ternary (#1993)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaspai authored Jan 9, 2025
1 parent b645b42 commit 8dd18ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/relayer/Relayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}` +
Expand All @@ -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
Expand Down

0 comments on commit 8dd18ec

Please sign in to comment.