Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't pay additional tip for non revertable transactions #2176

Merged
merged 3 commits into from
Dec 18, 2023

Conversation

fleupold
Copy link
Contributor

Description

We are currently paying a pretty high tip for some trivial settlements that are submitted via the public mempool (since they don't carry revert risk).
While we do enforce 0 additional tip for public mempool submission, we also submit each trivial transaction via the MEVBlocker mempool strategy, which allows setting a higher tip.

If a transaction is available to a builder with both a high and a low tip, a profit maximizing builder will always chose the high tipping one.

Changes

  • Also limit the max additional tip at 0 for non revertable settlements that are submitted via the public mempool

How to test

Not really e2e testable since we cannot cover MEVBlocker behavior, but we should see cheaper settlements for internalized trades in staging

@fleupold fleupold requested a review from a team as a code owner December 15, 2023 15:21
@fleupold fleupold enabled auto-merge (squash) December 18, 2023 08:49
@fleupold fleupold merged commit 79ae63c into main Dec 18, 2023
8 checks passed
@fleupold fleupold deleted the zero_additional_tip branch December 18, 2023 08:53
@github-actions github-actions bot locked and limited conversation to collaborators Dec 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants