Skip to content

Commit

Permalink
improve(Relayer): Reduce size of overallocated-lite-chain log and sen…
Browse files Browse the repository at this point in the history
…d to special channel (#1783)

* improve(Relayer): Reduce size of overallocated-lite-chain log and send to special channel

No reason to log the full deposit object, and send to unprofitable fill channel. You can argue that an over allocated lite chain produces deposits that are unprofitable from a rebalancing perspective to fill

* Update Relayer.ts
  • Loading branch information
nicholaspai committed Aug 26, 2024
1 parent 1457eed commit 9c4190d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/relayer/Relayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -914,9 +914,10 @@ export class Relayer {
this.logger[this.config.sendingRelaysEnabled ? "warn" : "debug"]({
at: "Relayer::resolveRepaymentChain",
message: deposit.fromLiteChain
? `Deposit ${depositId} originated from over-allocated lite chain`
? `Deposit ${depositId} originated from over-allocated lite chain ${originChain}`
: `Unable to identify a preferred repayment chain for ${originChain} deposit ${depositId}.`,
deposit,
txn: blockExplorerLink(transactionHash, originChainId),
notificationPath: "across-unprofitable-fills",
});
return {
repaymentChainProfitability: {
Expand Down

0 comments on commit 9c4190d

Please sign in to comment.