How to price your Preconfirmation
ETHCC 7 · 11 Jul 2024 · 34:16
Murat Akdeniz of Primev explains how to price a preconfirmation on MEV Commit, an opt-in network where bidders send bids and block builders commit to include and execute a transaction. He describes preconfirmations as a credible heads up, like an Amazon delivery estimate, and walks through the privacy design and the linear decay that makes earlier commitments cost more. His pricing heuristic combines the priority fee, a discretion factor, a state contention value and the bidder's margin, adjusted in real time. He says slashing today equals the bid plus a 5 percent premium, and that Primev wants to turn MEV Commit into a DAO that would refine it.
Speakers
Topics
From ETHCC 7, hosted by Ethereum France.
Transcript
Cool. We can get started. Please join us. Hey everyone. My name is Marat Murat Actinez. I was formerly the product leader at BlockNative when during the merge we uh created a mainnet uh block builder and the only non-Flashbots relay spec at the time, Dreamboat. We were building about 10 to 15% of uh mainnet blocks. Generally it was uh was a happy day. Um the MEV game wasn't quite set yet, nobody really knew. Everybody thought it was just gonna be about order flow, maybe you know, put your own MEV transaction here and there.
This top of block kind of arbitrage stuff wasn't quite apparent at the time. Uh but the number one problem uh our users at the time were having was that they wanted guarantees to be in the next block that we were building. And um having 10% of the network meant 90% of the time we could not give those guarantees. Uh and neither could the other builders. Um, you know, I was invited to the first uh MevBoost Stewards meeting at DevCon Bogota uh arranged by Flashbots, and there I put forward this idea. Well, what if there was a network that could give these guarantees to users, and they were agnostic to whether a single block builder uh could or not, right?
Uh and and and that led to the uh basically the founding of PriMev. Um folks from Flashbots and the Ethereum Foundation encouraged me to pursue this idea. Uh, you know, a year and a half later, we have a live test net, and and um, you know, we've been uh you know steadily uh growing uh our presence. So uh now what does this mean? This network called MEV Commit is essentially an opt-in network. Uh block builders, relays, validators uh can all opt in. It is uh, you know, it aims to be credibly neutral. I'm not gonna say that PrimeMev doesn't have a hand in it today, uh, but at least there's some pretty awesome features that um you know let PriMev be more of a neutral actor in its presence, and we hope to decentralize it over time. It's compatible with new block building paradigms, uh, whether that's something like Suave or uh something like the awesome folks at uh X SGA that just have presented.
Uh and it's it's a chain abstracted concept. So let me uh dive into it a little bit. Um, the the the title of my talk here is how to price your pre-confirmation, but before we dive into that, we want to uh really kind of set the stage uh so that everybody's on the same page about what we're doing. So we define a uh pre-confirmation as a credible heads up before a confirmation happens. Now, uh what's notable about this definition is it applies outside of the context of blockchains, certainly Ethereum. Uh you can apply this to something like Amazon where you know you order a pack of razors or something. Amazon gives you a credible heads up before that uh delivery actually happens, right?
And there's all sorts of sophisticated things happening underneath. Amazon is usually not the one delivering uh that package to you. They usually employ someone like USPS, UPS, whatever it is, uh, to send that uh uh package to you, but their word is credible enough such that when you get that confirmation from Amazon, you practically know that it's gonna be there in two days or something, right? And there is some error rate, you know, there's always the chance that you know your package gets stolen, UPS doesn't deliver that day, there's a storm, all sorts of things. But when Amazon gives you this uh you know, essentially a pre confirmation, you generally set that okay, you're not sitting there worrying about oh, what if my package of razors does not arrive? Right?
So um it's this kind of Amazon level of credibility that we're trying to aim for when it comes to pre-confirmation. It is not this kind of bulletproof 100%, no matter what type of guarantee, it is a real world, realistic guarantee that we're trying to aim for. Now let's dive into what an execution pre-confirmation is. Essentially, we define an execution pre-confirmation as not only the transaction gets included, but it also fully executes, meaning it does not revert. So that any state that it touches obviously has dependencies on the transactions that come before it, et cetera. And how this works today on a kind of a crude model here is that a bidder node on the MavCommit network is able to send a pre-confirmation bid.
By default, this is for execution, unless you specify, hey, I want these transactions to be able to revert. And so you send this execution bid, and the providers on the network, which currently are our block builders, are able to see that bid and decide whether they whether or not they commit to it. Which means it's it kind of works like an RFQ system for your preconfirmation where you make this bid and you immediately receive these commitments from all involved providers, and then all they have to do is make sure that it gets delivered.
So what they do is they all they simultaneously send you the commitment and uh this kind of coordination agent we have, which is called the MavCommit chain today. Uh so this commitment goes on chain in hash form. Nobody can read it other than the bidder and the provider. And when it time uh comes time to execute this uh transaction, it gets revealed, and when it's revealed, then uh an Oracle can check whether uh this commitment was delivered on a chain or not, and then reward the the the parties related to it, right? So the reason the commitment goes pro uh to the bidder and the chain simultaneously is for latency purposes, such that the bidder can have this near instant experience of sending a bid and receiving a commitment uh semi-optimistically, right? Because the then the commitment goes on chain and also um make sure it does not revert or or run into some double spending issue as well.
So there is some very minor chance that you do receive a commitment uh and then later on the commitment will revert or something. Uh but again, this is a very small chance, and it's it's it's not that it's a design flaw, it's part of the realism of the system, similar to the Amazon case where Amazon gives you a pre-confirmation, but somebody could still still steal your package. Um so let's kind of dive into this a little bit more. So, what is an execution pre-confirmation? You specify some desired outcome. We don't uh use the word intent, we don't think this is really your intent, but really uh you know you want to trade something so it's closer to the transaction expression today. You want to trade something.
Hey, here's my swap, it's a USDC to each swap, and here's my slippage tolerance, right? Uh so based on that slippage tolerance, the the providers who are block builders in this case can decide, okay, can I deliver on this or not? Uh I can create a block that um has or keeps the state such that this transaction does not revert, right? So providers issue these commitments, uh, that transaction will get included and it will execute. Uh and once you know this, then you can take a whole bunch of uh you know real world or other domain related actions based on this transaction going through. Um, you know, if you're a UI developer, you can uh optimistically update your UI to show your user, hey, this is going to go through.
Uh if you're a trader, you can do your the second leg of your trade on the other domain, whether that's a C5, DeFi ARP or some other L2 uh transaction, and it unlocks a host of uh basically actions for anyone to do. And if you're just using some vanilla use case where you know you're buying a coffee, you can get your coffee because their transactions pre-confirmed. Um what's what's imperative here is that the bids really need to incentivize the block builder to be able to give you this commitment, right? Because they want to keep their optionality at the end of the day. They will have the most amount of certainty about what the block should contain near the end of the slot. So, in order for you to receive that uh earlier in the slot and have them forego this optionality, you want to uh make sure that you incentivize them.
And this really goes into how the uh pre-confirmation pricing works. So, more on that later. So let's kind of elaborate these steps that we just showed. Uh again, number one, the pre-confirmation bid goes through uh simultaneously, commitment goes back to the uh bidder and the chain, and then uh once uh the basically the L1 block in this case settles, then an Oracle is able to look at it and then uh issue the rewards back to the provider for delivering on those commitments. Uh but what really needs to happen underneath is is a lot of sophistication, right? So uh what will generally happen is once the provider commits to it, um for first the provider might want to simulate this based on whatever block they're building, but then they decide to commit to it, let's say, what what they will uh usually do is uh instantiate a new simulation instance where uh they basically hold this transaction constant in that and they add any additional uh transactions to this block they're building where this now committed transaction is kind of holding constant, right?
So they will do this iterations many, many times, and eventually they will send uh a finalized block, or they might bid throughout the MEV uh boost auction, depending on their strategy. But essentially, this block now with this transaction in it makes its way to the proposer, and the proposer, assuming uh the golden path scenario, successfully appends it to the network. So uh the provider is essentially creating this kind of Ethereum Prime block on the fly when they commit to one or more execution pre-confirmations. And then this Ethereum Prime block is what we expect to go on-chain in the golden path scenario. And then an Oracle can look at it, whether it was fulfilled or not, and then issue the rewards, or in some cases, slash the proposer's stake because they did not deliver on their commitment, right?
So this is the level of sophistication that really the providers need. Not only they need to run this extra info infra, but they need to make the decision on whether the price is appropriate enough and whether the transaction, or they can hold the promise that the transaction won't revert because it does not conflict with some other state. So MavCommit uses this construction where anyone can be a bidder or provider. It's not quite opinionated on who should be, although in most cases it makes a lot of sense for a block builder or an L2 sequencer to be a provider. But essentially, depending on your role in the MEV pipeline, you can take multiple of these roles or one or uh or the other, right?
So we have the spectrum that goes from wallets to uh of and end users to basically proposers on the other side, and each of these actors could be a bidder or provider for the other, uh, or uh you know a combination of both in some cases, where for example, uh an L2 sequencer might be a provider for its own users, but might be a bidder to let's say get their blob pre-confirmed and get it on chain for a block builder, right? So um what do these transactions look like for execution? Uh well, you have these sophisticated transactions that require more pricing and other infra, uh things like top of block, things like state contentious DeFi transactions and NFT mints and sales, where you gotta check whether the NFT is sold out or something. And then you have some non-state contentious, unsophisticated transactions that are much easier to price, and the entities that are that are likely able to give pre-confirmations or commitments on these can be much greater than the set of block builders or sequencers.
And these are things like blobs, uh, you know, winner bundles from order flow auctions where uh you know it's already determined who can execute it or who has this transaction, things like EOA to EOA transactions. Hey, I'm sending you one ETH. In most cases, I'm not gonna send some uh another one ETH to somebody else on the fly. Uh things like approved transactions, which is actually huge because a lot of DeFi protocols want to kind of skip this approved step and get to swap earlier. So what they can do is they can pre-confirm their user's approved transaction and then just have them uh you know show them the swap transaction right there, which is really, really uh a huge boon to UX and trading. And then you can do things like deploying your contract or you don't have to think about it, but again, that might not be so interesting.
So uh we we've constructed this leaderless uh pre-confirmation setting on MavCommit. Uh, MavCommit is agnostic whether you use a leaderless model or leader-based model or or how however you want to use it, but essentially this construction works really well with the current MavBoost setting. If you think about MEV boost, it is a leaderless construction today. There's no set leader as to who's going to uh build the block, uh, but rather block builders are competing throughout the slot to become uh essentially the winner of this leaderless setting. So uh MavCommit makes use of this where uh there is no set uh kind of pre-confirmation gateway of some sort. It's just that you're you're putting a bid out there, and everyone who's building a block is able to commit to it in real time.
Uh, what's nice about it is in the in the case where the proposer opts into this protocol, which is fairly passive, then it really reduces the number of block builders to the ones that have registered with the protocol. So you get a notion of builder identity inside the protocol, which is missing from Ethereum today. And that means the builder addresses are known, who who can propose a block, who can send a uh or build a block is known ahead of time, and then they have a stake, uh not only just their reputation that they are Rsync or Titan or something, but they also have an economic stake which adds credibility to the uh commitments that they give. And once you get a commitment from that entire set, you pretty much know that uh you you know a little less than a hundred percent guarantee that your transaction is going to be on-chain no matter who wins uh the MevBoost auction.
What this provides is essentially the best price pre-confirmation, right? So you don't have to compromise from the MEV boost auction or disrupt it in some way. You can still surface the best price block for the validator, but also these providers compete to give the best pre-confirmation experience to the bidder. Um so we have some key features in the network. Uh, these features include an end-to-end privacy, so that means if you're sending a bid to a block builder of some sort, Primev's not in the middle, we cannot see your transaction, nobody can, in fact. Uh, and uh not only nobody can see your bid, but also uh the commitments themselves are also anonymous, so that uh the when once the commitment is made, nobody knows who made this commitment or what it was for, other than that uh a commitment was made.
Uh so this is kind of can be summarized as an encrypted mempool. It is a uh it uses, it doesn't use anything like super fancy uh other than a couple protocols that we had to come up with, but essentially it's basic encryption, very low latency, uh fairly seamless. Um, and on top of this, uh we have what's called a decay mechanism. Now you need this in this uh in the construction of pre-confirmations where uh in leaderless settings, especially where you have a fair exchange problem, right? So the validator wants the most value for their block, uh, but uh, but the bidder wants the you know fastest pre-confirmation experience. The sooner you give that to the to the uh bidder, you lose optionality on the rest of your block and likely not be able to optimize your price.
And if you don't do that soon, then the bidder gets a terrible experience, they get a pre-confirmation at the end of the slot, and nobody wants that. Right? So we have this decay mechanism that uh kind of I will elaborate on that essentially solves this fair exchange problem with the combination of the chain. And the chain is a fast games chain, it is meant for execution use cases. That means someone can come on there and and build a new contract that uh uses some new sort of logic for execution and how these commitments can be used. Um, you know, we have some ideas on how this these can be applied, but uh we expect the community to come up with many more ideas, and there are already some folks coming up with things like real-time DEXs, et cetera, that that can be powered by uh a chain like this.
Now let's kind of dive into some of these things. Um you have this issue of MEV leaks, which is why we have this end-to-end privacy construction. Basically, if primar Primev were to be in the middle, not as a block builder, now uh between the the bidder and the the provider, we would be able to see these transactions, these bids. We could take advantage of them, we could um you know front run them, et cetera. And and so could some other actor, uh, therefore it's end-to-end encrypted. So we solve this, and then the settling entities can see commitments. Um uh only uh, you know, commitments are basically hash form until uh they're settled, so nobody can see it until they're settled, and as they're being settled, uh the settling entities can can see these commitments and then reveal them for everybody to see. Once they're revealed, everything's on chain, everything's transparent, everybody can see what happened at a certain slot.
Um, you know, our cryptographers have come up with some two amazing protocols here. One's called Arube, which is an anonymous receiver updatable broadcast encryption, which means over a peer-to-peer network, you can broadcast something, but only your selected providers can see them. Uh, and then they we combine that with a dual phase commitments uh protocol so that the commitments them themselves are also cryptographic and and not able to be seen by by anyone. Uh we will release a white paper on uh some of the details on how these constructions work. They can be applied in many other cases than what we're using for MEV commit today. So now let's go into this concept of decay.
So uh as I said, the decay uh solves this uh fair exchange problem in a leaderless setting where there's two factors, right? One that your bid is decaying in real time, two, you're competing with the other providers. That means uh the sooner that you can commit to something, you can claim more value from this bid, and when you can claim more value, you can use that value to add to your MEV boost bid. So basically being able to provide the fastest commitment to a bid gives you an advantage in the MEV boost auction. And providers that are not able to commit to things as fast as the other ones will be disadvantaged in the MEV boost auction. Uh therefore they have a slightly lesser chance of winning the MEV boost auction, uh, or they might have to subsidize uh that that bid in that auction in order to be able to compete.
So this decay mechanism is is uh this real time decay mechanism is crucial in order to kind of solve this fair exchange problem. Um and yeah, it brings this concept that uh time is money. Uh it's kind of uh odd that this is the Warcraft stage and I'm uh showing this, but essentially time really is money in the case of a pre-confirmation. Uh you are bidding more for uh you know an earlier heads up, uh, and in the case where it's latter, you don't have to bid as much. Um decay is linear today on MavCommit. There's been a couple of uh testing builders that uh have expressed that they might want to come up with their own uh decay expressions.
Hey, I want my bid to be decaying in this way, which is uh fairly interesting, but today it's linear. The reason it's not exponential is because uh we figured that it will lead to a lot of resubmissions in the case where uh it does not get commitments. But in the case where it's uh linear, it's fairly expected that uh if the builder wants to keep their optionality, they they can commit at a later time and it only decays linearly. It's fairly straightforward today. Um so the chain is uh what we use for all sorts of use cases. In the pre-confirmation use case, it's fairly clear, it's just to solve the fair exchange problem and to settle the bid amount. But in in other use cases where you have multiple domains, we have things like synchronous commitments.
Now, what are synchronous commitments? Essentially, you can think of a set group of L1 builders and an L2 sequencer giving a commitment at the same time, such that a cross-chain transaction or two transactions across chains can happen uh what we call synchronously. Some people want to say atomic, et cetera, but essentially it's an incentive mechanism and a guarantee such that this happens rather than forcing those entities to include these transactions. Right? So you have two uncorrelated execution service providers, let's say this is the optimism sequencer and a group of L1 builders. Uh, you can have uh a smart contract on the MavCommit chain that listens to commitments from both of these and then lets them know that hey, the optimism sequencer also committed, therefore go ahead and deliver this transaction on L1, and that uh the L2 transaction will also be done simultaneously.
Uh and the chain is the orchestrator of all of this. Uh hopefully, as we decentralize the chain, uh, this can kind of continue to keep the same guarantees that it does today and be the decentralized kind of coordination factor when it comes to execution. Uh, how does this work? Uh it's it's very similar to how I explained it, but essentially you have a bid that has uh that expresses uh you know a transaction on chain A and a transaction on chain B with some block numbers and and and bid amounts, and then both the providers that on chain A and B can uh make these commitments simultaneously. The transaction sender gets to know of this information immediately, and the settlement contract can keep track of the logic and notify the chains that they're now ready to deliver these uh commitments.
So it's a very exciting use case as you might imagine on uh you know chains that have solvers, et cetera. Uh let's say these kind of intent-based DEXs, whether it's CalSwap 1 inch or Uniswap X, uh, it essentially gives solvers another tool to provide better liquidity across chains, reduce their execution risk, which should lead to both a better user experience and lower prices. Um so how does this work underneath? It's this uh similar to how I uh showed the L1 case, but in this case now both the um providers, which is the L1 provider and let's say in this example an arbitrum provider are kind of uh creating this prime block with uh with this uh execution guarantee that they've given, and both of them are doing that at the same time and delivering that, and this is coordinated by the settlement contract and the uh events that are logged from it or emitted from it.
All right, so that's a lot of background, but I hope that gives you uh an a good enough picture on how the setting works, so then now we can actually price pre-confirmations, right? Um, but before we get into that, we need to understand how we price gas. Um so yeah, but but first gas. So uh very quick primer on gas. Um, this is one of the products that I created while I was at Block Native. It is one of the most widely used gas estimators in the ecosystem. I believe you can still access it from gas.blocknative.com. It has a very nice um you know uh Chrome extension. But essentially it uses two proprietary uh machine learning algos to look at the mempool, the latest mempool data, and be able to statistically predict uh what priority fee and base fee you need in order to get into the next block.
Now, this becomes inaccurate when uh there are more private transactions than what you can see in the mempool, but generally it's fairly accurate and the model retrains itself. And as you can see, it's the only probability-based uh gas estimator. It's not this low, slow, fast kind of regime, but it's like what statistical probability do you want to get into the next block? If it's 99%, then that's what you use, and if it's something less like 70%, then you can get it for cheaper, right? Uh so if we understand this notion of the priority fee and the base fee, then we can really price pre-confirmations. So let's go into that real quick.
The base fee goes up or down, 12.5% per block based on how congested the block is, and then you have this notion of a max fee, uh, which means that you have to put on more than what the base fee uh is currently in your transaction, such that if it adjusts on the fly, uh the your transaction is not kind of unmarketable. Uh so what you input into the base fee is greater than what you're actually going to pay. In the case of the priority fee, you have a mempool based estimate today. Again, like I said, the mempool is going dark. You can thank MetaMask for that for privately sending all transactions so that nobody can see them. But essentially, 30% of the mempool is dark today, so uh your your estimates on priority fee are no longer as accurate as they were before.
Uh and then you do have to use some discretion as to what you're incentivizing the uh the block builders uh to kind of include your transaction on. So it's not just enough that you see some number and you input it into your transaction, you have to use some discretion in some cases you can get away with less, in some cases you have to bid more because you might speculate that there is some other private transactions that they have that are higher priced. Uh which means you kind of have to price in the state contention for MEV. So if you have a MEV transaction, whether it's a bundle or some sort of swap, you have to figure out whether this is touching some states that uh other transactions in the block are touching. And if you're um you know competing for those transactions, then you have to up your priority fee much greater than the marketable priority fee, and you have to factor in some of the opportunity cost of the state that your transaction is touching.
So it's a really interesting concept that's going to come in handy when we're pricing our pre-conf. So now let's look at our pre-conf algo. Okay, we have an equation here. I'm gonna run through it real quick. So, in order to get um uh uh a price for your bid, these are what you're kind of considering. One, you have the priority fee at time t, which is at the time that you're uh basically submitting the transaction, right? So um small t, not capital. Well, we're using capital T is basically the time at the end of the slot when you have the most amount of certainty as to uh what a fee should be, right? So then you multiply this with basically what I call a discretion in the priority fee step earlier.
Um you multiply that with some discretion that you come up with, whether that can be uh one or that could be above or below one, but essentially how you strategize uh your priority fee to be uh in the case of a pre-confirmation. So uh some folks from the EF have suggested hey, uh 5x the the pre-confirmation uh the priority fee should generally suffice to get in. Uh but even when you have it, there might be instances if you're touching some state contention that they might not let you or uh or give you a commitment, but essentially you have to kind of tweak this, whether you're receiving a commitment or not, to be able to really uh understand how much you can uh or how much you bid. Um and then the last kind of variable here, which is really really important in the case of MEV, is the state contention factor.
So you have alpha, which is the cost of state. Uh basically, in an ideal world, let's say there's some arbitrage between C5 and D5, and you're touching the state of ETH USDC, you would have to factor in how much that arbitrage is and and what that um kind of extractable value is, and that would be the maximum amount for um basically this uh uh sigma. And then you have this alpha, which is one minus bidder margin. Basically, this is the margin that you think you can pocket in the case that this thing goes through. Usually what we're seeing on mainnet is something between 90 to 94 percent for um searchers. So uh yeah, you could input that as the the the alpha here, and then you adjust it for the the time that you're submitting the bid versus the end of the slots.
So uh that might be a much greater number if you're very, very early in the slot, whereas it might be a lesser number if you're later in the slot. So if you kind of consider these three factors, then you can come up with uh a bid, and then you can tweak this bid uh depending on whether you're receiving commitments or not in real time. So you can get your first um execution pre-conf on MavCommit today. We have something like 26,000 um validators on the whole ski network. We have two block builders and one relay already supporting it. Um it's very easy today. The team has made it fairly easy.
If you're if you have some technical skills, you can use the CLI to get it. Again, this is docs.primav.xyz. It's easy as one, two, three. I would encourage you to kind of check it out. What does the bid structure look like? It's basically the transaction hashes that you want included. MavCommit does not touch transactions, so it assumes that you have these transactions in your own environment. That way you cannot steal transactions or do MEV theft on MavCommit. It just kind of specifies the transaction hashes that you're trying to pre-confirm or get commitments against. Gives some bid amounts, some block number that is targeted, and then there are the timestamps to calculate the decay effectively.
So I have a quick video here on the CLI that kind of demonstrates how this works. It's a few seconds, so maybe we can watch it real quick. Essentially, what I'm gonna do is post a bid here, and as soon as I do that, I receive uh uh a commitment. Now, this commitment payload has a few things in here. It shows me the bid amount, uh, the block number that I was committed for, and it has some cryptographic signatures and commitment uh signatures that allow me to kind of basically slash this uh provider if they don't hold their commitment. Uh and then it also has some metrics about the decay, but essentially it's a fairly instantaneous experience, and um we will build some UI and other tools on top of this, but everything is open source, everything is built in the open, so everybody can.
Um so yeah, that's that's mostly it for my presentation today. Uh the current uh pricing algorithm we will definitely improve on, but the this gives enough of a setting on how to think about pricing your pre-confirmation, and then we can come up with more sophisticated iterations of this. So yeah, that's MEVCommit. Um we're Primev, uh we're building it in the in the open, and this is a credible commitment network for pre-confirmations and more. You can follow us here, and uh thank you. If there are any questions, please let me know. Thank you.
Nice presentation. Um can you go back to the slide where you do the multi-chain commitment? So yeah, that one. So my question is in this case, how do you hedge for the possibility of roll-up on sorry, of um re-org on the main chain? Yeah, uh, that's a great question. So uh in this case, you you're you're presuming that the transaction sender is the sophisticated uh entity, right? So they're basically absorbing or taking that risk right now.
But what you can do is you can um have some end user that connects to this transaction sender, uh, and then the end user can have a premium for their bid where the transaction sender says, okay, for this premium I will absorb this risk uh and then I will kind of um abstract this from the end user, right? So that can be a solver-like entity, it could be some sort of searcher participating in an OFA, et cetera. So that risk does exist, uh, but it's that the actor is sophisticated enough to either abstract it from the end user or price it themselves and take it on. So basically you say it's a loss up to the the loss is up to transaction sender if there is a reorg.
That is correct. But uh what's also uh interesting about the chain is that the chain settles all of these uh after a certain amount of time, which has uh I think about a 70% reduced chance of uh re-orgs. So um, you know, in most cases the the funds at least will will settle outside of the re-org uh time frame. Uh but yeah, you could still experience reorgs on the chains. Yeah, sure. Okay, that makes total sense. Thanks. Can you both go back to the pricing formula slide? Thank you.
Um can you give us some more information on how Sigma is computed? Yeah. Um okay, so let's run through an example. Uh I have a million dollars on C5, million dollars uh and and I buy ETH with this, and ETH price is let's say for example, it's a thousand bucks, right? So I'm buying a thousand ETH. Now I want to sell this on Uniswap. The price on Uniswap is uh a thousand and ten dollars per ETH, right? So uh now I want I'm gonna make ten dollars per ETH, so about ten thousand dollars in this case. So I'm willing to pay up to nine thousand nine hundred and ninety-nine dollars and ninety-nine cents in order to make one cent on this arbitrage transaction, right?
So that is kind of how I can price this opportunity minus the gas costs. Let's make it kind of nine dollars and ninety-nine cents. So then um, you know, I'm I'm willing to pay up to nine thousand nine hundred and ninety dollars for this opportunity. So that's my kind of world of sigma. Now the sigma gets adjusted in real time, right? Because the price is moving on Coinbase and and and uh well, most notably on Coinbase. So that's where the kind of the small t and the large T come in, where what what price you expect it to be at the end of the slot uh is also very important as what the price is now. Uh but yeah, in that case, you would bid up to $9,990 there.
Yep. Do you have like any uh recommendations or like ideas how the slashing penalties are also computed? Because like it has to make sense. Yeah, that's a great question. So we do want to create um make MEV commit into a DAO. So that's kind of the path that we're moving forward because there's a lot of open questions on like how precise some of these variables need to be. Today it's based on the bid amount, so you get slash to bid amount plus uh a five percent uh premium, so that you're kind of this sense disincentivized to do this.
Now that might not suffice in the case of the state contentious DeFi where you're bidding you know nine thousand dollars and you're only getting slashed your bid amount, right? So we uh eventually expect the DAO to figure out better uh variables there. But right now, at least in our tests, the the bid amount minus a five percent premium is enough to deter uh the providers to um you know not maliciously commit to things basically. Uh how would this formula change if the transaction touches two chains? Uh great question.
So you would apply this for each bid for each of the chains, right? So uh the notably, let's say in the uh arbitrum and Ethereum example, the Ethereum part of the transaction is gonna be much more expensive than the arbitrum part, right? So um the state contention might be priced similarly, so this kind of sigma alpha part, uh, but the priority fee part is gonna be very different on different chains, even though they might be ETH based. So uh you would do this calculation for ETH and you would do this calculation for um you know something like Arbitrum. Uh but ultimately you would have some pricing feed that allows you to kind of input just a few numbers and you don't have to think about it too much. And then you send separate bits to the separate chains?
Today this is not uh available. Right now you would have to make two bids. Uh but yeah, we're we're we're building that in so that you can make a single bid and both those entities uh would be able to see that, and then they would only have to deliver when the contract tells them, hey, both of these commitments have come in. Well, thank you very much. My name is Murat from Primev.
Related talks
- Preconfirmations on Mainnet | Murat Akdeniz - Primev
- ELI5: Cryptoeconomics by Julian Ma | Devcon Bogotá
- Fast Mainnet UX With Pre-confirmations | Murat Akdeniz - Primev
- Glamsterdam Ethereum Hardfork: Deep Dive
- Is Ethereum Realtime Ready?
- Competition through Spam on L2s
- Economic organisation of block-building | Barnabé Monnot (February 2023)
- Blob chat, Bitwise Ethereum ad and more - The Daily Gwei Refuel #785 - Ethereum Updates
- STRK token details, ETH supply down only and more - The Daily Gwei Refuel #703 - Ethereum Updates