Censorship-Resistant Protocols: Oracle-Less vs. Oracle-Integrated Approaches

Blockchain Oracle Summit Bangkok 2024 · 11 Nov 2024 · 44:56

Speakers from Pyth, Tellor, Ajna Labs, ChainSecurity and Chaos Labs, moderated by Curve's Alberto Centonze, weigh oracle-integrated protocols against oracle-free design. David Utrobin explains how Ajna outsources pricing to lenders and liquidators, trading user experience and long-tail liquidity for immutability. ChainSecurity's Torgin Mackinga argues any oracle adds risk, while Tellor's Brenda Loya says censorship resistance means anyone can request data if they pay for the risk. Pyth describes its publisher network updating every 400 milliseconds, with Wormhole carrying data to other chains. Past failures such as mispriced pools and the Luna price floor are reviewed.

Speakers

Topics

From Blockchain Oracle Summit Bangkok 2024, hosted by Stable Summit.

Transcript

hello hello everyone can you hear me well um so welcome today we have a very interesting panel about censorship resistant protocols Oracle less versus Oracle integrated approaches so we're here with a bunch of different people from very different backgrounds and we're going to try to explore um the differences in the approaches we have people that actually work for Oracle companies we have people representing the opposite sides so Oracle as protocols and we also have chain security members and K sta members which will give us a different perspective on this on the topic so without further Ado I would start with a a short round of presentation maybe Mario you want to start sure so my name is Mario I work

for the pit data Association and I'm a contributor to the pit Network so as you guys know pit network is a first body data Oracle which specializes in financial data so we work with pretty much all the data providers ranging from traditional Finance players but also a lot of the crypto players as well ranging from financial institutions and also Traders and market makers hello everybody I'm Brenda and I'm the CEO and one of the co-founders of teller we're a decentralized Oracle we are you know we we claim and we say this uh with all confidence we are one of the few oracles where if the team was to go away you could still get your data that's how decentralized we are I'm I'm David nice to meet you all uh I'm the head of BD at asna Finance

we're a new gen defi protocol that's designed without oracles without governance to be fully immutable um and likewise if our team disappeared the protocol would work just fine and actually our team did disappear we dissolved in January so yeah uh hey everyone I'm torgan I work at chain security I do uh smart contract audits there and I'm uh specialized in oracles I would say um so I uh wrote a paper on the Unis Swope Oracle for example and how you can mess with it and uh yeah I just like breaking stuff I'm Barry uh I'm the lending vertical lead at chaos Labs um we are a quantitative risk firm uh working with

teams such as a Venus Banky and GMX um and we are recently entering the Oracle space uh in the context of risk oracles where we can effectively enshrine our risk simulations uh through real time such that we can optimize parameter optimization uh in a better way uh and more effective way okay thank you everyone for the introduction um I think given the name of the summit we can skip questions like what an oracle is because I hope everybody has a fairly decent understanding of of the question um but I I would still like to know uh from Brandon Mario like what actually uh makes your Oracle different especially

from from a censorship resistance point of view yeah right so pretty much like I said so pit is a financial data Oracle specializes in financial data we work with a lot of data providers from traditional Finance side of things but also at the same time the crypto side of things you look at the tri traditional Finance side of things we work with a lot of data providers like CBO Global markets Max MX and other us regul exchanges that provide us equities FX and also other types of assets into the pit Network and also at the same time we work with a lot of crypto players like binance okx bybit and all these other kind of like Traders and market makers like wintermute Aros Galaxy digital and any other kind of like big financial

institutions in the crypto side of things and they provide data directly to p with regards to the censorship kind of like stands on things so the way we work is that all the data that the data providers submit like it's pretty much they are aggregated directly into what we call as our own application chain called pit net where pretty much all the data providers have to submit their data continuously every 400 milliseconds because yeah so and also at the same time because all these kind of like data providers are aggregating data directly to pit net we are kind of like as the pit Network ourselves like we don't have an ability to actually tamper some of these data so in that sense in terms of the sensorship kind of like aspect of

things we don't really censor anything in terms of the data inputs whatsoever and also at the same time because we have so many many of these data providers right now we are working with 120 of those data providers A lot of these data are pretty much aggregated and pretty much it goes without censorship whatsoever thank you Brenda yes so in terms of decentralization the way the T Works it's everything from from any anybody that wants to become a data reporter they have to stake on chain they risk losing that stake um via dispute mechanism that also happens on Shane and it to begin a dispute is only 10% of the Stak so that incentivizes people to to want to do this because they can make

money so with like I said without the team that can still continue to to function and in terms of censorship any type of data that anybody wants the only thing that need they need to do is basically um save the definition or what we call the data spec on we do ask them to put them on our GitHub but they do eventually have to register it on ipfs so that everybody is aware of the data that is needed the data has to be in a way publicly verifiable so that anybody can dispute it and so we don't have any parameters of things that people can or cannot ask the Oracle however those uh definitions have to be clear enough that people are willing to risk their state

because that's a lot of money um for pro to provide this type of subjective data or if you ask a really bad question or a really a controversial question then they have the option of not answering um but in general any data that anybody needs can be asked for and anybody that wants to participate in the network can participate in the network without the team having to approve it thank you Brenda so uh David can we instead go on the other Spectrum on the other side of the spectrum and see how asna actually went radically different yeah absolutely um so whenever I tell people that asna is an oracle as def5 protocol they look at me funny and they scratch their head

they're like how how's that possible where do you get the prices from that was my reaction yeah and uh and and I had the same reaction when I first learned about the protocol as well um and the short answer that I give people is that the protocol is designed such that it outsources the function of the Oracle to the lender and the Liquidator so when a lender lends an AA they deposit into a specific price bucket so they're choosing a price that's some discount to Market adjusted for volatility thinking okay like I'm willing to lend to a borrower at this price and it ends up being you know a price range um and so the system has a

reference price from which to lend uh from which to let borrowers borrow against that collateral and then on the Liquidator side um we have a mechanism called a liquidation Bond so in order to liquidate a position you have to put up a percentage of their debt um and if the collateral auction act clears at or below the liquidation price then you get paid but if it clears above the liquidation price you actually lose your bond so we have a really great economic incentive for a liquidator to act honestly and between those two things guess what you have a defi protocol that doesn't use oracles and uh yeah that's that's the short answer

thank you David so now I would like to have uh Barry and tan play the role of the fact Checkers here one from the security perspective the other from the risk perspective and tell us a bit more of like what are the different trade-offs both technically and like from a risk perspective so Toran uh yeah I think that essentially an oracle will always add risk no matter how it's implemented right you can like try to make it the best possible Oracle but at the end of the day you still have like external data that you're relying on for correctness of your protocol and so you need to be very careful in how you use that um I think that the Oracle free approaches are really cool so the main

ones I know are asna and there's another protocol called Franken coin which is kind of similar but it it's a stable coin protocol um and I think it's very cool that these protocols um like even if it like they they don't have the Reliance on external data so you know that you can use this thing like in 100 years uh you don't have any Reliance on external things and it's just important to understand the the trade-offs um so I think in general for the Oracle free approach you need liquidations that are quite slow because you're finding your liquidation price through a Dutch auction where you need to give the

market participants time to see that the auction is happening and uh and get the tokens that they need and all that stuff and then also you don't want the price to decline too quickly um and things like that so I think that's important to um keep in consideration but um yeah I think it's very cool that it's even possible to have these kinds of protocols without oracles at all and I think that um there's probably also more room for Innovation so yeah I'm I'm super curious to see how it continues and if people come up with more uh cool ideas that eliminate this uh uh yeah risk factor of the Oracle can I actually add to that of course so another one of

the trade-offs is actually ux versus um like less systemic risk and eternal functionality uh when you sacrifice oracles you're putting that job on the end user like that's one of the reasons that asna actually has been struggling to find product Market fit the lender has to be the Oracle and guess what lenders are pretty lazy nobody nobody wants to do that uh so oracles I think as a um component of your system design are a huge unlock for ux uh they do make things more efficient but they do introduce systemic risk so I just wanted to add to that as one of the fundamental trade-offs thank you yeah and I guess building off of both of those things um specifically the first thing obviously

the uh you mentioned how uh being reliant on third parties and generally we think of consensus mechanisms when it comes to Oracle uh providers but also simp simply something uh around vwap aggregation uh or the underlying Clos sourced uh data provision where the underlying Oracle network is actually gathering this from how is this actually being calculated uh and this in a general sense uh alongside the inherent permissionless approach uh allows for unlocking uh 100 years we can still have a around um and as far as the trade-offs you once again mentioned this

ux component about how uh A lender is not a lender on a let's say um A lender on a is very passive um the payoff function of a lender on azna uh is much more complex uh and as a result we can get uh even as it relates to to ux we also have the capital efficiency component where naturally on a 90% of all supplied eth is actually being utilized as collateral a tokens um and this uh is simply would not be possible on an oracal list lending protocol uh and when we think about eth supplies simply and

and its functionality such that it can be borrowed for say LST looping and all of that um this Capital efficiency component in addition to like the dynamic Liquidator incentives which uh are much more uh constraining in this sense um we now have to build a protocol that takes all of these tail risks into account which are not necessarily uh present in something like a where we have like this continuous updating of some or push Oracle let's say thank you so um I think we had a bunch of very different perspectives around the subject and maybe something I want I would like to ask uh to follow is

something that actually comes from what Brenda said that is uh like to get a proper answer you need like you also need to ask a proper question that is uh will you always be able to like get a proper answer or to get an answer at all um I'm thinking about liveness so for the audience liveness if you if you look at the definition by the book is simply eventually something will happen so we need like oracles to answer otherwise they would be effectively censoring something so how can we uh like I would like this is question for like uh Brenda and for David how can we be sure that like livess is guaranteed so I would say in one sense uh for Brenda is basic the question is more on how can we be sure

that an answer will come to the question even if it's Mal formed maybe I don't know the question could uh like do you somehow curate the questions to be sure that they're done in a correct way no CU then you will be introducing some censorship there too right so you don't want to censor neither your users or your data providers um the way that you actually get an answer is if it is a highrisk type of question or high-risk type of uh query you got to tip more you got to be able to be willing to pay those reporters for the risk that they're taking so either that or the second thing that you could do is actually Implement some proper time you

know after settle with time so you can you can say like um like if you were to ask about an election like the Maduro election in Venezuela um if maybe they would have asked who will take over power that would have been a better question or uh if they would have just waited a little longer to settle that could have been enough you know a lot of these hacks I feel like they they actually exploit the impatience that we have in crypto uh to get either data or do the next trade or whatever it is that we're rushing through but ultimately if there is a higher risk there's got to be a higher pay that's how you ensure it and that's why but I wouldn't want the team to be the one censoring we want it

to be as neutral as possible so that everything can happen and then it's just up to you how much you're willing to pay so in some sense this is somehow similar to the to an approach where you do not provide the liveness guarantee but somehow you like the author of the question somehow is like taking the respons responsibility yeah so for our system any anytime that somebody wants data on chain they have to signal to everybody so they have to post the payment on chain they don't have to go through the team so yeah it has to go it has it shifts the the liveness to to I guess responsibility to how much you're willing to pay it's just like whenever there's like high congestion on on

ethereum for example black Thursday maybe they would have been somebody would have paid a lot more gas or had a way to incentivize those updates then maybe those transactions would have gone through but there's got to be that mechanism for people to either pay for the risk or you know pay for the thank you Brenda so going on with David um I guess for in for asna From asna perspective livess is Will somebody eventually get liquidated so how can we make sure the liquidations happen uh actually I think I can tell like a personal story about this we had um at Curve we had a white ycv uh liquidation a big yv liquidation happening on asna back in the days and it was quite

complex to get people to liquidate that position so I'm actually curious how do you guarantee that this happens also for more exotic assets for example yeah definitely well so Arna it's designed so that there can either be settlement uh exogenously from without outside capital or actually endogenously with the lender cap the lender deposits that are sitting there in the pool so for the y v CRV I forget the exact ticker it was um if there did not come an external bid whenever the price of the Dutch auction hits the top lender price bucket it you can match it off and settle the debt that way so um that's one piece of it

but the other piece of it is of course the liquidation Bond mechanism that makes sure that um actually there is a financial incentive so on so there's kind of two things there's two different kinds of markets this is how I like to think about it there's liquid markets where there's very great secondary Market liquidity you can make a quick ARB external Capital loves these kinds of liquidations because it's really easy to close the full trade um but then there's the niche markets and this is where asna really tried to find a product Market fit the long tail of of assets in crypto but these don't have liquid secondary markets sometimes like they you know you don't have um even a good reference price at all

like what's fair a 50% haircut uh is the L like the lender really has to be an expert in pricing and the lender has to be willing to be the person who's uh going to ultimately buy that asset um so that's part of the reason why the longtail um Market has struggled because it requires like bespoke lenders uh that are willing to take that risk um so liveness for us is not a question of like Oracle um or with an oracle we've put all of the incentives inside of the system such that it should work it's just a mismatch of like the right

parties to to like get a certain kind of loan done yeah I hope that answers the question yes could that be more of a problem of like maybe that's just not a market for that and that's fine too you know that's just it just dies yeah absolutely and actually um but the interesting thing is sometimes you don't know if there's a market because there's no way to communicate so one of the projects that I did uh with a colleague of mine is we launched asnam Match.com and it's like it's literally just a bulletin board if you're a borrower and you have some sort of you know borrower request you could put it up if you're a lender and you have like a a something you're willing to lend against you could put it up on the site the site hasn't gotten too much traction unfortunately I

definitely tried try to shill it every time I can but uh it I think it's a discovery thing too because Niche markets like they can exist it's just a matter of like getting the counterparties to communicate and discover the opportunity yeah maybe brry you want to add something on top of that Reg the risk side of things yeah for sure something something we often hear is like longtail assets are like they're not very profitable so it doesn't even make it worth it to take the risk this is at least aa's approach which I'm not sure you know very well yeah so I think it's about 97 or 98% of all uh collateralized uh debt positions on a uh are simply through Majors um and so when we consider like the effective uh

obviously we are there's this contingency on some Oracle um and every all of the associated economic risks um with low liquidity and the sort and parameterizing caps and loan to value ratios and all that um however um when we think about the aggregate market for longtails uh it is still finding its path and I wouldn't say it's so defined right now um where we can see billions uh where we can scale with these longtail Assets in terms of them being utilized as robust collateral assets and and I guess one more note I wanted to mention on the the tradeoffs um pertaining to the lender about how

how it sort of differs from a approach of Simply uh like irrespective of its ability to be utilized as collateral uh this is something found in many lending markets but simply supplying the underlying asset to be lent uh and the guarantee that that can be withdrawn at any point in time uh parameterized through some interest rate curve with an optimal utilization point which determines that there can be sufficient liquidity uh left over so that users can withdraw um this is something that uh is not the case in a in ajna um perhaps in ajna it's more of a buffered approach where say we have some sort of volatility in the underlying asset that's being lent out um we are now

contingent on the Liquidator and lender Dynamics before the lender himself can obtain that underlying asset back um so this in general when we think about lending as a in traditional Finance or just lending um ajna is more so I see it as like you need these sophisticated lenders but the payoff function is not necessarily uh of that of a lender um which is very it's a very interesting approach um but I would not compare it in the same way uh to something like a yeah that's totally fair I mean the way that the system is designed it it does require a more sophisticated lender and typically you want to get paid for that

and you're getting like passive lender payoff and sometimes even less um when you should be getting compensated more um so that's definitely some friction that we've had in adoption on the lender side yeah thank you guys so uh maybe uh getting back to Mario because uh one of P strong selling points is definitely speed but I'm I'm also curious to know like what are the tradeoffs here in terms of like censorship resistance to get this speed I know you guys use for example wormal uh as a messaging layer to make sure that like the message comes from the beef Network to whatever Network you want to get the message to so how can we make sure for

example or that the War mod does not become a central point of failure okay so okay so there are a few nuances to this so I think first of all when it comes to censorship Assistance or basically kind of like sensorship thing that you mentioned just now so we work extensively with warhole to make sure that the data themselves like are not of like censorship or like censorable right so in that sense we kind of like the way Wormhole is structured is that there are 19 Guardians they are thoroughly observing are kind of like apend that I mentioned earlier in the part of the in the panel which is called pitnet and basically kind of like as an observer of the network all these 19 Guardians need

to come to a consensus two-third of them which is like 13 of the 19 Guardians available to make sure that all the data are indeed coming from pit and also at the same time kind of kind of like they they can make sure that kind of like all these data are not kind of like set yeah censor kind of like sens censorable right and at the same time when when it comes to the likess of the things that you mentioned just now um we work extensively with with Wormhole over the past kind of like three years make to make sure that they are kind of like the primary um kind of like Bridge for a lot of our data coming from pitnet to whatever kind of like

chain that we support to this day right so with regards to kind of like the life liess of course there are kind of like problems maybe that you know recurred with Wormhole maybe in the past whatsoever but they've worked extensively very hard to make sure that these problems don't like never occur again with regards to like like Oracle liess and whatsoever and we also make sure that we can make sure that kind of like our Oracle or pit Oracle Works to it kind of like best liess possible as well to make sure that kind of like we can bring the best data quality and in terms of likeness and also at the same time to all the users that are currently using p because right now we have about 400 different applications and all these

different applications live on 80 different chains and a lot of Protocols are relying on pth and we want to make sure that we can deliver the best data possible with regards to kind of like expectations of AI these protocols so yeah with regards to liess we work extensively with all all of our partners to make sure that liess is something that we can address directly head on thank you very much Mario so uh maybe following on this point I would like also to know from Torin but also this question is open for all of you guys uh if you manag to see some common like mistakes that lead to like liveness failures maybe you had to also deal with some like in your own protocol with some liveness uh issues that could it be like

this could be for example that like a liquidation not happening for David Cas this could be like an answer not coming and like somebody complaining or being hppy about it for an oracle uh or maybe also like for a very like if you saw some situations where the Oracle was effectively like preventing something from being liquidated like I would like to do a quick tour and see starting from tan like how can we prevent this mistakes how can we be sure that like these things don't happen and like do you have experience with these kind of things happening for example yeah so I think the most common cases that I know of are just when you have really bad Network con condition and then it just becomes super expensive to post updates um and in in a way the internet becomes a trust

assumptions for oracles uh well I mean like ethereum condition not yeah but yeah yeah I guess um but yeah so I mean that's obviously a just a cost problem um and then the other one is that if you have so in order to not have weird outliers um typic or sometimes data is kind of uh cleaned so that you have outlier detection and stuff like that but of course sometimes there are actually outliers in the data right and so I think this is another dangerous part um I mean I think the most uh

well-known one of this is that when we had the Luna crash there was a chain link Oracle that just had a minimum price set right which usually you don't expect your asset to go down by a th000 X or whatever it was but sometimes it happens right so I think basically you just need to be careful um whenever you're uh aggregating your data in some way you want to avoid outliers but you want to make sure also that in the cases where these are actually true um that you're also handling that so yeah it's a hard design question um but yeah this is the main thing that that I can think of

right now absolutely thank you thank you very much for the answer maybe I wanted to clarify when I meant the internet I was saying we often talk also about like Geographic diversity of validation because it's really important to guarantee liveness like if the internet were to go down in the US that could have an impact also on the ethereum N Network so that was what I kind of meant and maybe on this point uh like does geographic diversity count also for you guys at p uh because of course you have a network running yeah so absolutely so I think with regards to GE Geographic diversity as I said so a lot of our data providers are actually also validators of the network which is the bit net kind of like app chain so a lot of these kind of like data providers pretty much are

spread all over the world we have a lot of data provider space in the US of course but also at the same time we also have a lot of data providers based in Europe Asia and so on and so forth and they kind of like spin up their own validators in different parts of the region as well so you can take a look when it comes to kind of like geographical diversity I mean validators are definitely kind of like are one of the strongest suits when it comes to kind of like Geographic diversity so a lot of the data kind of like the no validators are Asia Europe and then us and pretty much all the parts of the world so yeah I think with regards so geographical diversity does something that we really take things really seriously and we also want to make sure

that we can keep continuing make sure that you know we have as much geog geographical diversity as much as possible in order for to make sure that we can avoid uh from you know B things from happening thank you Mario so I guess um starting from this we could also talk about your case Brenda because I would say in your case we don't have no to validate so I I don't know where the reporters are but I I I believe uh for sure Europe the US and Asia and and that's mostly because of people even though we don't do kyc or anything like this when they they just required to stake um sometimes they do ask for help and so then that's what we know like

okay maybe we don't understand them like we're trying to some things get lost in translation and and that's how we sort of know where every where some of them are um but it is an open system so for us it's very difficult to mandate somebody needs to open up something you know it's like it's basically goes back to rewards it's like if we offer enough rewards where is it cheap enough for them to run this and be competitive and be able to be able to earn those rewards so absolutely it's important but we can't enforce it yeah of course but as long as the economic incentive is strong enough I guess it makes sense to just some people to assume that will someone will come and if they don't maybe it's because there is not a market for it it's not relevant enough so yeah

um so continuing with David uh did you have issues with like people like getting very angry for example because liquidations did not happen or something like this or somehow like the protocol handled this thing like gracefully uh yeah definitely there were I think I'm thinking of one instance in particular where our deployment on arbitrum we had um some loan I think it was like cow usdc uh uh pair somebody got liquidated unfairly um the the person who liquidated the loan did lose the liquidation Bond um but then unfortunately what happened was nobody was paying attention so we did actually

uh make deals with certain parties to actively monitor um certain pools and certain networks and participate in liquidations to you know try to boost the liveness of that and make sure that these opportunities are spotted and competed for and like actually you know done but in this case it was a pool for a relatively unpopular token on a network where we did not establish any deals with anybody for with you know on sorry I'm mincing my words here um and the person took a a pretty severe haircut and uh it it it was unfortunate as a result though a few more people started paying attention because the

person who ultim ultimately got the collateral made a a very nice profit um so you know nature kind of heals itself but not without its casualties unfortunately so there's definitely a bit of like a aliveness um issue with longer taale assets uh and newer blockchains but economic incentives to the rescue somehow yeah yeah exactly so it's not really like uh I don't think even having an oracle would have um solved that I think it's just a matter of um are people aware that there is an opportunity here and in many cases you know there's just so much going on that they're not aware um you know there's a

million layer 2s there's a million protocols there's you know how do you get the limited amount of participants in our uh industry to to Really participate yeah thank you so uh maybe going back to Barry uh I'm actually curious if you have some criterias when considering oracles like like do you have some sort of like proper scoring for oracles to make sure that they guarantee uh like liveness they guarantee like the correctness and like do you manage also like how important is livess in that scoring if you have one example so I wouldn't say that um we definitely look at uh historical data um with respect to uh specific blockchain networks uh sorry uh Oracle

networks um and sort of look at instances uh whereby we have seen issues um and then sort of gauge accordingly um obviously uh when it comes to the Oracle the Oracle Network itself um they each have their own and I mentioned earlier how they each have their own uh respective consensus mechanisms for the most part um but I also mentioned how vop aggregations and um basically we this data in in a closed Source sense is being uh gathered from um and in this sense we have seen instances uh whereby uh Oracle

providers have been let's say uh a vwap aggregation uh has been was incorrect uh on a chain link Oracle back uh for the WRA stake e eth uh ARB feed on arbitrum due to some sort of uh sandwich sandwich attack simple sandwich attack that occurred on mainnet um as well as um we had a pool on Venus with SNB andb um where we there was a binance Oracle being utilized uh and it turned out that this B binance Oracle was was pointing at a univ V3 pool with $10 of liquidity as opposed to the one with Millions um

and then sort of the way that works simply someone uh Swap and then went price went to infinity and it sort of stayed there because the traditional Arbitrage assumption through univ V3 pools um for the price to be reverted down to its market price value didn't really exist here because the pool was so small um and so in these instances we sort of gauge and optimize accordingly uh as to how we actually determine Oracles in general um maybe also relating to tuwop oracles as well um and another thing I wanted to mention like fallback mechanisms that are that are

enshrined uh within the protocol um when we notice uh compound uh V3 um utilizing tuwop oracles as a fallback for uh a chain L Oracle we had maybe a year ago uh where the you price of uni pumped like 40% in a few blocks um however there was this fallback mechanism enshrined um where if the price pumped too much then we sort of revert to this fallback um and then they're acur bad debt because of mispriced underlying assets um with respect to the General market so I guess in these instances um when we think about scoring blockchain networks it's

more about like and and something that we are will be in shrining with risk oracles how we can have real-time uh risk analysis baked into uh smart contracts effectively um determines like this General uh how how can things be parameterized in a way that takes all of these things into consideration thank you very much Barry so I think we really jumped into one topic that we didn't cover so far which is the subject of onchain oracles because somehow like uh they open doors for price manipulations and for many other Vector of attacks but at the same time they look like the ideal solution from a an ideal perspective because you

really want to have everything transparent on chain so maybe this is an open question for whoever wants to take it um I guess my question is more about should we focus more on having everything on China as possible which I guess this also applies to you Brenda for example uh because somehow your Oracle is fully onchain but relies on a human component uh or should we try to get as much as possible things to be deterministic and algorithmic but still onchain or maybe offchain is just a trade-off that we have to accept and like kind of deal with I think it goes back to the data quality and data definition um it happens to a lot of projects as soon as you get enough liquidity and a centralized exchange

picks you up no matter what you do the dexes are going to dry up and it's going to be way easier to to manipulate the price there if you're only pulling from there so I think um in general it goes back to liquidity and and how stable the asset can or how how stable of a definition you create that makes it as expensive as possible for anybody to manipulate it onchain and offchain and I think merging maybe even both types of uh data could be helpful depending on what you're doing um whether we we know the I think the dream in general and the reason that a lot of this has been developed is because we want a a real alternative system to what we already

had I mean you know 2008 and Bitcoin didn't come up because everything was happy gol lucky and so yes the dream would be like we have all this liquidity on chain and we have all of this robustness straight into this independent system unfortunately that's not what happens in real life and I think for as as long as everything continues to centralized even to you know like binance and coinbase um we're going to need better better aggregations and better methods even modeling methods to to mitigate the risk of what happens but then you know that goes back to um we wouldn't go as far as censoring what the user ask but

we always advise them and we always try to do our best to educate them into please do not use like one spot price for anything that you really want to you know secure any amount of value that is worth you know yes we we have the same issue with curve like we have some built-in oracles which uh work decently well but somehow people they end up to do the wrong thing every single time and they use the spot price Oracle so yes let's not get off track but this this is a common pain and may maybe uh getting continuing on the onchain side of oracles David could asna to some extent become a nonchain source of price maybe powered by the moment at which

liquidation has been has been executed somehow could it also be an additional Oracle Source maybe to get some safety rails or maybe not I think yes um but the answer is nuanced because the system and its participants don't produce a live price constantly so you know the lender will deposit at a price discount to market the Liquidator will purchase the collateral at a discount to Market so the price that you're going to get out of asna is always going to be some discount to Market but there's no way to deterministically get like what exact discounts Market you always know that

it's just slightly below the actual value of what it is so you can certainly use that data as like um an additional source of data to like maybe validate a true market price so if you have like an oracle that's showing that the eth price right now is like like $3,000 um or like Maybe not eth maybe because eth is like super liquid and there's a million sources for information for it but like I don't know like uh an the optimism governance token or something uh well guess what now that you have an Asha market for it and a recent liquidation you know that the current price is valid you have some additional Integrity that you can build

into the Oracle by using that data is it worth doing that that's a different question is you know how complex is it what's the overhead does it make sense maybe it does MHM thank you David so uh getting back to Mario um I'm actually curious running out of time so I ask you to be brief because I want to give the opportunity also to other people to to talk but how come you decide with Pete to go for a whole like to spin up a purer network like it's a Solana Forex I think so how does that work why and it work compared to just some off chain Source yeah so initially the the idea from pitnet actually came from I believe it was around 2021 2022 when salana pretty much had

its a lot of congestion especially with the NFD mints and all those things happening at the time and some of the Oracle transactions that we submitted on chain especially for a lot of the protocols that were land on P couldn't land on chain so what happened what ended up happening was a lot of these protocols that were riing on the pit price updates they couldn't pretty much get price updates on time and it's also affected with a lot of their liquidation with a lot of their kind of like matching engines and all those other of things that could potentially have had a super impact on their protocols so what kind of like kind of like sparked the discussion of kind of like this pit net was pretty much coming from kind of like

salana down on all and all those things coming from the 2021 since then salana has become much better but yeah like kind of like that is kind of like what initially sparked the discussion and also at the same time why we brought bnet in the first place thank you very much for the Insight on why you went on on train approach so we have 20 seconds left so in a couple of words uh question for toin and B uh one piece of advice of what not to do uh when working with oracles to make sure that the state censorship resistent and like yes and I guess that we can wrap up so definitely don't use the spot price uh I mean actually this is a bit weird because most offchain oracles actually give you

a spot price that's just aggregated from multiple sources right this is the vwap as it's called but really it's a spot price so I think that's also something interesting to think about is that like does that make sense for you it really depends on what you're using the Oracle price for right and so maybe uh using something like a Time weighted average can actually make a lot more sense depending on your use case um so yeah I think basically think about what you actually care about and it's probably not the spot price right and then use the Oracle data accordingly very one sentence um sorry

yeah thank you B let's do a round of applause for our pelist [Applause]

Related talks