Typefully

Block Proposing and MEV-Boost

Avatar

Share

 • 

3 years ago

 • 

View on X

(1/24) @ethereum Fundamentals: Block Proposing and MEV-Boost What is a block producer? What is MEV-Boost and why is it so important for today's Ethereum? Why do we need long term solutions and what do they look like? Your guide to trustless block proposing.
(2/24) @ethereum is a distributed computing platform. A network of 1,000s of computers (nodes) coordinating using Proof of Stake (PoS) to keep the Ethereum Virtual Machine (EVM) in sync. The EVM is the shared computing platform, the blockchain its history and $ETH its lifeblood. twitter.com/SalomonCrypto/status/1592309373732151296
(3/24) PoS is a huge topic, here's what you need to know for this thread: - a block is a bundle of txns, which are executed in the EVM - users send pending txns to the mempool - once per slot, a validator is randomly selected to be a block proposer twitter.com/SalomonCrypto/status/1579594609855934465
(4/24) The way it works at the protocol level is simple: the proposer builds its own block. The vast majority of proposers will simply go down the pending txn list until their block fills up. ...but some are making better decisions, thereby making huge profits.
(5/24) MEV stands for Maximum Extractable Value, and represents the general principle that there is monetary value that can be extracted from the having special information, access or privileges in a system. In @ethereum, the block builder controls the vast majority of MEV. twitter.com/SalomonCrypto/status/1540870370437107712
(6/24) Here's a simple example. Let's say Alice wants to sell 100,000 $ETH and Bob wants to buy 1 $ETH. Alice's order is so large that it will move the price of $ETH. If the builder puts in Bob's order before Alice's, Bob will get significantly less $ETH than if it goes after.
(7/24) A sophisticated block builder can do many things to profit from this scenario: - take a higher tip from Bob to execute his txn first - create and process a txn to sell some of its own $ETH before Alice - create and process a txn to buy more $ETH back at a lower price
(8/24) There is a big incentive to become good at block building. The better you understand the mempool (and the better access to private order flow), the more you will earn from your staked $ETH. And herein lies the problem: left unchecked, MEV will centralize @ethereum.
(9/24) The problem is that over time, the impact becomes bigger and bigger. This is the nature of compound interest, the eighth wonder of the world. Left unchecked, the best block builders will capture more and more $ETH, and eventually @ethereum.
(10/24) Check out the thread linked in the 2nd tweet of this thread for a deeper discussion on the importance of decentralization, now we'll hand wave through. Suffice to say that from decentralization flows credible neutrality. From credible neutrality flows the value of $ETH. twitter.com/SalomonCrypto/status/1559920665477595137
(11/24) Fortunately, back in 2020 @thegostep and the team at Flashbots ⚡️🤖 foresaw this issue and began building. Even before the Merge was complete and @ethereum finally switched to PoS, we already had a temporary solution up and running (and a full solution in the works).
(12/24) <NOTE> Quick reminder how @ethereum nodes work. A node is a computer that runs two pieces of software, an execution client (managing the EVM) and a consensus client (managing PoS). </ NOTE> twitter.com/SalomonCrypto/status/1589807499804176384
(13/24) MEV-Boost is an extra piece of node software that gives it the ability to source blocks from a block relay. It will always be able to build blocks itself, but it can look at headers and take blocks from specialized block builders... ...builders who will pay to be picked.
(14/24) Think about our example. Say a block builder knows Alice is going to move the market and can calculate that by selling before and buying back after, he can lock in an extra 50 $ETH. He might be willing to bid up 49 $ETH to be picked, as he will still lock in a profit.
(15/24) The purpose of this system is to disassociate the difficult, knowledge/capital/experience-heavy work of building blocks with the financial rewards for proposing them. Every proposer can share in the returns offered by MEV simply by picking the best bid during their slot.
(16/24) MEV-Boost is an incredible product and a huge step in decentralizing @ethereum, but MEV-Boost is not perfect. In order to understand why, we need to dig a little deeper into how MEV-Boost actually works (not too deep).
(17/24) First, we must introduce ourselves to the three players: Builders, responsible for crafting the most profitable blocks possible for each slot. Relays, responsible for acting as the intermediary. Proposers, which are the @ethereum validators proposing the block.
(18/24) The problem with MEV-Boost is the relay, an entity that has to be trusted not only by the builder but also by the proposer. The builder must trust that the relay will keep his block secret until after the proposer has paid the builder's fee.
(19/24) The proposer has to trust that the relayer has confirmed the block and the bid are valid, without being allowed to see the underlying transactions. The former is particularly important, as an invalid block will result in slashing.
(20/24) Fortunately, we have solutions; we'll briefly discuss two. But I want to take a moment to recognize that while MEV-Boost isn't perfect, it's a HUGE leap forward. With MEV-Boost, ALREADY plug-and-play node operators (like myself @Rocket_Pool) are experiencing MEV yields. twitter.com/RocketscanIO/status/1583759534748639232
(21/24) The first solution is to add the concept of MEV-Boost and into the core @ethereum protocol. This would remove the need for relays and allow us to cryptographically verify everything without leaking blocks early. We call this idea Enshrined Proposer-Builder Separation. twitter.com/SalomonCrypto/status/1570557757190983680
(22/24) A second idea, proposed by @sreeramkannan, leverages new ideas about the nature of $ETH to transform the trusted components of MEV-Boost into untrusted systems secured by @ethereum. This is another place where the thread from tweet 2 is helpful. youtube.com/watch?v=ywJNXIUSqOw
(23/24) Both of these solutions require some modifications of the MEV-Boost model. Most importantly, MEV-Boost risks a market of block builders that censor transactions (for whatever reasons). Fortunately, there are lots of good ideas for solutions. notes.ethereum.org/s3JToeApTx6CKLJt8AbhFQ#Hybrid-PBS-can-we-use-proposers-only-for-inclusion-of-last-resort
(24/24) But let's not get too far ahead of ourselves; we are barely post Merge. There is a lot more to build before we move on from MEV-Boost.
Avatar

Logarithmic Rex

@LogarithmicRex