CIP-40: MEV Blocker fees

CIP: 40

title: MEV Blocker fees

author: Haris Angelidakis, Andrea Canidio, Felix Henneke

status: Draft

created:

replaces (*optional):

MEV Blocker was created by CoW DAO, Beaver Build, and Agnostic Relay to allow anyone to safely use Ethereum, guaranteeing fast inclusion time, protection from MEV attacks, and providing rebates whenever there are profitable backrunning opportunities arising from their transactions. Achieving this ambitious objective requires a source of revenue to support the technical maintenance of the product and to drive continuous growth in users’ adoption. As of today, MEV blocker has no revenue sources.

This CIP introduces a new fee mechanism for MEV blocker. The fee is charged to connected builders and is a fixed amount per block won. This amount is updated monthly and is a fraction of the average per-block value of MEV blocker transactions during the previous month. Note that MEV blocker users will not be affected by the fee.

The Fee Mechanism

All builders connected to MEV Blocker will pay a per-block won fee recomputed every period (for example, every month). In practice, at the beginning of period t a builder decides whether to receive flow from MEV blocker. If it decides to do so, for every block won during period t it will pay a per-block fee calculated as a percentage of the the average per-block value of exclusive MEV Blocker transactions during the previous period. Mathematically, the per-block fee in period t is a percentage of

M=(A-B)/C

Where

  • A = Total MEV Blocker transaction value during period t-1, excluding rebates
  • B = total value of MEV blocker transactions also in the mempool during period t-1.
  • C = number of blocks mined by builders receiving MEV blocker transactions during period t-1

Initially, the fee will be 20% of the above value, and the period t will be 1 month, but these variables may be adjusted later (without requiring a new CIP). Note that the fact that the fee is per block does not mean that it will be paid with each block: we will keep track of it off-chain and settle it weekly via a payment to a dedicated Safe. Hence, the settlement period for the payment (one week) differs from the frequency at which the per-block won fee is computed (one month). CoW DAO will receive 50% of the funds received by the dedicated Safe, with the rest forwarded to our partners. This dune query calculates the fee for the past 12 months (note that the query is preliminary and may be updated). The per-block won fee for March would have been 0.00048 ETH, and that for April (according to March data so far) will be 0.00059 ETH.

Builders must also make a 10ETH deposit to a separate smart contract managed by MEV blocker partners. These funds will cover late fees and other costs generated by builders (for example, in case they leak MEV blocker transactions to the public mempool). The deposit will be returned to builders who decide to disconnect from MEV blocker and are in good standing.

We’ll compute the value of the per-block won fee using publicly available data, in a format that is easy to verify (for example, as a Dune query). We’ll then post its value onchain for easy access by builders. Similarly, we’ll use publicly available data and easy-to-verify scripts to keep track of the total fee each builder should pay and the flow of payments.

Finally, for builders who won fewer than 1% of blocks during a given week, the fee will be adjusted so that these builders pay as if they won exactly 1% of blocks during the week. In practice, during period t, at the end of each week these builders pay

1% (total blocks mint during the previous week) * 20% M

The rationale for this adjustment is that connecting a builder to MEV blocker poses a risk because of the potential leaking of transactions to the public mempool, which should be evaluated against the benefit of faster inclusion of MEV blocker transactions. We believe the risk outweighs the benefit for builders who win less than 1% of blocks. Although we do not want to penalize builders who may temporarily fall below this threshold too harshly, we also want to discourage long-tail builders from connecting in the first place.

Why this fee mechanism?

An intuitive notion of fairness dictates that each builder should pay for the value of MEV Blocker transactions it uses. At the same time, an important objective of the mechanism is to be as non-distortionary as possible: it should not affect the decision to include or not include a transaction by a builder. A fee constructed simply as a fraction of the tip of each MEV Blocker transaction risks creating distortion. Furthermore, on the implementation side, it would require a new API.

The proposed solution instead does not require any new API and is unlikely to create distortions. It is also built to be correct on average: if builders do not disconnect and win more or less the same fraction of blocks between periods, they end up paying with a month delay the average value of MEV transactions they received during the previous week.

It is also important to stress that this is the first iteration of the fee mechanism. For example, in the future, we may compute the fee as a fraction of the MEV Blocker tx value included by non-winning builders for the same slot. Intuitively, that would be a proxy for the value from MEV Blocker available to the winning builder, independent of this builder’s decision to include this or that transaction. This mechanism cannot be implemented now because Agnostic relay does not store any data regarding blocks built by non-winning builders, but this could change later.

Who pays the fee?

To understand who pays the fee incidence, we need to consider two cases. If a single builder receives MEV Blocker flow, then introducing the fee is at the expense of this builder’s profits: if this builder wins, it wins less (by an amount equal to the fee) and is less likely to win because it will bid lower. If, for simplicity, we ignore this second effect, on average, the builder pays 20% of the value of MEV transactions as a fee while keeping the remaining 80% as profits.

At the other extreme, suppose that all builders are connected to MEV Blocker, and hence, after the fee is introduced, they all have to pay it. Now, for all builders, winning a block is less valuable by an amount equal to the fee. For the moment, let’s think of the auction as a second-price auction: the winning builder is the one who bids the highest but only pays the second-highest bid. One of the most famous results in auction theory is that, in a second-price auction, bidders should bid their true valuation, which for each builder is the value of its block minus MEV blocker fee. This implies that the winning bidder earns the value of its block minus MEV blocker fee, and pays in the auction the second-highest bid, which is the second most valuable block minus MEV blocker fee. Hence, the winning builder earns less but pays less, and its profit margin remains the same. In equilibrium, the only impact of MEV blocker’s fee is that all bids are lower, and hence, payments to validators are lower. In equilibrium, the fee is paid indirectly by the validator.

Note that the auction is not exactly a second-price auction. It starts as an ascending English auction, where bidders gradually increase their bids. Due to latency, the final part is similar to a first-price sealed bid auction. Despite these complexities, the auction’s dynamics are similar to a second-price auction because each builder aims to outbid the second-highest bid by a small margin. Also, since the value a builder gets from creating a block doesn’t depend on other builders’ blocks (i.e., the auction is in private values), the revenue equivalence theorem says that all auction formats yield the same expected payoff to its participants. Hence, even if the auction is not in second price, we can analyze its equilibrium as if it were in second price.

To summarize, our hope is that the majority of builders will stay connected to MEV Blocker and that the fee will reduce the payments to validators (i.e., MEV). At the same time, we expect the mechanism to be overall beneficial to builders, including in the case where only one or a few builders connect (and end up paying the fee out of their profits).

Possible challenges

The main possible challenge (and where the above reasoning would fail) is when all builders have blocks of very low value, so imposing a fee turns the value of winning negative. Theoretically, this may lead to builders not bidding and the block being empty.

To check whether this possibility is empirically relevant, we calculated what the fee would have been and checked how many times the block won by a builder had a lower value than the fee (see this Dune query). We found 18 such cases in 2024 so far. For context, there were more than 630.000 blocks mined so far in 2024.

A final issue is that the mechanism is designed to be “correct” on average, in the sense that, on average, a builder who does not disconnect pays with one period delay 20% of the value of MEV blocker transactions it received. However, averages may be misleading, especially for small builders. Therefore, for each connected builder, we will keep track of the value of MEV blocker transactions received during a month and the total fee paid to MEV blocker in the subsequent month. If we find cases in which the fee paid exceeds the value received, we will consider adjustments to the fee mechanism (for example, instead of charging 20%, charging 15% or 10%).

3 Likes

Hey @AndreaC, lovely proposal. Fully support it!

There hasn’t been much back and forth on this one, I think its due to the fact that for people without the proper background is quite hard to fully understand the implications of these changes, therefore, as I am doing people delegates on the team we’re invested on :slight_smile:

What everyone seems to agree on, is the direction we’re taking w.r.t fees and revenue being chanelled towards $COW and COW DAO! Looking forward to voting YES to this

Thanks for your support @tanglin ! The CIP is now live on snapshot, so you can already vote