Skip to content

improve(relayer): Tighten automatic slow fill request logic#2972

Merged
pxrl merged 16 commits intomasterfrom
pxrl/autoSlow
Mar 24, 2026
Merged

improve(relayer): Tighten automatic slow fill request logic#2972
pxrl merged 16 commits intomasterfrom
pxrl/autoSlow

Conversation

@pxrl
Copy link
Copy Markdown
Collaborator

@pxrl pxrl commented Feb 19, 2026

The existing logic of submitting slow fill requests for any supported &
unfilled deposit causes a lot of unnecessary slow fill requests to be
submitted. This has caused some collisions with other, more important
transactions.

Ideally we might drop slow fill requests entirely; for now, just require
that the deposits are actually profitable for a slow fill request to be
submitted.

One side effect of this cleanup is that it allows a lot of the logic to
be flattened. It's now cleaner and simpler to reason about than it was
before.

The existing logic of submitting slow fill requests for any supported &
unfilled deposit causes a lot of unnecessary slow fill requests to be
submitted. This has caused some collisions with other, more important
transactions.

Ideally we might drop slow fill requests entirely; for now, just require
that the deposits are actually profitable for a slow fill request to be
submitted.
nicholaspai
nicholaspai previously approved these changes Feb 20, 2026
Base automatically changed from pxrl/slowFillArg to master February 20, 2026 01:07
@pxrl pxrl dismissed nicholaspai’s stale review February 20, 2026 01:07

The base branch was changed.

@pxrl pxrl requested a review from nicholaspai February 20, 2026 01:18
Comment thread src/relayer/Relayer.ts Outdated
Comment thread src/relayer/Relayer.ts
@pxrl pxrl requested a review from bmzig March 10, 2026 05:27
@pxrl
Copy link
Copy Markdown
Collaborator Author

pxrl commented Mar 24, 2026

@codex Please review. The change in logic is deliberate - unprofitable deposits should no longer result in slow fill requests being submitted. Slow fill requests should still be submitted where the relayer has insufficient capital for a fast fill, when slow fills are enabled by config.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1444bb1dcf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/relayer/Relayer.ts
@pxrl pxrl merged commit 1ad5ff2 into master Mar 24, 2026
4 checks passed
@pxrl pxrl deleted the pxrl/autoSlow branch March 24, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants