How to Think About Oracle Risk from the Trenches
Blockchain Oracle Summit Bangkok 2024 · 11 Nov 2024 · 11:02
Tarun Chitra, CEO and founder of Gauntlet, explains how risk managers evaluate oracles. He argues DeFi lending has moved from fully algorithmic parameters to user-defined, per-market ones in protocols like Morpho and Euler, which unbundles oracle choice market by market. Total value secured and transaction value are both flawed oracle KPIs. He compares market-rate, exchange-rate and fixed-rate oracles, warns that automation or AI fails in crises, and notes chain block time and safety shape oracle design and MEV.
Speakers
Topics
From Blockchain Oracle Summit Bangkok 2024, hosted by Stable Summit.
Transcript
um I think I'm just going to talk a little bit about how to think about oracles From The Trenches of being you know people who are assessing them measuring them probably from from from a lot of what we talked on the panel what would differentiate them for new oracles what kind of constraints would would make imp palatable for new markets um but one kind of way that we think a lot about how the defi protocol Market has evolved and is evolving a lot right now is that we've kind of moved from fully algorithmic uh models for protocols so fully algorithmic in a couple different many dimensions but two this two-dimensional projection is interest rates on the y- axis and liquidation price so stuff to the bottom and to the
left is fully algorithmic stuff to the up and to the right is user defined and so what we mean by user defined is users generally are updating their positions they have more active management um they can they can quote you know like Unis swop V3 you can quote a price in a lot of the new lending markets you can quote interest rates you want your supply to be used for you can quote for every Market you know where you want your Capital to be used so in these markets uh you can have a lot more fine grain leverage so you can you can actually have better security better risk properties but the user has to be more active and what you're seeing is kind of if if we cluster everyone and one
protocol it's missing the upper right which is on its own is AA Finance but it we kind of see this this move from defi in 2020 and 2021 is the lower left which is fully algorithmic in terms of liquidation fully algorithmic in terms of interest rate to protocols that are is adding isolation and and and adding sort of per market parameterization like morpo uh Oiler av4 uh where there's a lot more granularity and this granularity actually opens the world for a lot of new features for oracles so as as I'm sure many of you know there's kind of this debate that has been uh on on Twitter about you know what kind of kpi should I measure an
oracle by um and so there's sort of this notion of the value secured by an oracle so you know what are the What's the total value of the Assets in the protocol that's secured by an oracle versus how much transaction value is an oracle being used to Mark in so uh the latter cases suppose have a perpetual exchange you know there's an oracle update every block how much volume was was that Oracle update used to to transfer the former is more Just Like You Know What's the total amount of Assets in the protocols secured so they both have their flaws right in the the total value secured case the worst case is I have a protocol that has you know $10 million of eth in it zero transactions uh and yeah sure the Oracle
is making an update but the Oracle isn't really changing the security at all of that system right the assets are sitting there no one is transacting there's no notion of loss or reward that's that's created from the Oracle that's the worst case for TVs the worst case for a total transaction value is was trading where people are basically watch trading against the Oracle right so they both are sort of flawed so in reality you have to think about this and in sort of like at certain times you want to use total value stake and at other times you want to use transaction value so why does this matter well when you're deciding on Oracle often times there's many it's sort of a multi-dimensional kind of thing so first sof their security track record versus actual usage you know I I think you heard heard from Michael like you know on compound
everything is so focused on chain link and a lot of this is for this reason uh the second thing is different stakeholder perspectives you know maybe some stakeholders are like we want some new risky assets added really quickly and you end up needing to to kind of have new oracles um but another thing that's really important is these metrics are really important for measuring the efficiency of new Revenue models for oracles so something we talked about in the Chanel was you know how much money have oracles made the answer is if you ignore the tokens none uh not none but Di Minimus and a lot of oracles are starting with new Revenue models like Oracle extractable value so sort of capturing some of the meev they create uh but in order to measure how effective these models are you really need to
think about these these kind of high level kpis the other thing that's happening in a world where interest rates are more user defined and liquidation prices are more user defined is that we you have an unbundling of oracles so in all these different protocols there are many Risk Managers like us who choose oracles based on what we think for that market is the the correct kind of Oracle based on its its latency properties based on you know P95 prices relative to to indexes um and so you know as I was saying there's sort of this shift from protocol wide Oracle consumption to market-wide Oracle consumption where different markets may have different Oracle providers they have different
aggregation rules they have may have different thresholds um and the the risk tolerance that these that that different vaults will tolerate for an oracle really depends on the responsiveness of the the keepers and curators who are choosing the risk parameters if they can respond really quickly they might be willing to use a faster but more lossy Oracle versus uh vaults that don't have active curation may actually want to use a slower safer Oracle which you know again was sort of one thing that's mentioned in the panel so just to to for for those who don't know I think one one kind of very simple version of comparing different types of oracles that you know we certainly use but I think you should think of is Market oracles versus exchange oracles
versus fix rade oracles so Market oracles are sort of real-time pricing but potentially are vulnerable to manipulation I think the the LRT LST Oracle is a great example of this um exchange R oracles are usually for stable assets so staking derivatives against themselves so like sort of roughly pegged but maybe the the overall pair is volatile um and you generally are sort of these are slower oracles and they're really good for these correlated assets but they're they're again going to be delayed they're not going to be perfectly on time they're not going to have the the real- time efficacy and so generally Within These markets if you look at um how they're split it's the higher risk markets will use the market rate oracles and the kind of lower risk
but lower leverage markets will use exchange rate oracles and finally of course you have fixed rate oracles for stable coin pairs um if you look at how liquidity differs between say we vers staking derivatives versus restak tokens you'll see that there's a much higher percentage of Dex volume which is why you kind of need this sort of notion of proof of reserves and liquidity that was mentioned so uh another thing that's kind of becoming more true and this is sort of why I was mentioning this notion of people chaining oracles into co-processors is there's kind of this this this idea that like oh well maybe I could automate a lot of the functions that these oracles have by doing extra
computation at the aggregation step and so there's a sort of naive thing that is like oh that would work immediately now one problem is that works really well in normal conditions on average um but in crisis conditions you often times have to make very large jumps in parameters especially when there's a dpeg especially when there's a hack to a liquidity pool and those types of behaviors are oftentimes not quite caught by Automation and you have these sort of natural human intervention points the second thing is what we call the parameter hierarchy which is some parameters are purely about reward you know changing the supply caps in in most cases actually is just really about ensuring that the yield doesn't get
diluted too much on the other hand some parameters are really about pure risk like liquidation thresholds like at what price at what price rela to where you enter do you get liquidated how fast you get liquidated those are clearly risk parameters and there's this hierarchy where some of them are you're sort of invariant to in normal vers crisis conditions and some in which you're really sensitive um which of course is why I put these tweets here and finally I think there's there's been this uh kind of especially in the reaking Oracle space of a lot of things that are like well why don't we just have ai kind of pick these types of things and I think the real problem is in these crisis conditions getting interpretable outputs that lets you figure out what the the
the emergency parameter are is really hard like if if the if there's a hallucination at the time of a crisis you're kind of screwed um I'm just going to be quick here one of the main reasons oracles have value on chain is they create me right they create some way of doing an Arbitrage before or after they create some type of sequences of transactions that uh some Market participant can can make a profitable transaction in um one of the goals of oracles is really to to kind of minimize this me while maintaining the guarantees or invariance of protocol wants um however the choices that are made by each L1 or L2 for things like safety and liveness for things like block time actually impact
how well you can use a certain Oracle so in a a blockchain that has a really low block time that's very reliable you may be much more comfortable using a market rate Oracle because you know your next update is fast enough and then you know sort of some bound on the worst case loss over one block um but generally if you have blockchains that are slower so blockchains that value sort of safety over liveness so they they they might have delays they might have Forks um generally there your pricing is delayed so you have to be a lot more conservative but it also means the meev opportunities are sort of not you there's a higher hurdle rate for them and vice versa for blockchains that have that value liveness over safety so this is the last slide so so
you know I think one kind of thing to think about is how does risk management and overall look in crypto collateralized protocols over time I think we're seeing this version of the world where people are playing a lot with how much they're pooling assets versus what oracles they're using and that that is where I can think the Greenfield opportunity is for new oracles is like really like segmenting protocols into Parts where you can use different types of oracles to get higher leverage or higher returns uh I think that the way these calculations and the management are done is also changing just because there's way more risks to cross-chain things way more venues uh you know and and and things where there's like l3s like hyper liquid where like that's a sort of different Bridge
risk than a bridging between arbitr and optimism and finally I think there's there's a lot of improvements to onchain compute VI co-processors as we talked about yeah so that's it I was a little over again but not too over [Applause]
Related talks
- The Solution to Oracle Extractable Value
- Ugur Mersinlioglu - Recapturing Oracle Extractable Value through specialized OFAs
- OEV: An (Almost) Unbiased Look at the Million Dollar Value Recovery Race
- Why are cross chain auctions so hard? -Tarun Chitra
- Tackling 2 Billion Dollar Problem In Production: OEV Design That Works
- Torgin Mackinga - Oracle-free DeFi
- Restaking and the Future of Oracles: Unlocking New Use Cases in AVS
- Approaches to Oracle Management in Decentralized Lending Markets
- Learn about Oracles with API3
