Oracle Use in AMMs

Oracle Summit Buenos Aires 2025 · 18 Nov 2025 · 34:35

A panel on how oracles and AMMs depend on each other, moderated by Dominic Bruetsch of ChainSecurity with Hugo Volz Oliveira (ScopeLift), Aleksandra Fetisova (1inch) and Fahim Ahmed (Flashbots). Starting from the Moonwell mispricing incident, they note that responsibility for bad oracle data is unclear and argue for fallbacks, multiple oracles and insurance-style cover. They weigh onchain TWAP pricing, Flashbots' work on bringing prop AMMs, which reached about 40% of Solana volume, to EVM chains with a priority lane for price updates, and 1inch's Aqua approach to liquidity. The takeaway: fast is not easy, and oracle complexity is easy to underestimate.

Speakers

Topics

From Oracle Summit Buenos Aires 2025, hosted by Stable Summit.

Transcript

Welcome to this panel about Oracles and AMMs. I'm super excited to be here on stage with our panelists with various different backgrounds. So, I'm sure we'll have very interesting talks with many insights we can share. I hope there will be some takeaways and learning for you. Um, let's start with the panelists quickly introducing themsel. Maybe if you can tell us what you're working on, what you're passionate about and who you are. Hugo, please go ahead. >> Very well. Hello everyone. So I'm Ugo I've been uh working at Unifi for almost the past couple of years and I'm now joining Scope Lift web free engineering um studio. We have done a lot of active work on on unis swap for example also on

tally zkync and in the past on optimism agura and we are also the developers of umbra which was one of the first implementations of stealth addresses well the first implementation of stealth addresses on ethereum back in 2021. Uh hello everyone. I'm Da Sasha. I'm leading BD right now at 1 in contributing to web3 since 2016. I believe um the most passionate uh thing in the D5 is basically freedom. So that's why I'm here and this is this what makes me special and basically not me but the industry special and one in is the biggest D5 aggregator in EVM space. We're also providing the B2B

services, but I I think we can touch a little bit more and dive deeper later on in the discussion. Thanks a lot for having us. >> Hey everyone, I'm Fahheim. Super excited to be here. I'm currently a research engineer at Flashbots and previously worked at Bass and Axelr and currently what I'm working on at Flashbots is bringing prop amms which have seen 40% of volume market share on Salana to EVM. and I'm just super passionate about block building and making markets more efficient. >> Great. So, we have builders, security experts, and generally people passionate about the topic here. So, that should be great. Now, since I'm a security person myself, please forgive me that we start

with some recent incident around oracles. Um, unfortunately, recently we all know there was this Moonwell hack, right? So there was a problem due to incorrect pricing information and sadly some money was lost. So let's investigate a bit on what went wrong. Could you please start introducing what happened first and then uh how we can prevent such mishaps in the future. >> Yeah. Yeah definitely. So like at the root of the cause was a mispricing on on the chain link oracle that monuel was using for the stake of and the rest of um I haven't yet understood what happened with chain

link. I'm not even sure that that information has come out but it will be important to to get some clarity on it. But overall it just highlights all the issues that exist when when very complex systems also rely on very complex oracles. And um also back in in 2021 Vitalik made this weird proposal for unis swap to become the token for an oracle function that uh unis swap will have. So uni will become the token for an oracle function that unis swap will will become and that idea then just died on the governance forum. But I think it would have been really interesting to to continue exploring that as having a very robust system become a complement for very high value transactions that can

happen um typically during exploits but also if we are talking about all the institutions that are trying to adopt the EVM as as a new base layer for for financial transactions to have more trust in in what they are doing if they are settling yeah figures in in in the seven the seven figure um yeah transaction >> this really makes it clear that more research is needed more work on uh resilience and transparency here. So should we when we use oracles should we put additional safeguards in place like preventing the use of price spikes or too rapid changes in price. So what are the pros and cons here?

>> Sure. Anyone wants to go ahead? I'll just say that the issue then is balancing out user experience with with then the issues of yeah making something potentially a little bit less permissionless. Um if you are adding a bunch of fallbacks to to to the system but then yeah if you are just trading then you can use perhaps just chain link or p or whatever but suddenly if the trading volume on a on a single transaction even though the moonwell thing was repeated transaction so you'll need to think uh on how to to to to make sure that yeah it will work but then you'll be able to complement it with something that was more robust.

>> Yeah. So we see there's no transparency on chain if we use like an offchain aggregator like chain link. So, how could we leverage AM AM or onchain price information to >> Yeah, I mean if you don't mind like right now some basically as an example lending protocols can use uh onchain um AMMs as an oracle to basically um identify like how does it work? they just uh checking the uh the major DAX pool like let's say USDC to ETH uh on the on the price and that then they identifying that time weighted average price if this uh basically order has to

be liquidated or not. So that's this is an alternative version that could basically maybe bring uh we can bring this alternative to the centralized oracles and using this decentralized amm this high level. So maybe another angle here and when we think about oracles we mostly think about oracle returning a price but could an oracle also return more information maybe more information about underlying state how this price was determined would this help the consuming system to form a to reason about the validity of the price >> I think that's that's an interesting idea it will depend on the logic on the other side if you were able to make the

system understands by having the context on how the information was generated if if that was then legitimate because for example on the moon wellac then what [clears throat] happened was that I think on the rest pair they changed the price of fifth to to the orders of like 100,000 or something and so you just yeah crashed the whole um math behind the calculation of the collateral um but in the case in that specific case what were you implying that the oracle will have to justify how that price will be in the orders of 100,000 something for one >> potentially. Yeah.

>> Yeah. Yeah. Yeah. Definitely that will be an interesting research area. But even even two apps as you were saying like they have been around for also since 2021 perhaps at least 40 years but there's still a lot of issues with that like they are not magic bullets and uh and many folks really believe they are worse for manipulation than than using volume as as the weight. So >> exactly like volume could be one indicator. So but generally what's your opinion here? Should the Oracle be responsible to do this and only deliver a valid price or is the Oracle only responsible to deliver many informations and the systems then need to work with that data to see if the price is

reasonable? Which side are you on? Yeah, I'm I'm typically on on the side of simplicity here on the oracles because they are just so important for everything that that crypto is trying to to achieve. Um, but of course like there will be a limit to the simplicity you can have in the system. So I think this is more about like how solid will be the research around it and especially like how how effective is the implementation of it. I wouldn't say there's like one design that's particularly better than other in abstract. It will be more about how how you make it happen.

I'm I'm if you don't mind I can jump in here like I'm still on this kind of self-custody defy world where we are trying to not avoid using any uh custodial solutions like oracles and um I don't know if you heard like yesterday we just released this aqua protocol which is kind of bas basically acting as an AMM um and it's a completely different approach where you don't even need to put uh your liquidity anywhere you just keep your liquidity in your wallet and and then just um choosing different strategies that are on the market and once the you want to basically move to that strategy you just do kind of exceptions to from your wallet to play with this strategy and

then like the money is not even migrating anywhere so basically you are acting yourself as an oracle to generate any strategies from your wallet so and it's another very different approach that we are now kind of trying to put on the market and generating this maybe if you want to check it out and answer the question I can >> yeah I'm sure I will have time to talk about this later on thanks a lot for the interesting insight so before we move on let's uh quickly switch to the other side right so far we are trusting the oracle but what about Oracle extracted value if the Oracle would try to do that then it kind of falls back to the protocol to implement some safeguards before consuming the data what's your

take here Yeah, definitely. I'll say that it's mostly an issue of whether the protocol can Yeah, like on the one end the incentives on the on the oracles doing that will be negligible but there will be many people trying to like of course exploit oracle for the gain there. Um but I think there are like two uh stakeholders here. So the first is the oracles trying to save their reputation and being as as robust as possible because even with the moon well incident there's still a lot of uncertainty of what happened with chain link and and chain link is great beef is

great they're fighting their fight um they have their audiences and and their use cases but then like from the perspective of the oracle itself it was problematic that that chain link was caught in this and and maybe users only lost $1 million but then Moonwell got stuck with like almost 5 million in in bad debt And so that's bad for for everyone and it's unclear where the responsibility lies here. Uh and so just from the perspective of an Oracle um like from the the perspective of of the Oracle builders themselves, it will be really important that that these responsibilities were clear and there will be even a market opportunity for for the oracles to get um maybe some

kind of cover or even some kind of of insurance but so but so cover um to to like build some trust on the system here and and for example also a launch to their app um two days ago with like 1 million in in user deposit funds. So we're getting all these um fallback systems that we have been having in trad for a long time also um to to crypto and and that's good for what matters which is the end user. On the other end what we have here is then like the protocols themselves the lending protocols or any other kind of protocols that that require Oracle use to to make DeFi relevant and interesting and not just and not just a bubble. And so within that I think then that the fallback is

on the one end again cover and and some kind of insurance be like themselves the protocols running their own insurance funds like like um per sex used to do back in the day and still do. Um but then on the other end just making sure that they go really deep in in their protection and and everyone was shocked when balancer got acted also a couple of weeks ago because they have add so many audits and they use monitoring and they did everything right um which they were doing but still there's never enough when when the incentives are are there and uh with oracles being so powerful they will always be a major target for for manipulation especially if you have all these dependencies trying to bring offchain data into into the on train

world. >> Yeah, >> I wanted to ask like a question here actually. What's your thoughts on using multiple oracles? >> Yeah, that's a great question. I think that's like the quick win out there and one of the implementations [clears throat] will be that one that I was mentioning. For example, you can use chain link and then you'll use an implementation of using unis swap as as an oracle just for like I value transactions and this could be written in the code or the users could select whether they wanted to to to to interact uh with higher latency with a protocol to so that they would have more u if more more reli or higher trust in in in what was happening as opposed to a user will privilege efficiency for example. But then other implementations will be able to to be

done. Like right now only two major oracles are there but I think the the market is ripe for for disruption because it's such a a complex topic that someone else is going to come up with with a fur. Great. I want to highlight one important point you made. You pointed out responsibility. It's unclear who was responsible. And this sounds super dangerous to me. Right. If it's not clear who is responsible, everyone probably thinks the other side is responsible. And that's super dangerous for the whole ecosystem. So there's definitely more discussions to be had around this and clarity going forward what we do.

>> Uh so now Fahim I heard you were working on a very hot topic recently prop AMMs. Uh can you quickly start introducing this to our audience before we dive in with some questions? >> Yeah absolutely. So to give like a highle overview of prop amm it's basically a AMM an AMM but a market maker is actively managing the liquidity and the prices of the pools in that AMM which kind of sounds ironic considering an AMM stands for automated market maker. However, on Salana, this has gained a lot of traction where it grew to over 40% of volume traded like the market share. And this is because it's

giving users like better execution, better prices, and giving them kind of more uh like a better execution that's kind of similar to centralized exchanges. And being curious about, hey, this is gaining so much volume and so much traction, I kind of decided to look into like why isn't this currently on EVM chains? why is it not on base unichain optimism? And it turned out that um one of them like from my research one of the main reasons for this is because how expensive it is to do updates on EVM chains on Salana. you're able to update

the uh prices or more specifically a price curve through with only like a 100 commute unit uh compute units and you can think of compute units as like analogous to gas but on EVM that would be around like like 5,000 to 20,000 uh gas units uh depending on how you're using the SS store uh up code. Um, that's kind of like a highle intro, but basically what I've been working on is bringing a way to have these updates for cheap, the price updates for cheap, and more importantly, make it so that um, malicious or toxic traders or

arbitrageers cannot frontrun these price updates to pick off a stale quote. And so doing that by adding a priority lane for updates. >> Nice. That sounds super good. So basically there are fundamental architectural differences between Ethereum and Solana. You found a way around this. Um how is it looking on the offchain side? Um when aggregating offchain I guess you are not limited by any of the onchain constraints. You mean the the way how we are getting the the the price rate or or what?

>> Yes. Or the So you're not limited by any block sequence, right? Or by any time delay. >> Maybe you can help me to to to what do you what yours? I'm not really good in I'm a blunt girl here. >> Like sort of comparing like RFQS or like centralized exchanges. >> No, no, I was just thinking that since you aggregating offchain, right? You can immediately use the most up-to-date price and just >> Oh, but we're aggregating onchain. um like every like one in is aggregating all the data on chain. >> Okay. So you're also limited by this on Ethereum.

>> Yeah. Yeah. Yeah. Ethereum or right now in Salana. Yeah. So I think this would be like a great point to kind of like mention one of the benefits of having like propm um as like an addition to aggregators is um say for example if I'm a trader and I want to um do some sort of logic in real time like maybe I'm writing a smart contract that is um checking certain price of an asset and if there's like a price discrepancy between two different pools um or two different price uh places. I will do an arbitrage between the two. If I wanted to do that on chain, which is commonly seen with a lot of uh spam transactions

on base, um a lot of arbitrage transactions on base, which kind of have like a weird uh function name if you look on base scan. Um, if I if I want to have like logic that checks these like for arbitragees on chain at runtime, I can't really do that with aggregators. I can't really do that with RFQS. I can't do that with existing systems outside of AMMs where price discovery can hap is done on chain. And prop AMMs kind of take that idea of, hey, how can we do price discovery on chain? How can I check what the price is at the runtime of my transaction um and make it so that these prices are more up to date with centralized

exchanges and what the market maker is uh doing >> and this will will be available like I'm really curious on on that part because you know we are like aggregating this liquidity we're providing the uh better rates on both uh on most of the popular EVM chains then we came to Salana and now we're using basically Jupiter to to do it properly and now you mentioned it and this is kind of something that we need to talk outside of this conversation but again what can you dive a little bit deeper on how you're getting this pricing on Salana and then bringing this this price to Ethereum what is the >> so it's not that the price is coming from Salana and being ported or bridged over to EVM um it's more like the market

maker >> okay who it's like a intent like the way how intent works or like >> similar. It's like the market makers updating the price based off their internal metrics or internal uh >> I see. Okay. Interesting. Cool. >> Yeah. >> It's more about the design, right? And the idea to move over. >> Um so with this new design, are there new security risks we need to be careful about? Um how does do we still need to twap protection in this context? I guess it defeats the idea of up-to-date prices, right? So >> yeah, >> what do we do here? So one of the concerns is how do we make sure that like users aren't like abusing this priority lane because if you have this dedicated block space at the very top of the block that gets executed first

before any other transaction in that block there might be some concerns of like if maybe some arbiter or some toxic person or toxic trader might be using that priority lane to actually frontr run other market makers and use that dedicated block space in such a way where um it's not actually supposed to be used for like things outside of like >> I'm super worried about that and I fear this would happen. >> Yeah. And so that's something I'm still researching into. Um we have like a solution where we have like a global storage smart contract. You can think of it as like a global dictionary and we're making it so that only transactions

specifically to that smart contract go to the top of the block. Um, and this means that if there's any other associated logic like if if they're calling that smart contract, they can't bundle any associated logic um to do like a like a swap at the top of the block. So that means it's just the up price update at the top of the block. >> Okay. So instead of swap protection, we would rely on this kind of uh So other things to be careful about other learnings that will have to be made. Cool. Um Hugo what do you think about the security of this? What's your general view of propm on EVM? Yeah, like the first thing that was coming to mind was that like one of the major issues of of the top approach is that it will fail

under market stress and and that's very bad for the principal use case of of oracles in in this context on on the trading part and so this will make definitely markets more efficient which is key to to get adoption and and and to make the finance part of D5 u relevant and and material. So that that was the interesting part. But then I was trying to understand like what were the pos possible dynamics of AMM sorry of of market maker um competition or or of of malicious market makers trying to to to game this system and how are you designing and researching in in this regards?

>> The question being to prevent malicious market makers from like abusing such a system. >> Yeah. Yeah. Because for example, if in our particular market the market maker has the majority of of volume, then they will have a way to potentially yeah manipulate that that market. And one of the nice things about DeFi is that it became so easy to make markets for the long tail as opposed to just rely on the markets for the big pairs on on the sexes. And so I'm I was thinking this could be problematic in that sense of of yeah democratizing liquidity. >> Yeah, absolutely. know that's a great question and especially like a toxic market maker could actually be a problem in the sense where maybe at one block um they give a really good price but on the block right after that they kind of

change the price they updated to something that's terrible and so and then if the users is accessing that prop amm through an aggregator then they just executed a trade that actually ended up having a terrible price because they were lured in by a quote that was initially really good. And so it's like a great question. And so the way that this could be tackled, this is a great question and something I'm still researching into is by having a aggregator kind of set the market structure in a sense where if they see that the quoted price is very different from the actual executed price, then

they get then that market maker or that propm gets penalized and might not um and might soon be kicked off from the aggregator's platform because they're abusing such a system and so there's approaches like that. >> Yeah, makes all the sense like slashing some way. >> Um >> yeah. >> So we just discussed around fundamental differences between EVM and Solana mainly about the costs of updating price and the speed. >> Are there any other considerations that differ across different networks? Yeah.

So, one thing they mentioned I actually didn't touch on uh I touched on briefly but I need I should touch on more is the speed side of things because on Salana Salana is extremely fast and it's actually different from uh EVM in a sense where like EVM they have discrete blocks but on Salana it's a continuously streamed architecture where like a 400 millisecond slot um is actually made up of a ton of like mini shreds like an upper bound of 32,000 in shreds uh per slot. And this means that you could potentially have like updates or trades happening like every like 80 milliseconds, for example, or even faster. Um

whereas in EVM, you have to wait for if you're using flash blocks, you'd have to wait for the full 200 milliseconds um before a trade can occur or before like a trade can be executed. Whereas on Slana, it can be like extremely fast. Um so that's like one of the things I wanted to also point out in terms of the difference between Salana and EVM that's made trading really successful on Salana. Thanks a lot of the insights and just wanted to mention you have a very interesting blog entry around this topic comparing how this works on Solana on your work for this on Ethereum. So everyone who's interested I can definitely recommend to read that.

>> Thank you. Let's continue with the youasha. So your new product, right? >> Yeah. A 1 in aqua one in aqua just released. Yes. >> And so you're not using oracles directly. >> No, no. As I mentioned, yeah, previously. So there is a big like difference. You want to answer? Go ahead and then I can dive deeper. >> No, no. This was just you hinted in the beginning that you have more to share. So >> yeah. Yeah. Yeah. That's that's the thing that basically why we are all here right now is uh we're trying to reimagine the way how basically the liquidity works and this aqua is the way how you can get the liquidity you can gather liquidity all over the market through just uh playing the different

strategy from your from your own wallet and uh this is also allowing you to not basically uh so you don't have to log the liquidity in a different wallets you play with that with with your liquidity on a different chains and this is high level eight right now it's available only for the devs uh so if you want to check the white paper and read and maybe contribute even more to improve the the way how what we built please go ahead uh go to GitHub do the pull request or just mention something in the in our chats this is uh yeah this is the something that I want I really want to share here in the audience >> great so we've We've already talked a

lot about [clears throat] Oracles AMMs, how AMMs can use Oracles, but also the other side, how AMMs can be used as Oracle. Um, is there any particular aspect we haven't touched yet or any aspect where you expect a change in the next five years? >> Do you want to go? >> I can I can try to I can just share one >> one, two, three. [laughter] I can just share one experience that we first with the like we um we all talk there is a big trend on the market which is tradefi and when we're talking with the thread instit treadf institutional players they are not asking you about the TVL they are asking you about the

stability of the service about which custody are you using about the compliance part and uh oracles potentially and should play a big role most probably by just bringing more thread flying into the industry. Yeah. But this is uh something that we uh not against but trying to avoid. And I would hope like in five years from now we will find some um solution which is kind of synerggetic or there will be just two ways where like play player like me going to one of the DeFi or like bank and neo banks can choose why they he wants to go with a oracle game or just DGN D5 game but it's I hope it will be

available uh both so I don't want to like disrupt the market but this is something that hopefully will appear for for the Thank you. Makes sense. >> I was thinking about what Optimus was saying and I was thinking of something maybe someone is is developing this or maybe it's a stupid idea but I was thinking there was like could be interesting to to discuss which will be like one of like the most important mechanism to to like make markets more efficient is is arbitrage. And currently we are talking about financial markets here. But on the Oracle part we are talking about data markets and right now we have like two

major Oracle providers but potentially there will be more and that market will will have more more participants. Um but in any case whether we are talking about these participants or just about competing data feeds and using multiple oracles or having even the AMMs themselves as the oracles or or even the market makers themselves as the oracles. we are now talking about a more complex than market for data. Um and eventually like if these data fails due to to manipulation then the prices get all all up and the arbitrageers come in and solve for the prices. But in the meantime you have like destroyed market value um in potentially very pernicious ways. But so if you could have arbitrage

for data uh and and perhaps like a meta protocol or or some or some just meta [clears throat] markets for for for these data arbitrageers to go in and say yeah like there's a discrepancy in these two data feeds um even within this block and so like you can have out mechanism for example um because then then the the data arbitrageers will go there will stake their reputation to flag something in the system and and if that's uh will have resulted in poor execution then they will be rewarded and vice versa. Um so this could be an interesting approach to to to do some research on as well and and eventually imp implement because yeah it seems it seems could be could be could be a nice way to to solve part of

the problem. Yeah. So I definitely get the impression that oracles are one of the overlooked areas where people think we have it already. It's easy. It's ready for use. But as it turns out, it's absolutely not fully true. There's still lots of research to be done. >> Yeah, it's definitely is being overlooked by the >> Yeah, because everyone thinks of the ultimate Oracle as like the single source of truth or or the master source of truth. But on the one hand, maybe that's impossible because there will be not one source of truth even on a on a objective market. Um, and then on the other end, perhaps you don't need to aim

to be that beautiful source of truth because markets have been proven to be very efficient mechanisms in in in solving for what's true for the many at least. And in the context of of this problem that's what we want because um it will it will solve most of the like traditional maybe some edge cases will fall out of this but most of the traditional angles vectors of attack will be solved by by such an approach. So how do we bring this problem to the people's attention right because it's a fundamental building blocks of many of the systems and if anything goes wrong with oracles we have a big hack exploit or something that went wrong and lots of

value is lost and not only value is lost but also people's trust in the overall >> Yeah. So how do we identify these key points and make people aware of this so that there will be some push and initiative to correct this for the future. >> Yeah. No, I'm aiming to persuade Optimus to write a blog post about this. So >> yes, you write the blog post and then we push it soon. [laughter] And I also wanted to give you the chance to talk about what do you see that the most important aspects to change in the next five years or aspects that we haven't touched on yet.

This is going back to topic of having like faster blockchains I guess. But one of the things I see in the future specifically with DeFi is how can we make trading faster because in treadfi like trading is done in like milliseconds microsconds like it's just really fast but right now on EVM like like our blocks are just as fast as 200 milliseconds. So bring that down to like like faster basically is one of the things I want to uh emphasize will be pretty important. >> Amazing. Thanks a lot for all this very valuable insights. Um any takeaways you want to share with the audience? Any takeaways you want the audience to remember from this panel?

>> I'll just say that fast is important but fast is not easy. And so everyone that's building and optimizing for fast, they can't forget that if they just optimize for fast, then they will be known as those that potentially were responsible for a major exploit. And that's bad for everyone. I'm sure Optimus is not on that side of the of the curve, but many people out there are. So >> I can just say we all responsible for the first billion of users. It doesn't matter centralized with oracles or not. just go and educate one person today on how to defy, how to use oracles, how to install the wallet so we can make our community bigger.

>> Great. I guess from my side it's uh never underestimate oracles or never underestimate the complexity of using oracles or data from oracles in a protocol. Thank you all for being here today. >> Thank you Dominic. [applause]

Related talks