From 3135c989f23c5940864946a4066b2f28df76d268 Mon Sep 17 00:00:00 2001 From: maradini77 <140460067+maradini77@users.noreply.github.com> Date: Sun, 5 Oct 2025 12:08:20 +0200 Subject: [PATCH] Update Relayer.ts --- src/relayer/Relayer.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/relayer/Relayer.ts b/src/relayer/Relayer.ts index 11e9be1e91..35be98310f 100644 --- a/src/relayer/Relayer.ts +++ b/src/relayer/Relayer.ts @@ -983,7 +983,7 @@ export class Relayer { this.lastLogTime = currentTime; } if (profitClient.anyCapturedUnprofitableFills()) { - this.handleUnprofitableFill(); + this.handleUnfillableDeposit(); this.lastLogTime = currentTime; } } @@ -1469,10 +1469,7 @@ export class Relayer { return { symbol, decimals, formatter: createFormatFunction(2, 4, false, decimals) }; } - // TODO: This should really be renamed to "handleUnfillableDeposit" since it not only logs about unprofitable relayer - // fees but also about fills with messages that fail to simulate and deposits from lite chains that are - // over-allocated. - private handleUnprofitableFill() { + private handleUnfillableDeposit() { const { profitClient } = this.clients; const unprofitableDeposits = profitClient.getUnprofitableFills(); @@ -1533,7 +1530,7 @@ export class Relayer { if (mrkdwn) { this.logger[this.config.sendingRelaysEnabled ? "warn" : "debug"]({ - at: "Relayer::handleUnprofitableFill", + at: "Relayer::handleUnfillableDeposit", message: "Not relaying unprofitable deposits 🙅‍♂️!", mrkdwn, notificationPath: "across-unprofitable-fills",