Wallet-Boost Design Doc #1
Pinned
marshabl
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Wallet-Boost
Wallet-Boost helps end-users take control of MEV outcomes and participate in the MEV market. The below design spec serves as an initial draft of our proposed Wallet-Boost solution.
Please comment with any and all feedback and questions!
Intro: Wallet-Boost
With MEV-Boost reaching ~95+% of adoption across the validator ecosystem, the MEV marketplace has reached a new era of MEV-aware design opportunities. The current marketplace for MEV primarily benefits validators and searchers but makes no consideration for the transaction originators (wallet and application end-users). Transaction originators are typically not aware of the background MEV supply chain and its impact on transaction execution.The current market assumes that transaction originators will not participate in MEV. Notably, transaction originators are in a suboptimal position in the MEV supply chain with no ability to control or participate in MEV rewards (or worse, their transaction execution is degraded at the transaction originators expense). To enable transaction originators to express MEV preferences, they need to be both aware and capable of controlling and impacting the MEV supply chain.
Problem Statement: the current state of affairs
MEV is an increasingly powerful force on the network – driving massive architectural changes like MEV-Boost and enshrined PBS. But, MEV originates from user transactions and the preferences of transaction originators are not contemplated by the current systems. Instead, they just ‘assume the transaction’ and hope for the best on the final transaction execution.
Wallet-Boost is an open-source project to empower transaction originators to participate in the MEV marketplace. Wallet-Boost aims to make transaction originators MEV-aware and give wallets (and ultimately their end-users) the ability to control MEV outcomes in favor of better transaction execution for the transaction originator. This is net constructive for the ecosystem because it makes MEV less opaque and ensures a level playing field for all network participants – rather than the current state of protocol-level rule sets that implicitly favor specialized/sophisticated actors who can extract value from end-users without their knowledge or consent. Wallet-Boost will be an open, neutral and highly composable standard that:
Proposed Approach: high-level considerations
Wallet-Boost serves as a framework, specification and marketplace that brings together wallets, transaction originators, searchers and auction designers. This architecture provides the standard and rule set that wallets can leverage to enable their end-users (transaction originators) to be both MEV-aware and in control of MEV outcomes. Wallet-Boost builds upon the success of MEV-Boost utilizing the builder market place to enhance transaction execution for transaction originators.
Wallets that choose to participate, run Wallet-Boost as a side-car, similar to that of a validator running MEV-Boost as a side-car. Wallet-Boost gives the wallet a high-degree of configurability to choose the auction (ultimately the tool set that end-users have to control MEV outcomes) as well as other parameters such as a list of included allowed builders and a list of blocked misbehaving searchers.
Searchers will participate in Wallet-Boost in a similar manner as the current builder auctions, except the auction will be to the end-user instead of the builder. Searchers are incentivized to participate honestly or risk being blocked by Wallet-Boost operators forever, thereby losing access to potentially highly valuable order flow. Searchers’ bids will be evaluated based on a transfer payment from the searcher to the user’s address, so searchers will need to incorporate this payment in their signed transaction(s) in the event they win an auction.
End-users will have the same experience they have today, except there will be an additional element of a rebate that an end-user should consider before making the transaction. End-user’s will care more about the swap execution price than the rebate, so the rebate should be thought of as an additional incentive or economic gain on a swap transaction. The rebate comes in the form of an ETH transfer payment from the searcher directly to the user’s address, so the wallet could show this as an extra field or as a gas rebate. There are future explorations to have the end-user receive any arbitrary ERC20 token instead of ETH.
Builders will continue to receive bundles in the same manner they receive bundles today, so there are no major considerations for the builder community. Wallets operating Wallet-Boost choose which builders they send their bundles to, so it is in the best interest of each builder not to censor or take advantage of Wallet-Boost order flow. Otherwise, builders risk being removed from the allow-list of builders and losing access to potentially highly valuable bundle flow.
While initially, Wallet-Boost is considering and serving the MEV landscape as it exists today, meaning the majority of MEV generated is from swaps across liquidity pools, Wallet-Boost will be highly configurable to allow Wallet-Boost operators to ‘plug-in’ any new novel auction mechanism that they see fit. This has the potential to unlock a new actor, auction designers. Auction designers can create any auction mechanism that meets the specification and standards set by Wallet-Boost.
Design Objectives
Wallet-Boost’s framework and specification allows wallets to control how their users can become MEV-aware and meaningfully participate in the MEV marketplace. The design goals for Wallet-Boost are the following:
Mock Wallet-Boost Flow
Many wallets today simulate their user’s transactions before they sign and submit it to the network. The user will construct their desired transaction and the wallet will simulate the transaction against current block state, relaying the exact outcome (ie. net balance changes) of the desired transaction back to the user. The time between constructing the transaction and receiving the simulated result is known as the ‘intent layer’. Wallet-Boost intends to start the auction flow at the intent layer. The primary flow will consider five main events:
The goal of our mock auction is to optimize for multiple variables, mainly:
Mock Flow:
Mock Sequence Diagram
Mock Wallet-Boost API
Key Considerations and Known Issues
At this point there are two main outcomes:
The main considerations and known issues are as follows:
Future Work
Attribution
Appendix
MEV: History and the Need For Wallet-Boost
MEV stands for Maximal Extractable Value and it is the value that is extracted by actors who control the ordering of transactions in a block. The value that you can extract from a block depends on how you order the transactions. When there was very little “defi” in 2017-2020, most of the MEV was done on-chain, meaning bots competed with each other in the mempool through a Priority Gas Auction (PGAs). These PGAs meant that bots were flooding the mempool with increasingly higher gas costs than their competitors. This led to high-fees and general network congestion.
In 2020-2021, Flashbots launched as a research and development organization to mitigate the negative externalities of MEV. Flashbots created tools, namely bundles, allowing searchers to create a private ordered list of transactions with a bribe to incentivize miners (now validators) to include their bundle on-chain. So when a bot saw an opportunity, they no longer had to compete publicly in the mempool against their competitors. Instead, they could grab the mempool transaction,construct their transactions, and then send the ordered list privately to miners for inclusion. Flashbots new auction mechanism increased competition for MEV, moved the competition to a private auction vs. public auction, and incentivized highly gas-efficient smart contracts. Naturally, this relieved the network congestion from PGAs but the majority of MEV went to the miner and searchers saw their margins decrease from the increased competition.
Fast-forward to Ethereum post-merge and we have a brand new ecosystem and MEV supply chain that includes builders, relays, searchers and validators – and no longer miners. Additionally, Flashbots built a new system calledMEV-Boost that allows validators to outsource the construction of new blocks to specialized entities called builders. Builders compete against each other to create the most valuable blocks possible, typically by including as much MEV as they can to maximally incentivize the validator into choosing their block over competitors. See below for the new and current MEV-Boost transaction lifecycle.
Today, builders are competing to accept as many bundles from searchers and/or have their own proprietary order flow to make the most profitable blocks possible. For the validator, participating in MEV-Boost is completely optional, however current estimates suggest you double your return as a validator by outsourcing block construction to builders vs. doing it yourself. Currently ~95% of validators are running MEV-Boost with 5 builders making up ~85% of blocks on-chain.
Today’s MEV supply chain is the following: user’s construct their transaction, sign it through a wallet, broadcast it publicly into the mempool where a searcher picks it up, creates a bundle, sends the bundle to builders, who add it to their block and send it via an MEV-boost relay to the validator to include on-chain.
Stephane Gosselin: The MEV Supply Chain: a peak into the future of this industry
With the current supply chain, only two actors extract value: the searcher (typically less than 5%) and the validator (typically about 95%). We are starting to see builders extract some value for themselves, but so far it is minimal. Notably, the transaction originator (the one who ‘unlocks’ the MEV in the first place) does not extract any MEV from this supply chain. What if we created a system that recirculated some of that value that is going to the searcher and validator back to the tx originator/user? Enter Wallet-Boost.
Wallet-Boost is an open-source project to facilitate MEV Value Recirculation to various parties, including transaction originators, wallets, protocols, validators and searchers.
Beta Was this translation helpful? Give feedback.
All reactions