HackMD
    • Sharing Link copied
    • /edit
    • View mode
      • Edit mode
      • View mode
      • Book mode
      • Slide mode
      Edit mode View mode Book mode Slide mode
    • Note Permission
    • Read
      • Only me
      • Signed-in users
      • Everyone
      Only me Signed-in users Everyone
    • Write
      • Only me
      • Signed-in users
      • Everyone
      Only me Signed-in users Everyone
    • More (Comment, Invitee)
    • Publishing
    • Commenting Enable
      Disabled Forbidden Owners Signed-in users Everyone
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Invitee
    • No invitee
    • Options
    • Versions and GitHub Sync
    • Transfer ownership
    • Delete this note
    • Template
    • Save as template
    • Insert from template
    • Export
    • Google Drive Export to Google Drive
    • Gist
    • Import
    • Google Drive Import from Google Drive
    • Gist
    • Clipboard
    • Download
    • Markdown
    • HTML
    • Raw HTML
Menu Sharing Help
Menu
Options
Versions and GitHub Sync Transfer ownership Delete this note
Export
Google Drive Export to Google Drive Gist
Import
Google Drive Import from Google Drive Gist Clipboard
Download
Markdown HTML Raw HTML
Back
Sharing
Sharing Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
More (Comment, Invitee)
Publishing
More (Comment, Invitee)
Commenting Enable
Disabled Forbidden Owners Signed-in users Everyone
Permission
Owners
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Invitee
No invitee
   owned this note    owned this note      
Published Linked with GitHub
Like BookmarkBookmarked
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# mev-boost improvement proposal #0 Exclude withdrawals to fee recipient when computing a payload's value. ## Context `mev-boost` today selects the highest bid by value from a set of bids provided by connected relays in a given slot. This value represents the amount of ETH a builder transfers to a proposer in exchange for the sale of that proposer's execution block space. Relays compute this value in one of two ways, referred to as "payment schemes": **PS1**. The `value` of the last transaction in the execution payload, which [must exactly match](https://github.com/flashbots/builder/blob/18be10071a309cc07ce7b86cee01e55ee203ac0b/core/blockchain.go#L2601) the value claimed by the builder in their submission. **PS2**. Comparing the `balance` of the `fee_recipient` in the post-state after the execution payload to the pre-state amount. (2) becomes problematic when a given block contains consensus-layer withdrawals to the same `fee_recipient` the builder intends to pay as this inflates the payload's value. This inflation misreports the amount of MEV in a block which: 1. weakens builder and relay accountability by complicating public analysis 2. lowers revenues to proposers by masking higher MEV payloads 3. weakens the ability of censorship-resistance techniques like use of the [`min-bid` flag](https://github.com/flashbots/mev-boost/blob/3a8bcb974735d66bf6aa8d78adea484ed0955043/cli/main.go#L38) in `mev-boost` The inclusion of withdrawals with respect to execution is a bit of a quirk of block processing and given their deterministic nature in a given slot are easy to compute and subsequently remove from any bid scoring computation. For a recent example, see [this tweet reporting `mev-boost` bids](https://twitter.com/mevproposerbot/status/1758784219675816060) where a bid's value was ~320.17 ETH and almost all of this was from [withdrawals to the proposer in the same block](https://beaconcha.in/block/19246516#withdrawals). For a more through exploration of this phenomenon, see [this Dune dashboard by @Data_Always](https://dune.com/dataalways/mev-withdrawals#how-many-daily-blocks-have-withdrawals-to-the-mev-recipient). ## Proposal | Constant | Value| |----------|------| |WITHDRAWALS_SCORING_ACTIVATION_EPOCH| **TBD** | If the current epoch is greater or equal to the `WITHDRAWALS_SCORING_ACTIVATION_EPOCH`, relays **MUST** validate a block's value in the following way: If an incoming builder's bid is using **PS1**, no change is required. The value of the bid is validated to *exactly* match the value of the final transaction in the payload. Note this indirectly excludes any withdrawal amounts by design. If an incoming builder's bid is using **PS2**, sum all withdrawals in the block's slot to the payload's fee recipient. This total withdrawal amount is subtracted from the final balance difference to the fee recipient. In pseudo-code following definitions in the [`consensus-specs`](https://github.com/ethereum/consensus-specs): ```python def verify_bid_value(execution_payload, fee_recipient, bid_value, balance_difference): target_amounts = [w.amount for w in execution_payload.withdrawals if w.address == fee_recipient] excluded_amount = sum(target_amounts) proposer_payment = balance_difference - excluded_amount assert proposer_payment == bid_value ``` `verify_bid_value` should execute completely without error. The `execution_payload`, `fee_recipient`, and `bid_value` are all provided by the builder in their payload submission. The `balance_difference` is computed by the relay during simulation of the `execution_payload` where `balance_difference = post_state_balance - pre_state_balance`. `pre_state_balance` is the ether amount at the `fee_recipient`'s address in the execution state before applying the `execution_payload` and the `post_state_balance` is the same data after applying the `execution_payload`. ## Considerations and comments ### Performance The withdrawals for a given block can be computed as soon as the parent is known, so the `excluded_amount` above can be computed by the relay as soon as the builder's intended proposer fee recipient is known. An additional optimization would compute all possible `excluded_amounts` (n.b. there can only be 16 distinct withdrawal recipients in a given block) even before the builder has provided any payload so that the implementation of `verify_bid_value` can consist of a simple lookup in a table if the selection and sum approach above is not sufficient. ### Compatibility with optimistic relaying There is no negative impact on optimistic relaying. Optimistic relays have even more time to compute the expected bid value and can demote builders from the optimistic setting if they misrepresent their bid value due to withdrawals. ### Lack of bid distortion As noted above, withdrawals are fixed in a given slot as determined by consensus so there is no possibility for this change to distort a bid's possible value as found in more general payment schemes across any combination of builders, relays, and proposers.

Import from clipboard

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lost their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.


Upgrade

All
  • All
  • Team
No template.

Create a template


Upgrade

Delete template

Do you really want to delete this template?

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Sign in via SAML

or

Sign in via GitHub

Help

  • English
  • 中文
  • 日本語

Documents

Tutorials

Book Mode Tutorial

Slide Example

YAML Metadata

Resources

Releases

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions

Versions and GitHub Sync

Sign in to link this note to GitHub Learn more
This note is not linked with GitHub Learn more
 
Add badge Pull Push GitHub Link Settings
Upgrade now

Version named by    

More Less
  • Edit
  • Delete

Note content is identical to the latest version.
Compare with
    Choose a version
    No search result
    Version not found

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub

      Please sign in to GitHub and install the HackMD app on your GitHub repo. Learn more

       Sign in to GitHub

      HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Available push count

      Upgrade

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Upgrade

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully