Splitting the Block - Daniele Palombi
NapulETH 2024 · 2 Nov 2024 · 23:47
Daniele Palombi of Twenty Squares asks whether selling a whole Ethereum block to a single builder is the best way to allocate block space. He describes how a few builders and relays dominate under proposer-builder separation and why transactions differ in their needs for position and timing. He then presents XGA, developed with Manifold Finance, which keeps the top of the block in the usual MEV-Boost auction and sells a bottom slice in advance as gas tokens on a dedicated L2, with preconfirmations in mind. The talk argues this needs few protocol-level changes.
Speakers
Topics
From NapulETH 2024, hosted by ETH Napul.
Transcript
Hello everyone, I'm Daniele from Twenty Squares and uh so for those who don't know 20 Squares we do consulting on uh like economics matters in the team uh from mechanism design, market design, auditing of uh economic mechanisms and all uh kinds of uh interesting R and D uh on economics mechan uh mechanisms. So today I'm gonna tell you about something in the context broad context of pre-confirmations. Has anyone here ever heard about pre-confirmations?
Okay, that's not important. Uh we're we're not gonna be needing that. But yeah, so okay. Splitting the block. What do I mean? Well, first let's have a little introduction and plan of the talk. So the problem we're trying to address is that currently block space is a lot allocated monolithically. So basically uh after the merge under PBS, uh a validator can auction off the possibility of uh building their block uh to other external third third-party builders. And uh so the the whole block is sold over to these builders.
Uh we're gonna explore if this is uh the actual best way to allocate uh a block or a block space and uh we're gonna explore our proposal for an alternative design. Actually, this is a bit more than a proposal. Uh so this is uh work we have done with manifold finance and uh basically XGA the product that spun out of it, it's uh it it's been on testnet for a long time, and um we also have run some experiments on mainnet and will be back in like very little time. Okay, so and we'll also see if I mean well, go through the mechanics of this proposal, but also uh see how this can be implemented, and we'll see that this can be implemented without a lot of uh changes uh on the like protocol level.
So that's good because this means quick adoption. Uh okay, so let's first have some preliminary takeaways about the current state of block building in Ethereum. So there are very few dominating block builders, like uh we're gonna see in the next slides that uh like two, three um dominating block builders actually build like 90 plus percent of the blocks that are built on Ethereum, uh which is concerning on the centralization side. But I mean uh PBS proposal builder separation was actually I mean the devised uh in order to prevent centralization also on the validator level.
So the initial idea by flashbots was okay, builder centralization is gonna happen anyways, so let's separate builders from validators from proposers, and so the validator set is gonna be uh I mean decentralized as ever, and uh yeah, and like builders are gonna centralize and whatever. But but maybe this wasn't a good idea uh in hindsight. Um also uh the infrastructure has become very uh concentrated. I'm not saying centralized, it's it's more concentrated on the type of tools.
I mean also centralized a bit so uh for example uh most of the validators uh nowadays run m boost and uh so it's like 90 plus percent uh and uh a core piece of the m eb boost infrastructure is relays and there are like six dominant relays and like the top two actually built more than 50 percent uh i mean relay uh more than 50 percent of the uh like actual blocks that end up being built and also relay don't make a lot of money uh actually most really make relays make none uh and i mean having a core part of the infrastructure uh which is expensive to run basically make zero money it's uh I mean doesn't seem so uh stable in the long term and viable uh we have also some problem uh problems on the user side uh so one is uh at this point the interface between L1 and L2 is a bit confusing for users so it it should be hidden from them uh but we're not really gonna address that in full and uh also like user needs are pretty much heterogeneous like not all transactions are made equal and and they don't have equal needs but uh we're basically throwing everything in the same market so I mean we we also need to address this problem okay so how is monolithic?
Okay, how is block space allocated monolithically today? So at the moment, as I was saying, a couple of builders are uh basically build most of the blocks, and uh they usually care about only the the filet of the block, the the top part, the the the the most important and profitable part of the block because either uh like big builders are uh basically integrated uh builder searchers so they have to run their uh their own uh like uh HFT routines and whatever do arbitrages uh uh CX DEX uh whatever or they're uh like auctioning off on uh like uh their I mean the the the top spots of the blocks uh to other uh searchers, the competitive searchers. Um and nowadays the protocol and the I mean uh rather than the protocol like the the MEB boost protocol only allows to sell uh a whole block.
Uh but at the same time transactions compete for block space, okay. And and also there's uh a huge risk of uh verticalization of actors along the value chain. So uh I mean if I'm a very good and profitable builder and we're already seeing that uh it makes sense to also uh spin up some validators, and then when I get to propose, I don't have to participate in the MEB boost auction rat race. I just can build my block, uh only take care about being as profitable as possible, and I'm doing actually better than having to bribe a validator to to to actually pick my block. Okay.
Also, uh also as I was saying, not all transactions are made equal. So yeah. For example, there are differences in valuations of position and time sensitivity for various kinds of transactions. By time sensitivity I mean like I need to get included in this block or by this block. By position is I need to get included in this part of the block. So for example, position uh dependent and time dependent uh stuff is like arbitrages uh and stuff that usually wants to go at the top of the block so for example uh stuff that uh uh relates to um cx dex uh arbitrages or or in general high frequency trading but there are a lot of like timing sensitive things like swaps for example I need this thing to happen but I I mean uh possibly in a timely manner okay but uh I don't need this to happen in this precise block I just want to swap some tokens from for something else or like totally position independent but time sensitive is roll ups I I don't care about uh where my blob betting transaction is gonna be included in the block like positionally but I need that to get that in by a certain time because I need to roll up data so users can be I mean safe um so yeah uh if block space is uh if not all block space is created equal, can we sell it as different goods?
And uh yeah, so there are various approaches uh that are being explored by I mean uh these can be all bunched in the like pre-confirmation space. Okay. Um so one approach is for example state lock auctions, uh, which is basically instead of selling uh like positional inclusion, I'm selling uh um like priority access to a given part of state. So I'm selling a lock to that uh portion of state.
Uh this is really hard to pull off and to price, actually. So we're not gonna go on that, but but our proposal is is also compatible with that. Um what we're talking about is actually selling different like trenches of the block as uh uh different uh like uh two to different validators, uh not validators, builders, and uh I mean by segmenting the blocks in this way, uh I mean it could be more profitable, like on average, it could offer uh like some smoothing, for example, uh by virtue of uh like if you split the market, then uh uh and you split the the the builders, then uh for example the top builder is incentivized on to keep the block as lean as possible uh in order to optimize latency, and maybe they don't want to wait too much for transactions to come in, uh, because they have to to optimize for their their own HFT thing, right?
They have to bid for the MEB boost auction, but then for example, we can start filling uh the bottom part part of the block in advance, uh and so we can uh put more stuff in, we can have different valuations for it, filled blocks more efficiently okay um yeah okay this is like all nice talk but uh is this feasible I mean we need to basically set up a different marketplace for uh stuff that that goes on and not at the top of the block or uh like that that's different from MEB boost auctions uh also what does this entail for like execution layer and then the the protocol the consensus uh so XGA our design uh actually uh helps with this and does not require any changes at the protocol level uh we have been working on this for uh quite some time at this point um and let me repeat this is already on testnet it has been on testnet for a long time and we have run experiments on mainnets so we're we're basically kind of ready to launch it I mean our our partner is ready um okay so but before telling you about like XGA let's see how like block splitting is happening already kinda today so as I was saying now we have block betting transactions so we are separating concerns so if I am a rollup and I need to I mean include uh like roll up my data and now I have a special kind of transaction that I can include uh and they are basically priced differently than like the the usual stuff that that would go I mean normally on the mempool.
So uh but but but the thing is since the block space is still sold monolithically I still need to go and talk with the with uh a builder to get my block bearing transaction included. And this introduces some friction uh takes away some money from the validator, it's suboptimal at best. So yeah, now to XGA. Our proposal is to split the block into two parts, top and bottom. Uh I mean it it's it's not important, but uh we're fixing the bottom part currently at five million gas. Um and both parts get allocated differently.
Well we're we'll see that later. Uh so I mean like the the top part uh gets allocated through a traditional MEB boost auction, and the bottom part uh is auctioned off on uh like uh a dedicated L2 that it's it's made uh like purposely made uh in order to handle this kind of auctions and also secondary markets uh for this kind of stuff. So uh let's see the the bottom part of the market. Okay, so the bottom market can be implemented uh the in uh in several different ways, but at this point the design is uh centered around selling uh like the bottom part of the block in advance.
So it's gonna be sold in the form of uh gas tokens. Each token represents one uh 100k gas. And this is uh uh uh like a token dimension we have figured out by running simulations and looking at the uh historical data and uh this auction that runs on this uh xga l2 uh actually uh uh assigns gas tokens uh uh to possibly more than one winner so it's a multi-unit auction with multiple winners it's a like kind of uh traditional capacity auction uh for for uh mechanism design nerds uh and uh so when uh the deadline of uh the like uh traditional mm b boost auctions uh comes uh like bottom of block bundles have to be already submitted and they uh you have to burn your gas tokens that you bought in advance so it it's kind of like futures it's it's not really but I mean you're you're you're selling gas like block space in advance uh and then and in a sized uh uh I mean like quantized amount uh and obviously bundles that are submitted uh cannot exceed the uh gas token value the that has been burned uh so uh okay then what happens uh so right now we have to have a dedicated relay for running XGA we're working on our relay agnostic version that's it's gonna come in the future but right now uh uh the usual MEB boost uh winner sends the bundle uh like the block to the dedicated XGA relay.
The bottom bundle is sent to the XGA relay uh by the L2 where I mean the the the part that that takes uh care of the aggregation of the bundles. And then the relay does a bit more work than a traditional relay. This seems like a more uh like we're taking it slow, right?
Uh so we're leaving the top part as is um the traditional builders, MEB boost builders don't have to change anything except for the block size they're building for. They're building for a maximum size of 5 million less, but usually on average, this is uh is not important uh that doesn't really matter to them. Uh the bottom part is then dedicated to a whole another market and it's allocated differently, okay, more efficiently. Uh and so for example, uh it will I mean it uh it will be suitable for all kind of uh positioning sensitive transactions uh like uh uh blobs, um like rewards uh distribution uh all kinds of like non um uh uh position uh sensitive uh transactions you can think of.
Uh the capacity can be sold ahead of time. So I mean you can also in the presence eventual presence of a secondary market where in which you can resell your gas tokens you bought in advance, you can also do some kind of speculation on it, or if you are uh like a traditional MEV boost uh builder that really needs some more space to fit their bundles in, they can buy also. I mean their uh some of uh the tokens on the secondary market if they end up needing them like uh urgently. And this basically introduces no breaking changes to the pro protocol.
This requires only like one relay like validators to add one relay uh as a priority relay. And uh in the future, if we want to go relay agnostic, basically some of the I mean some relays will new relays will spin up, or some of the relays that are already existing will have to adapt a bit and run like uh XGA specific software, but the this entails basically no changes at the protocol level. Uh and actually for this current version, uh basically we don't need also any kind of changes on the like MED boost software.
If you want we want to go relay agnostic, uh yes, we will make minimal changes to MEB boost. Uh and this allows for gradual changes and and experiment careful experimentation uh by just not going all in. We're keeping the infrastructure as is for now. And we can commit to more later. So as I was saying, the bottom part of the block will be probably also I mean gas tokens will be also probably sold on secondary markets, which will be spun up on the L2, XGAL2. And we can like always adjust the parameters of the markets, both the like bottom part auction and uh secondary market parameters in order to like adapt to changes of observations we can make uh about the market, and we can probably imagine to um like splitting the block in further more categories, and uh yeah, so let's go to conclusions.
So takeaways from this talk. Block space is not allocated efficiently. Uh the XGA okay is one proposal among several others to allocate block space more efficient uh efficiently in a different way and split the markets. Uh our proposal allows for gradual change and can be extended over time, uh and it can be integrated with other kinds of proposals, so it's compatible with state uh state block auctions or with other proposals that are more uh like involved uh on the protocol level, like multiple proposers uh or other distributed builder mechanisms. Okay, so I'm done with my talk and thank you all for attending if you have any questions yeah uh we have time maybe for one question let me get the mic if you can keep it short here go uh thank you so m my question is uh I don't get how uh using such market I can still uh perform minor respected value or arbitrage because like essentially if I want to get on the top of a block my motivation is that there is either a transaction let's say uniswap swap and I want to do a reverse swap before the swap yeah and then in the bottom I want to do re-reverse swap and like get back into into my position but then like if I only get to submit top part I first want to make conditional bottom and also I am targeting a particular transaction that I want to extract the value from and I don't see how this proposal addresses this.
This is uh I mean it it doesn't need to address this it's like you're building a separate block that comes after that block you can do all the things you you say the things you've said in the bottom 25 million in the top 25 million gas so it's basically a block is 30 million max okay we're just reserving some part which is gonna be at the bottom, but it doesn't matter. If you want to back run your own transactions, you can do that in the top part. That makes sense.
Yeah. Awesome. I saw another hand before. Do you want to ask a question? Yeah, go. Hi. So doesn't the L2 add a new dependency? And can this become a problem if you become become the main player in the game? Uh yeah, totally. I mean we can expect uh if this proposal is successful, we can expect other services like that to spin up, and then the market will differentiate. So yeah, that's the hope.
Okay, awesome. Thank you very much. Let's make a final applause. And we are now closing down the morning. So please let's have a lunch at uh Palazzo Gravina, which is just nearby here, and we will start back again at two. Thank you very much.
Related talks
- Making sense of PBS auctions via compositional game theory
- Can We Fix MEV?
- Updates on Proposer-Builder Separation
- Searcher Competition in Block Building by Akaki Mamageishvili | Devcon SEA
- Seeing like a protocol
- Who Should Benefit When Transactions Are Ordered? Fair MEV Redistribution
- Information is the New Money - Phil Daian
- MEV 2.0 - Order Flow Auctions & Privacy | Quintus Kilbourn, Barnabé Monnot
- Cost of Feudalism: Towards a Theory of MEV | Devcon Bogotá
