OEV: An (Almost) Unbiased Look at the Million Dollar Value Recovery Race
Blockchain Oracle Summit Bangkok 2024 · 11 Nov 2024 · 23:09
Ugur Mesinlioglu of API3 compares the main ways protocols can recapture oracle extractable value (OEV), the value created when an oracle update triggers, for example, a liquidation. He weighs UMA's Oval, which wraps any oracle and auctions the update through Flashbots MEV-Share, Pyth's Express Relay, and API3's own OEV Network, rating each on chain coverage, oracle dependence, centralisation and fallback. He stresses that all three auction priority, and that the real test is what happens when auction infrastructure fails.
Speakers
Topics
From Blockchain Oracle Summit Bangkok 2024, hosted by Stable Summit.
Transcript
so the good thing about this talk I guess is that you already have a lot of context and you know what's kind of going on so I when I go to these conferences and they're very specialized and everybody comes on stage they typically spend 15 minutes Shilling their solution and half of the crowd is uninterested so today I specifically am not doing that even though our solution is part of this I am presenting all of the options uh or like most of the options that are currently out there for protocols to recapture o themselves uh so what is OE I'll try to keep this short you heard of you heard this I kind of gave the definition also uh during the um panel so value that can be extracted due to an oracle updating
or due to an oracle not updating so every time you have an opportunity to uh take advantage of what's happening on a dab either after an oracle update or because the Oracle somehow missed to represent what happened in the real world and uh the simplest example of this is the liquidation we had this example like I believe five times during the talk uh the Oracle updates uh your health Factor drops below one you get liquidated so in essence uh this decides when this happens and typically uh a liquidation is tied to a liquidation incentive let's say you get liquidated for 1 million with a 10% penalty that means this Oracle update is worth
$100,000 because that's what the guy liquidating you gets and that's is effect in effect how typically the oev calculations are done nowadays uh staying at liquidations if you look at the biggest Landing protocols in the space like ala compound Venus and over their existence period how much value did they lose uh just lending protocols and you're well over 300 million uh obviously this is different depending on how big you are if you look at AA this year I believe you're looking at roughly 50 million compound looks at 15 this year I believe Venus at seven so it greatly differs obviously with volatility because when things are volatile most of the action
happens and oev is uh similar to what we already talked about uh it's just another piece uh so to speak of what we're already seeing uh very early on you saw dydx move to their own chain obviously to internalize all of the fees that happen on their platform uh but you also have different models uh I'm not sure who knows angle here if you heard of angle before uh in the early days angle had a essentially exclusivity deal with a Searcher team like they only allowed propeller heads to do uh liquidations and all of the other things that are juicy on their protocol and they agreed to split everything that comes out of their 50/50 so that's how
they kind of solved their uh meev internalization and obviously we heard the term uni chain uh you see slowly people doing a lot more to keep the value that their applications create and OE is not different uh dabs are looking for ways to recapture the value that they create surrounding Oracle updates and because of that you have a lot of people like uh Yuma like us like piff Building Solutions to recapture that value so uh this is what we'll be looking at and presenting uh I'm going to start off with uh yumas oval because they released roughly in January then I'm going to go
into pffs Express relay and obviously finish uh with our solution um and what all of these have in common and what I already said in the panel is that they are auctioning of priority and how that priority is created kind of differs but the general idea is you get access to something in a privileged way so let's start off with UMAS oval um basically what we already said uh UMAS oval is an a wrapper around any Oracle uh that artificially delays the Oracle update and lets somebody else auction it off so imagine chain link and the chain link network is providing a price update uh not accurate anymore but uh eusd
$2,500 uh Searchers see this in the menol and what then happens is uh oval kind of once the transaction is essentially coming oval protects this so this can this price cannot be accessed unless you unlock it and the rights to unlock that are effectively auctioned off by flashboards like Tess also said in the panel right before you buy the right to then back run this price transaction so only you are allowed to unlock the price so only you can decide when the liquidation happens at after this price update uh just the gist of it and then basically the price gets released uh the liquidation is possible and the value gets
distributed what is uh or like I always have a small picture that somehow tries to explain it in a more easy way so you have a Searcher they see the Oracle update and oval just kind of blocks them and until the right is sold what is good about this uh oval like uh Matt already said can the thetically wrap any uh Oracle there is like it doesn't matter what the underlying Oracle is if it's chain link Chronicle API 3 whatever the only thing oval does is effectively artificially say hey wait I want to sell that so chill it utilizes a proven auction host in flashboards so it's a collaboration with flashboards oval doesn't uh
effectively auction this thing off themselves the only thing that the oval relay is doing is blocking it and then giving essentially flash BS using M share uh the option to uh auction that off and uh now the most important part and this is something that I will be heavily focusing on is uh it has an integrated fallback uh what that means is in oval's case if there is nobody buying this update for three blocks it effectively becomes accessible for anyone so if the oval relay is down if flash Bots somehow meev share is down the the worst thing that can happen is that you're delayed by three blocks and on ethereum that's 36 seconds so
effectively you're kind of doing that trade-off you're accepting the centralization of uh the oval relay you're accepting the centralization of meev share for the potential rise of profits and the worst thing that can happen is three blocks delay and uh also not to forget about this one it's very easily integrated you just read a different price feed contract so the cons uh M share is only available on ethereum mainnet hence oval is currently only available on ethereum mainnet uh limits uh the potential quite drastically uh of what you can do like if you have a protocol and the protocol is multi-chain what you do on Main net you cannot replicate somewhere else with oval uh you can also only auction off
when the Oracle actually updates and since I already mentioned this also on the panel you're dealing on Main at ethereum a lot of the feeds run on one to 2% deviation they update more sparcely which means you actually can like you perform auctions way rarer than you would do on an L2 and uh this is actually the most important part since you're wrapping an oracle you're really dependent on the Goodwill of the underlying Oracle I mentioned this also in the panel uh the underlying Oracle has all the power to make or break you and uh sorry Matt but uh essentially uh oval was uh announced um and uh essentially said uh built with
chain link and um flashboards uh since they wrapped chain link updates first uh chain link came out and said we have not helped or partnered with this at all uh har Hart came out and said well it's a permissionless product built on top of oval uh and then uh our beloved friend here said well you claimed it was built with chain link so what am I trying to say here like I'm not trying to show the drama the gist of it is again you're trusting that the underlying Oracle will not screw with you and if the underlying Oracle has the chance to [ __ ] you they eventually will and there are multiple ways to do that like they can Blacklist you or they can build their own OE solution and kill you you're essentially
completely reliant on that the underlying thing that you're building on top plays along which is a great risk next up piff's Express relay so this is the graphic directly from the piff document ation so Express relay you can imagine as an auction system so this auction system this Express relay is ran directly by piff so a very centralized solution directly ran by one entity uh the good thing about it is that they have a healthy network of Searchers you have wintermute kaladan a lot of big players that are actively integrated with uh Express relay and are looking for opportunities on it how do deps get
started deps uh essentially uh deployer contract that similar to the angle and propeller heads deal only allows the express relay to do liquidations for instance so you basically give the right the permissionless away and only permission this system to do liquidations but that's also not all you also actually need to report the opportunities like you need to run a little tool and actually need to say hey here's a liquidation and then the auction system uh that all the searches are integrated on they can bid on it and the auction system the express relay will execute that liquidation for them uh very simple explanation actually this
is just eBay like this is literally just eBay you as a seller you go on there you put your thing on there and then because eBay is big and everyone's using eBay you have access to a healthy network of sellers oh like buyers sorry so you're taking advantage of this platform pros of this uh again I'm saying this for the third time it has a healthy network of Searchers wimw kaladan and so on PFF is very well connected so a lot of the big players have integrated this so you will have a lot of buyers for your opportunity uh it's Oracle agnostic because it's effectively it doesn't sell the right to a specific Oracle update or anything else what it sells the right to is to the right to execute an opportunity that was reported to them
and thus it's also chain agnostic like it doesn't really care where you run on uh as as long as like they can sell the right to the opportunity and execute on that right that somebody might buy which brings me to the cons uh the biggest one by far is since we're building all of these centralized OE systems on top is there is no integrated backup in this thing like if eBay goes down you're wrecked uh if you don't report a liquidation you're wrecked uh and basically it's completely up to you to deal with that big question mark of how do I make sure I'm not completely screwed when this thing goes down and Branda also had this in our talk where she said you should always plan with
this thing actually breaking which is why it's so great that on oval there is an integrated fallback and uh this I can just quickly show uh piff in the Forum essentially said you can protect against this downside yourself just make it essentially conditional that maybe for instance after a minute it's up open to everyone but what this brings me back to is uh if I can go back uh this uh or like to to get to the point of that is you as a protocol are put in charge of this it's not baked into the product you have to think about it and make something happen so that if they die off you don't die with them uh auctions can only be happen
uh only happen on what the dab reports like you need to tell them hey here's a liquidation can you please buy it if you don't tell them there's a liquidation there is no buyers for the liquidation so now the effectively performance of The Searchers like the big ones with winter mut and kaladan it it kind of matters less because they're only as good as you are reporting to them and if you are not good at running your infrastructure or if you miss a liquidation that you should have reported to them nobody will buy it because they cannot buy it and thus the final Point compared to other Solutions you as an integrator of Express relay you're just asked to do more you have to think about the fallback you have to report every single uh essentially
opportunity uh finally what we build uh at API 3 we run oracles like I also mentioned in the panel we have a bunch of providers like a decentralized Oracle Network and they maintain uh a push Oracle on a specific chain here we showed arbitrum and they do this on deviation or heartbeat basis but the important factor here is this this entire construct has an artificial delay by 30 seconds because the same Oracle nodes are selling real-time data on our L2 which is the oev network and Searchers can essentially come in and say I want to buy the rights for eusd off Compound on arbitrum and when they
win the auction they essentially get access to the aggregate of what they report eusd is for what minute on this specific chain and what they can do now is for that one minute after they've paid update that specific Oracle for that specific dab on that specific chain as many times as they want in that specific window uh this is great if they recognize there's one opportunity but obviously they they kind of have to play this prediction model where they they don't know what might happen after like we selling a slot not the right effectively like if the aggregate oev opportunity is 100k and the first one is 50k you might not get the full 100K but
the reason we effectively did that is because uh of this balance between uh how often can you run an auction and how quickly does this auction need to perform and we effectively said it's better to effectively auction off the slot and then allow this person to potentially also get all of the underlying uh oev since Searchers often times are also very sophisticated and anticipate certain uh OE opportunities and just to uh give again a small picture of what this is anybody has driven a car in Spain before yes yes yes some okay uh if you did and you're on a highway you're going to see something like this uh alikante alikante two different highways bring
you to the same place why is that one of them is actually a toall one you can drive faster there and you you pay to enter it and uh one of them is a regular one you drive slower and it's more congested so effectively uh OE network is on top of our oracles is exactly that you can use our oracles and they will bring you to alikante but you can also pay and be there faster if you want to that's the gist of it and uh the auction model is very similar to what um arbitrum did with their time boost if any of you heard that so effectively arbitrum when you used it prior uh you basically made a transaction and it just uh process the transactions first come first serve it didn't care what happened
underneath right now what arbitrum does is people can effectively buy the right for one minute to have a u 200 millisecond advantage over regular users so you win a slot and in that slot you can insert your own transaction so to speak or have that Advantage before the regular peasants so to speak and uh and obviously if there's a liquidation there you have a 200 Mill advantage in that slot so you will effectively for sure get that liquidation like that is what you're buying with arbitrum and similar way our auction model is pretty similar to this one pros of this our o network is directly integrated into our oracles uh
basically what that means is that it's available on every chain that we provide data to which is a great plus currently 40 plus chains uh it's also easily integrated similar to UMAS oval you just read a price feed you just need to read a new price Fe you don't need to do more as a project you just read a price feed and infinite granularity for the time period that you access like you're not essentially buying this one opportunity and uh and so on you actually get access to a pull Oracle for one minute so you can if you really want to update every single second on arbitrum if that's beneficial for you which no other person effectively allows you to do greatest disadvantages for using it uh you
actually have to use us uh Matt also said this in the panel before it is quite hard convincing di hard chain link fans to switch their Oracle to something else uh and uh this is effectively also the biggest hurdle of our solution people need to use our oracles to make use of our ORV solution it's also limited to the chains V support I know I had this as a benefit but it's also a disadvantage even though we are on 40 plus chains we are living in a time where we're going to have a thousand or so by two years and there will be back log we will not be everywhere and so on so yeah and our solution is actually a bit harder for Searchers to integrate uh it's a L2 with capital requirements Searchers need to onboard they need to
have money there and that will affect bidding behavior and that's almost it uh final summary slide just so you get the best of everything uh going to talk about each and every single point just to give you a big overview of where what you're looking at so chain agnostic uh oval uh is currently uh limited by me share so ethereum only uh but I'm pretty sure they're going to solve that in the soon future uh pffs Express relay chain agnostic uh our solution supported in all the chains that we're supported on currently 40 plus uh can you use any Oracle uh with Yuma theoretically I think they only have two that they
currently have out but they will potentially wrap anything that they can get their hands on uh pffs Express relay similar the underlying Oracle doesn't matter because you buy the opportunity not an oracle update with uh us not so much you need to use us for us to be able to auction rights uh the next two I'm going to do together because uh it is more impactful that way so uh how much centralization are we talking oval uh oval Relay can die me share node can die and what happens then is uh you have an integrated fallback the worst thing that can happen is you're delayed by three blocks uh pff's Express relay you have the express relay that PFF is operating uh that can die and you have the
opportunity reporter that you as a daap people forget this sometimes you also need to run something that can die and when that happens you're wrecked like there's basically if you don't think about what you do yourself you're completely screwed uh and with our solution uh you have the decentralized Oracle Network underneath with the 30second delay so if nobody is going over the express Highway the regular oracles will eventually update with that slight delay baked then and then uh granularity uh oval can only auction whatever the underlying Oracle reports so if the underlying Oracle is not as granular the auctions won't be as granular and won't catch every opportunity similarly piff can actually only report what you tell them like if
you don't use eBay there is nobody to buy your stuff so uh that's also effectively uh a piece of a little bit of a danger there and our solution like the granularity is basically what you want it to be if you in that one minute slot find 10 opportunities and update 10 times cool for you workload for the dab you just read a new price feed with oval you just read a new price feed with us with piff uh you need to permission the express relay you need to run the opportunity reporter and then you potentially should always no not potentially should you probably should think about a fallback mechanism because otherwise you're yeah pretty screwed and that's it my time's [Applause]
up I'm not sure if I have time for questions okay if you have any shoot yes I can barely hear you I'm sorry yeah I'm just asking you know you know if I'm M and I'm trying to do app specific sequencing meaning you know I'm trying to sequence my own transactions right and then in that way as a app I can fully capture whatever M generated you know from either AR update or whatever user action how how do you see that will you know like play out with o because you know I imagine like oev is a separate auction and then apps are right
now you know integrating with o auction but they do have the incentive to do their own auction if there's you know right for us because in that way they won't have to you know give their sh back to API 3 yeah yeah obviously like it kind of depends what you do all of these systems in one way or another like supersede or preedee each other so if you have app specific sequencing what which a lot of people uh currently don't maybe in the future will uh that you might be able to influence that logic and you don't even need an oev solution because you can have that in your apps specific sequencing uh I had a healthy discussion uh with the arbitrum guys about this as well when they implemented their auction like the only reason they contacted us is because half of their me
is actually liquidations and our solution kind of front runs theirs so it kind of depends what the what the um what the app does like not everyone is going to use every single auction mechanism there is some some Landing protocols will create their own chains others will stay on a big monolithic chain and some will use ABS sequencing some will use OE auctions won't use any auctions and uh app specific sequencing uh would supersede this 100%
Related talks
- DAPPCON 2024: Revolutionizing DeFi With MEV Aware Oracles - Ugur Mersinlioglu
- Capturing Oracle Extractable Value Through Specialized OFAs | Ugur Mersinlioglu - API3 DAO
- Learn about Oracles with API3
- Tackling 2 Billion Dollar Problem In Production: OEV Design That Works
- Most oracle tokens are useless, despite providing critical blockchain infrastruc - Ugur Mersinlioglu
- ETHWarsaw x RedStone Meetup - Rotunda PKO BP (14.01.2025)
- The Solution to Oracle Extractable Value
- How to Think About Oracle Risk from the Trenches
- Bring Your Own Oracle (BYOO): Strengthening Decentralized Trust with Threshold Cryptography
