Approaches to Oracle Management in Decentralized Lending Markets
Blockchain Oracle Summit Bangkok 2024 · 11 Nov 2024 · 47:17
Moderated by Michael Lewellen of OpenZeppelin, speakers from Venus, RedStone, Chronicle, Phoenix Labs (Spark) and Aave Labs discuss how lending markets should choose and manage oracles. They weigh accuracy and timeliness, data sources and the danger of onchain DEX prices, and redundancy: Venus's two-of-three resilient oracles, Spark running Chronicle and Chainlink with a TWAP tiebreaker, and Aave exploring a TWAP anchor that could pause borrowing on anomalies. They also cover circuit breakers, incident response and risk funds, and expect tokenized real-world assets, restaking and oracle extractable value to shape oracles next.
Speakers
Topics
From Blockchain Oracle Summit Bangkok 2024, hosted by Stable Summit.
Transcript
all right so we've got a great panel here you've heard the introductions uh and we're here today to talk more about how oracles are going to affect uh decentralized lending markets uh with people both from the Oracle side and the decentralized lending Market side hearing a little bit from both perspectives um a quick intro on myself I've been doing security work on compound which is a major lending protocol where we have dealt with oracles we've also done audits or worked with Oracle providers before uh We've also occasionally dealt with the incident resp response to issues when oracles don't work properly and we have to quickly figure out how to ensure there is no uh bad liquidations or bad issues that might arise and so we'll dig a little bit into those scenarios I have a few questions but also uh we'll definitely encourage the panelists to
kind of uh go through some interesting topics Deep dive where appropriate and go from there so uh the first thing I'm going to do just kind of going down the line both giving you all some opportunities to introduce yourself but also to kind of give a little bit of insights on how you feel about uh The Lending or uh Oracle Market either as an oracle provider or consumer um how would you describe your philosophy around Oracle management either as a lending provider or an oracle so starting with you yeah definitely um Mato from Venus that Al leite um yeah we at Venus we're the largest lending protocol on BMB chain and CK sync uh definitely excited to be here uh to answer the the question from Michael I I think that I mean
primarily oracles uh work and allow blockchain applications to communicate uh outside the blockchain um you know this creates a foundation level where markets can interact with one another that's the main idea behind it and so our philosophy behind Oracle management will be to you know provide a secure uh fair and safe uh environment for our users and the protocol oracles essentially are the backbone for how lending protocols work and and operate and so uh yeah they essentially provide this safety and integrity for for all of our users hi everyone Marson co-founder At
Redstone oracles uh we've been building Redstone since late 2020 and what we focus at is technical Excellence so uh the reason we started Jacob was the originator the technical founder in 20120 he won a couple of hackathons and chain link turned out to be the bottleneck for bringing into production some of his ideas about interest rate and some more uh sophisticated use cases so that's the reason he wanted to solve the scalability problem of oracles especially like back in the days the push one uh he used to be smart contract auditor so he has a good let's say security background because this is essential for oracles like I would say probably majority of people over here are going to agree that oracles equal
reliability like this is one single thing that should be always in place it has to be super reliable and right now redstone Z is uh very quickly growing I would say one of the quickest in terms of metrics uh over 100 clients more than 50 chains supported in both the push and pull model um clients such as Venus Pendle Moro um couple of other notable projects and we focus a lot about the user so we acknowledge there are mainly like two buckets in terms of like Landing protocols the ones that are a bit more H grounded on the ecosystem already uh and they are the other ones that are trying to innovate with uh new ideas and some more uh in-depth use cases right so for
example uh AA probably is uh more on the side of like making sure that everything is super stable and the billions of dollars that are set into the protocol are not lost but there are some other protocols that are a bit more interested in uh making riskier bets and then innovating for example with the pool model Oracle or some more interesting use cases like for example Oracle extractable value or other areas um sure uh so I'm Nick I'm the founder of Chronicle um Chronicle is the I think second largest Oracle protocol after after chain link I think we secure uh over over 11 billion dollars in tvl uh for for defi heavy weights like uh
like spark uh like maker Dow and uh and Moro um and I would say our uh kind of Oracle philosophy um is is generally around um one resilience um you know we've been in the space longer than everyone uh we were effectively the first Oracle on ethereum going live in in May of 2017 um so you know we're we're we're we're uh kind of very focused on kind of maintaining that reputation as like you know defi is like old like most Lindy Oracle so you come to us right when you want kind of to secure your your mission critical systems um know our our philosophy
though is generally around transparency right uh we uh really want to embody the ethos of don't trust verify um and so we really want to have people stop looking at oracles as like a fortune teller right that just gives you a number and and you kind of just accept that as face value uh we want to give you uh one um transparency but two legibility to be able to see where this data is coming from and why does the Oracle say what the Oracle says uh yes hello I'm Sam um CEO of Phoenix Labs uh we're a smart contract Dev shop that is working on spark and our Flagship uh protocol called sparland which is an a fork um you know naturally
uses uh oracles uh I would say I don't really have a philosophy on oracles but they're like a necessary service to run a lending market so that's good you say it for me no just just kidding no um hi everyone my name is Emilio I work for aabs I'm currently VP of engineering I was one of the core developers of all three versions of Thea protocol and uh Oracle is always always been Hot Topic in regard to our protocol in general to Def space so excited to see what comes out of this
pel all right so uh some other questions ultimately come down to like what's going to make or break uh a decentralized lending Market when it comes to oracles so we've seen some ways on how not to do it um I think just generally speaking anyone else can correct me but like using onchain prices or tws uh can usually get you in trouble we learned that early in defi summer um but I guess just like an open question and anyone just free freely jump in like what are like the number one considerations when it comes to you and like either selecting an oracle or providing an oracle um like if there's one critical Factor when it comes to deciding between like what Oracle you should plug into a decentralized lending Market what lending markets you feel
comfortable using like depending on the Oracle strategy like is there one simple answer or is there maybe more a more complicated one so anyone um yeah maybe I can I can step in I I think that I mean from a lending perspective it's it's important to look at at two bar variables actually uh so it's accuracy and and timeliness uh when it comes to accuracy it's essentially the price deviation from the ground truth and then timeliness will be the update frequency of the of the Oracle price feed so um you know from a risk management perspective it makes sense to try to optimize these two parameters and try to maximize uh both accuracy and and and timeliness so I would say that's like um
yeah the key thing to look out for anyone else yeah um well I would say that there are a few aspects to look for When selecting an oracle for a protocol that like it supposedly should scale to billions of dollars like I for sure I subscribed what was said before so a reliability of the Oracle making sure that is like available 247 365 days a year and whatever uh occasion there is like we have been seeing like crazy Market uh behaviors over the years like I can recall I don't
know like the uh D the black Thursday D5 black Thursday when I remember we saw like 60% price drop in like a couple of hours across the whole Market was pretty insane I remember like more more recently the curve situation or the uni situation where like just publishing on the Forum like the fees which proposal cost like the price to Skyrocket like 50% in 15 minutes or something like that which ultimately cause some problems on on on some protocols as well so the ability to uh be available like the with the highest like uh
availability uh and also the highest resolution so that you can capture as quickly as possible price movements this brings some challenges of course like for example on the ethereum blockchain is really hard to have high resolution because of the uh complexity of the transaction and transaction costs and the moment you start increasing resolution you incur in higher higher cost I think it's kind of exponential like it depends on on the behavior but it can get pretty crazy in terms of cost pretty quickly and that's probably the reason why for example a adopts like the the Oracle in just in um they are just like uh consumer of the Oracle there is no like we have seen in the past like
compound for example it has like the uh uh the push design where like the the price is pushed actually in uh Dow controlled Oracle I I don't remember if it's Dow control but kind yeah it's a UAV anchor like you can basically the prices push and then you you compare it to the onchain Unis swap price which ironically with the uni Spike was actually the one thing that caused bad debt out of everything yeah which is is actually a a design that I I like like the like the the philosophy against it because it would allow like certain mechanisms that would be that I would like to have but the problem the problem is the cost like makes like cost prohibitive for for ad to to be able to
sustain it and that's why like a basically just Feeds out of like the the prices that are committed on on chain like uh to uh calculate like collateral ation constraints which is basically the main aspect that uh handles like the the depth on the on the platform yeah and that's like the model that compound v3's ultimately gone to and we we actually deprecated that System earlier this year for the obvious reason of it it the only time it was ever triggered is when Unis swap was out of bounds not chain link so the the fear of we don't want to have to trust chain link turned out to be like it turns out every time they were right and the onchain price was wrong So eventually we just decided to we're we're just going to trust the chain link knows what they're doing
yeah but I I think you touched on something interesting there right which is something that no one here has mentioned right we talked about like uh update frequency we've talked about like reliability um no one's really talked about data um uh right so so so may I and while I agree with all of you right uh the data pieces is really important right and so when you're choosing an oracle right I think uh look under the hood where is it getting the data from um and I I think Marson this is a problem that you and I probably deal with all the time is uh there's a scenario of there's a team they're launching a token uh they're going to seed some liquidity in Unis swap or in balancer or maybe in curve um and
they're like hey can you make us norle right and uh uh you know uh Michael I think you touched on this right uh where if you're just using like a single Unis swap pool as like your your Oracle or even if you just use it as the only source of data for an oracle then the Oracle can be easily manipulated easily right um even if you have multiple pools of liquidity but those pools are on different chains um well now you can easily dislocate one of the pools and there's not like a readymade Arbitrage that uh someone can do right to to rebalance those pools so the the data
equation and like what sources are you using how many sources how liquid are they um What mechanisms do you have in place on the Oracle side to filter out outliers or things that are uh wonky usually at the expense of latency right um right uh there's a fine line between like or a good way to posit this is like if a whale goes and manipulates a Unis swap pool with like and by buying $1 million worth of a token um how long do you have to wait before that's not a manipulation and like it's actually that is just the new price right and I don't think there's a right answer there uh
there there's like a gradient but eventually the Oracle should be like yep that's the price that's what I'm going to report right and somewhere in there is a lot of liquidations and and and somewhere somewhere along there right there a lot of liquidations and a lot of risk right but uh um I I I think it's not talked about as much in the Oracle space I think like uh there's a lot of talk about what are like the consensus mechanism oh use this type of signature we use validators or we use a ZK proof right but very few people are talking about the data and the data is I think where most of the the risk really really is yeah no I think that makes a lot of sense and I that gets into another question I I wanted to pose especially to like Oracle providers here like what
how do you decide like what you decide to provide prices for like when does an asset become mature enough to get a price feed that you feel good about and how much of that risk you like say like you assume in terms of saying hey we feel like we're confident in providing you stable prices even if those prices are crazy like how much of it is okay we're just going to give you the price and the price might be crazy and you you the lending Market need to decide or whoever is going to consume this that you're okay with that or just say we're not comfortable like listing this because we think the price is it's just not there because I we see a lot of balancing acts of like you want the newest latest thing but does it have a market ready for mature price
fee yeah I believe um with Nick has said is something tremendously important like the sources of data and then making sure that you understand like what you're pulling from and essentially like how they behaving um one also aspect that is crazy important is being a bit more user Centric so majority of uh the topics that people try to cover is like okay we do oracles for oracles no like in the end of the day someone is using that right so you have to understand your user like how they're using that and whether they understand what are the circuit breakers or any kind of like implementations you're offering them so whenever we have a new segment with redstone we always try to listen to the people that would like to integrate that that's the reason we were the first one to create like
price feeds about lrts with EFI then Renzo puffer kpdo and so on because we just saw it's a very prominent Market in the very beginning the liquidity was very low but right now say what AA is using like eeri and Renzo as a market right so if we were to stay just conservative probably would just use if and Bitcoin right so there should be some like this is a problem of an oracle like honestly I think this is like the problem of builder of an oracle staying conservative versus innovating and providing value for the client that is pushing you very hard as Nick said like I get thousands of messages from kamikaza people telling me hey I have like $20,000 of liquidity on curve can you create an oracle out of that of
course I mean technically we are capable of doing so but we are not going to offer that I mean in the past with redstone we had a module that was called custom oracles so you essentially could use our infrastructure and create your own Oracle for a token but we we didn't even make it made it like to production that people could actually use it in in like protocols because we saw people burn their fingers like this is the problem like there are really few people who understand the spectrum of the risk that is associated and right now in order to and we keep updating the requirements for a new price fit to be created an innovation that we've recently introduced and actually this is Alpha we haven't announced it yet but will announce pretty soon we included AI AG like AI models to detect uh
anomalities and like outliers in especially the early stage liquidity uh low liquidity uh tokens that we provide for because the anomalities for e or Bitcoin they are usually not that like big because binance is having majority of the volume but when you're talking about the ones that have only like onchain liquidity and majority of yield bearing assets are only TR Tred on dexes because people don't trade in them that much and they are not listed on txas this is where the devil usually lies in and then you also have the conversation between the market rate for those assets like yield bearing assets and the exchange rate that I believe uh both spark and a are using right so essentially and maybe here like an
extended question to you guys what if one of those protocols explode what if eeri or Lio explodes tomorrow like what's going to happen with your systems I'm genuinely curious right now as of today so if price stays as this but the prod what do you mean by explode how exploding I mean explode like literally go to zero like some slashing event some minor slashing event or no like critical bug in a code like something mul multi oh yeah multi update that the contract is done whatever you're like that's but do I understand correctly that both a and Spark would explode yeah uh to not the degree is important as well like it depends like how much uh of
that is the collateral like if it's Lio like I think everything is is done yeah we can basically find some other job to to you put on your M hat but I think the whole defi not only lending protocol we Lobby the EF to to Fork yeah yes I mean the the the the topic here is a bit like complex there are many angles to it like the for assets like that have that are derivatives that have direct Redemption like Lio or other uh derivatives like eeri I think also yeah in that in that particular scenario I do think that the
exchange rate approach is the correct one because like any Liquidator that can redeem will for sure take the opportunity I do believe that we need some kind and I think for example chain link is working on proof of Reserve right so if if you have a mechanism that tells you okay this actual this asset is actually fine in ter not in terms of secondary liquidity because it's directly redeemable for the underline but in uh from a technical perspective so like the assets that actually backing the derivative are actually there then you're fine if um uh like you have depth exposure exposure against that asset and
that asset goes to zero instantaneously because I don't know something like uh what happened to radiant happens to lier let's hope never that never happens but let's say like there is a multi takeover somehow malicious and someone managed to take all the eth out of Lio right the depth that is taken against that asset whether you have Reser proof of Reserve or not is gone like cannot it's the same for rra BTC if uh someone takes over the rapid BTC Dow and somehow manag to take out all the BTC that are held in in uh by by bito there's not much that you can do honestly even if you have proof of Reserve if there are scenarios where for
example a progressive slashing of Lio so it starts slowly to lose the backing that's a different story and there there are options that you can evaluate to actually manage to mitigate the that risk and the reason these guys are doing so because you manage billion ions of dollars of those assets right like R Steak th like I don't know what's the size of mar yeah exactly I mean it does change when you start getting up to billions of dollars um there's actually no uh like pegged asset that we hold on the M uh Sky formerly known as maker uh balance sheet um like uh so even Beyond The Lending Market itself like we have treasury bills and stuff like that um Athena um so we price uh most things to
the underlying asset um because there's just not that much liquidity outside of uh eth and Bitcoin Lio has a fair bit but it's it's continually drying up especially as they've turned off uh the yield farming to support the peg before the withdrawals were activated so yeah I mean we took the same approach as a uh we uh take we the only Oracle prices we have in sparland are for uh ethusd and uh Bitcoin USD and uh we for eth us that is the most important uh price feed in all of defi so we actually have uh we run uh Chronicle and chain link
redundantly on that feed um to make sure that it is uh always accurate and then we for like lsts uh lrts we uh use the exchange rate uh conversion that the issuer uh reports and this will take a do account slashing events minor slashing events eventually it will be reflected uh in this Exchange rate once the uh issuer updates it a quick follow on that as you mentioned you're using both uh chain link and Chronicle uh redundantly when you say redundantly what does that mean like if if you you receiving prices from both are you comparing those prices are you choosing one randomly uh no no no like it Compares both of them and then if they're within an agreement range then
it's valid if it's invalid it uses a uh un swap twap uh to to tie break between the two okay okay it does not use the Unis swap the price it uses it as a tiebreaker in the event that they they disagree okay yeah that's that's better than the scenario we were in Okay cool so so so the the anchor doesn't right is is never selected right the anchor is just the thing that is is going flipping the switch to to either direction yeah I did because I did have another question that got into that which is like how you deal with redundancy if chain link stops working if Chronicle stops working um like yeah it would just it would switch to the other Oracle so it's always using an oracle price this is important we don't want to use pricing from an
onchain uh Dex um but there's so like if if one of the oracles goes we have liveness uh basically if one of the oracles goes down if one of the oracles prints a completely malicious price um so it's a very robust system for ethusd awesome is there any other one that want to comment like just dealing with that sort of redundancy and how you might deal scenarios where one of your oral fails how you might move to another yeah yeah definitely I I think that well similar to what Sam is is is saying we we do have a a mechanism that's kind of revolutionary in in Venus uh it allows for a more robust and and resilient solution for the Oracle problem um what we have and we call it resilient oracles it's essentially a mechanism of three
Oracles in which uh you have to get an agreement of two out of the three so that the transaction uh is executed in the markets if an oracle fails uh we'll still have a backup of two Oracle and if they agree on the price then the market continues to operate normally uh and if all three disagree then the transaction gets reverted essentially so all of the actions on that market are are stopped so it is a way for us to you know try to protect user funds and the ecosystem uh in case of an oracle failure yeah has has that ever been a problem for you on the listing side of things because I can imagine a lot of assets don't have three oracles um or can't afford or to
purchase three different Oracles do do you uh like take on those those costs as a protocol or is it still on the the asset issuer to to uh to get three different Oracles I'm I'm I'm just curious sorry yeah sorry Michael don't want to hijack just uh no no it's a fair point and and it's an interesting question because I I do think that you know new markets uh involve new risks and it is a dilemma that currently happens in lending markets you know validating if we want to add a market or not um as far as our solution and and the resilient Oracle mechanism that I was just talking about we we do have flexibility over which oracles and which assets we uh implement this with so if
we are starting out with a new market it doesn't really make sense to have the three Oracle layout we can just have one Oracle acting at so it's a tiered risk approach based on how much debt you're you're underwriting got it makes total sense and here actually I work closely with Venus because they are using Redstone so many times what it happens is what I said like for e and BTC probably every single Oracle is going to provide you price feed because those are the kings of the price feed so it's nothing fancy but uh usually when we get a request for a new price feed so let's call it uh we created the first and only still liquid Bitcoin staking Oracle for Lombard solve P BDC very interesting uh Market still can explode because Babylon hasn't turned on uh the yield yet over
there but it is also a very potential one so over there like if you're the only provider when Venus is choosing us then it's only us and then the next provider is coming over they're adding the new one and then ideal scenario is to have the free one but you know like if there's only one you revert to to having just one how does the largest Landing Market deal with potential Oracle failures we have tra link and ching with trust no I mean uh Jokes Aside like um I do like of course like if you want multiple Oracle design like we have you need at least three two it's not enough because like you don't know which one to Trust basically which one is the faulty one you need three but then maybe you can find three for E BTC
but like if you support like 20 assets like a does it gets tricky to get three oracles that provide like reliable data for all the three uh I mean three oracles to provide reliable data for all the 20 assets that the protocol supports across 12 networks you know because that's call us yeah yeah I mean I do I would love and it's something that we are experimenting for before actually uh some alternative designs that actually doesn't require um uh alternative oracles so it's kind of similar to what what a compound was doing with the anchor price but as
anchor price is going to be like a t-w up of the previous uh chaining answers so if we if we that is the idea we are exploring it's not sure that we are going to implement it yet but we are going to uh we we are analyzing if it's actually feasible and like the advantages like so so is the trade-off there liveness right so if no like the the main thing that we want to uh be able to do is at least to to have some kind of ability to react to uh improper Oracle Behavior right at the moment like there is in a there is no chance essentially like I think in other protocols as well like compound I think
uses chiling direct fetches chain link directly or most of the morph markets also have the same behavior I think they only have chain link as Oracle so if chaining pushes a price that is incorrect we would survive that you would survive yeah but because like you have mostly As you mentioned you have wrapped BTC sorry we don't have much Bitcoin exposure B btcusd and E USD and that's everything yeah but like for example a is exposed protocol is exposed to UNI but it's kind of a different like from a a risk perspective it's much more insulated because you of course like as a as a strategy you decided to have a
much tight tighter uh exposure to multiple crypto assets and you chose like R Bitcoin and and it essentially so spark would survive that but like because if for example if it's uni like it happened with uni in the past I don't see anything like you mentioned before I don't see anything like this happening to bitcoin and it because the market is so large that having a 50% price spike in 50 minutes in 15 minutes is I don't see that likely to happen but it can happen to other other assets like uni or mkr that or a that are less liquid right so in that scenario you would like to
have the capability to at least have some kind of uh possibility to react so the idea there is that use the tww of P Shilling if we give for granted that the Oracle starts misbehaving at a certain point in time then we can say that all the answers before were trustable so if you have an onchain history that cannot be manipulated you can read that onchain history calculate the T and use as anchor and if there are there is a Delta between the the the current price and the Anor that is goes past the confidence interval then you might decide to take some sol some uh actions so for example in the case of uni the action that you you would like to take
is to immediately disable borrow borrowing of uni because like um short for example might take the opportunity to uh try and borrow as much they as they can so if the price goes down immediately after the profit from that and potentially they can cause insolvency right so this this is the kind of uh um implementation that we are looking for and it's probably something that uh we we will pursue like for we before and I would also like to see more permissionless Innovation going forward in AB so giving everyone the ability to build on top of our technology and if they want to use alternative oracles
just be my guest what would you do in the event if there is an ethusd uh mispricing uh currently or with did no no with this like new system you're you're thinking it depends on the it depends on the mispricing so if it's um for example if it's um uh attempt to manipulate the market to Ste I don't know to set a wrong price of it and steal all the collateral so some let's say someone there is a manipulation because I mean ethos is so liquid like that's not really an issue yeah but let's say there is I don't know multisig takeover of and someone managed to push I don't know they Supply
One e put one quadrillion dollars for one e and borrow the whole Market this is something that can happen hopefully again never happens uh in that scenario uh like you can test against the confidence interval and reject the price alog together for example but would you just like freeze the market or something no like you can for example because in before before we will also have the ability to uh um set like uh configurations uh not for everyone but like for new users only so we have we call this Dynamic configuration for example you can if this happens you could freeze the market instantaneously without the push of the the um of the price so that would be
that would be the idea this is a we are still exploring I mean the design is not final but we have these ideas that are we are exploring for before yeah I guess it like just hearing some of that like in cases of uh I've heard some Solutions on like okay you can have like an automated system that's like checking these prices having fallbacks is there uh anything you thought about like inser response like okay the the Oracle failed we ultimately like what I heard was just you you pause borrows essentially and some scenario we had the same thing in compound we were had like hovering our finger over the button and then it it kind of normalized but I guess is there any uh before we start getting to final questions or any thoughts about how yall think about incident response either from the Oracle provider or or like a
lending Market perspective like what do you prepared to do in emergency scenarios and what are your do you have those tools available uh your signers ready to show up on weekends that sort of thing um yeah no I can I can step in I I think that you know in emergency scenarios there's a couple of things we can uh try to do in order to protect user funds um one of them would be well initially with the setup of the resilient Oracle uh if the three oracles don't agree on the price then essentially transactions revert so it's a mechanism also to stop interacting with with the market and to stop uh all of the transactions that are coming into play if that's not the case
and something um you know wrong happens we also have you know risk Partners we have a lot of monitoring pools and uh alarms that will essentially alert if something wrong is going on and it just gives us time to um to do some actions and to to try to pause the markets or to try to take some other uh considerations in place to to protect user funds I think that in in this realm of the actions that we can take uh with Venus it's it's an interesting uh approach because we have different set of governance proposals that we call VIPs one of them the most significant here would be the critical VP uh that allows
us to take quick action and to essentially yeah fix a problem to pause a market uh to set some Caps or reduce collateral factors just to protect the overall Integrity of of the protocol uh if that all fails then we do have a risk fund uh which is it acts kind of like an insurance for our users uh if there's an insolvency in one of the markets or in the protocol overall we will use this risk fund to repay the debts that are created and yeah I mean currently it's at around $10 million so it is kind of a a safety net for for the protocol and for their users yeah so so I think you you touched on right is it uh I think I
think you were hinting at is it the responsibility of the Oracle right or the responsibility of of the lending protocol right like what what should the role of the Oracle be should it just give you the raw data feed and then it's these guys's responsibility to kind of parse postprocess potentially circuit break or is that responsibility on the Oracle or is it potentially both it depends on the failure but yeah sure um and and Marson your response will be uh we're very user focused and uh so we'll we'll customize the Oracle to whatever right the user needs um but I I I I think more from a generalized like approach um on the Oracle side there's there's a few things you can do that are
really powerful but there's not that many things that you can do right so um you can when you're ingesting data right uh say okay there is an outlier in this data either there is huge volume coming from a single Source that's not reflected in any of the other sources um or there is a price dislocation on One Source that's not reflected on any of the other sources right and so you can do some filtering you can do some waiting you can can smooth out those those dislocations um and then you have things that are more like okay um most coins aren't going to jump 50%
in the span of five minutes 10 minutes 20 minutes 30 minutes right so you can have internal circuit breakers inside the Oracle itself that that says like okay even if all the sources are painting that uh this thing has pumped up by you know 50% Plus or in some cases you know 100% plus right um the number is not important the number is like what you work out with the customer right um and you advise them right and say like okay this your coin is relatively low liquidity it can actually jump up you know 100% in an hour right uh versus something like East highly liquid right it's not going to pump 100% in an hour right so you can set San circuit
breakers internal to the Oracle right where the Oracle just says like no I'm not going to acknowledge that this is a a valid price and the Oracle doesn't update right um it just kind of like ignores that but you know as we talked earlier right there is a threshold where if this dislocation you know is or you know happens long enough right um then no that is the new legitimate PR eventually the Oracle does need to update right so it's it's more a matter of just ensuring that uh when you're working with uh primarily lending protocols right that you're on the same page of what is the behavior right you say these are the different scenarios that can happen and
in the Oracle and the way that we're configuring it for you now this is what the result of each of these scenarios is going to be right uh and as long as we're all on the same page of what happens in every situation then in combination we can we can handle those scenarios in in the best way possible I think there's a real risk when there is not this uh consensus of in this situation the Oracle is going to do this so we should do this that you can get into trouble because you assume the Oracle will work in one way and it doesn't or you we assume the lending protocol will react in one way and then it doesn't I have a a little trivia on that like not many know that like when we were designing
av1 we were planning to have our own Oracle to design our own solution oh yeah we spent two months I think and then after two months we were like okay maybe this thing is actually more complicated than the protocol that like we realized at some point that like okay like this is going to take more effort actually than the protocol itself so that's that's like where the the whole chaing uh story started so we had to find an alter Al native and we we went to with chilling but I have huge respect for Oracle providers because it's really really hard job and like there are many uh aspects as you mentioned that you need to keep in consideration like not
only uh like provide provide the most accurate data but also understand how your users are going to use that data because might not be the way that you expect that user are using it or vice versa you know yeah yep all right uh we spent most of the time talking about potential failures and things like that and I it's because as a security auditor that's usually what we're thinking about when we put it in the security assumptions of every audit we do um but we have a little bit of time left so I just wanted to open it up to the panel on what are we excited about going forward on like Oracles in terms of like interesting Innovations interesting things that maybe youall see that you're going to utilize in your protocols uh oev uh see if there's any hot takes on that so open floor for that marcine
we'll start with you um yeah maybe just double click on the previous one yes I agree that the user should be aware like how Oracle is going to behave and then we should also understand there are a couple of categories of users because Landing protocol requires a bit of different Orco approach than a per than sometimes even CDP sometimes even like other uh leverage protocol like gearbox and these kind of uh approaches right uh we for example monitor for onchain uh sources uh slippage so if slippage goes out of the specific boundaries we can also detach The Source automatically as mentioned we use right now ai to detect anomalities which is also very helpful in some of the cases uh about Innovation and going forward uh I am truly
fascinated about btcf I mean Bitcoin crossed 81k today and I believe it's an asset that has no ceiling so if you are able to create like any sort of resilient and interesting Solutions on top of that and we right now are seeing like many attempts I think it's going to be huge and as you guys mentioned like for you at least for spark it's only if and Bitcoin that matters on if there is already quite a lot of innovation that has happened on bitcoin is way harder because it was never created to have like innovative ideas on top but I believe we are mature enough to work on that so I'm super bullish on btcy I'm pretty bullish on raking actually to be honest uh we are one of the few big oracles that created testet AVS on igen
layer already and we are just waiting to launch it on mainnet to tap into the restate security um and the third one I think OE like orac extractable value is also very interesting for us like we look into that but it's actually a bit more towards the user like the landing protocol or any other that is going to use that because you recapture a very sensitive part of the uh protocol which is essentially like liquidations right so yeah I would close those those three everyone else we start with start at the end to move down short and sweet yeah for me most bullish and most excited I'm about oracles and defi specifically is about RW so like it's going to
be uh like it's getting more more traction I think we are reaching the point of escape velocity and now maybe we get a bit more deregulation is going to be even easier and that's going to bring some other challenges because like the I can see how important oracles are in that case because like of course we are talking I mean stable coins centralized stable coins are probably the first real rwa on chain and like we will probably see even more sophisticated approach for other kind of asset classes that are coming on chain I completely agree with ailio um yeah at Chronicle you know we uh for what six
seven years of building oracles either within the maker umbrella or within the the chronicle umbrella it was always uh defi kind of price oracles um we recently launched like our second product which is um a proof of Reserve style Oracle called verified asset um and we're extremely bullish on you know I hate calling it rwa I'm going to call it the to tokenized assets um but but I I think you hit on something really important that with tokenized assets the Oracle becomes even more important uh because the token the tokens themselves for tokenized assets are not are not crypto native uh so you really require
an oracle to like contextualize these assets right to give all of the metadata and uh I think we've seen simple implementations of this right like so for example for stable coins right like do the treasury bills backing this thing exist or do they not um but once you step beyond that um it gets exponential more complex um and if protocols want to handle these Assets in a responsible risk managed way they're going to need a lot more data than just does the underlying asset exists or does
it not and so um we've kind of uh built a product that's like tailored specifically uh around this which we launched in in August with m0 um and since then we've um integrated with centrifuge we've integrated with Midas we've integrated with with superstate and and a couple others that that we have yet to announce so I think it's a it's a really exciting um space um and you know as also as you mentioned right with the recent elections in the US um tokenized accessor is going to accelerate right as we see kind of uh maybe a bit more of a hands-off approach from from us Regulators let's so uh San Mato we're almost at time but any quick
takes I'm good go ahead yeah no I I I completely agree uh with Amo um I I think that rwa is going to be huge I know you don't like calling it rwa but um yeah no it's it's it's oracles are the ones that are going to allow for the communication between the the you know smart contracts web 3.0 with the outside world specifically with capital markets and trfi so I I do think see that it's you know oracles are the ones that are going to make this link and are going to be the ones uh that are making it possible to on board more than hundred trillion dollars I think that's
the valuation of of of tradire right now of Capital Market so it has a lot of potential I'm definitely excited for it and from a lending protocols perspective it'll be great to you know think about adding real markets uh well real in the trfi world uh and allow users to interact with you know crypto and and trfi as well so yeah exciting times tokenize all the things but the prices on chain and then borrow against it sounds fun exactly all right thank you everyone for your time thank you everyone for coming it's rap thanks a l
Related talks
- Tackling 2 Billion Dollar Problem In Production: OEV Design That Works And Scales
- Tackling 200 Million Dollar Problem: OEV Design That Works And Scales by Marcin Kazmierczak
- Next-Gen DeFi Protocols with Aave and Balancer
- Navigating Liquidity Challenges: Stablecoin Collateralisation, Liquidations & Bridging Implications
- DeFi Security Summit 2024: Day 1, 8 November
- Approaching security with Aave V4
- Tackling 2 Billion Dollar Problem In Production: OEV Design That Works
- Restaking and the Future of Oracles: Unlocking New Use Cases in AVS
- Building Synthetic Derivatives on Ethereum by Allison Lu, Regina Cai(Devcon5)
