See all Bankless transcripts on Youtube

youtube thumbnail

DeFi 2.0: How This Changes Everything with Paradigm’s Head of Research, Dan Robinson

1 hours 10 minutes 54 seconds

🇬🇧 English

S1

Speaker 1

00:03

Welcome Bank of the Nation to State of the Nation where we dive down into a topic that is currently floating around the world of crypto. This week on State of the Nation we are talking with Dan Robinson, head of research, GP at Paradigm. And recently across my Twitter feed I saw a tweet thread from Dan Robinson about how there are 5 big ways that Uniswap X changes the game for swapping in DeFi swapping in crypto and I learned a ton in this tweet thread and I thought it would be super useful if Dan Robinson came onto the show and explained each point himself here. And so that is what you are about to get here today.

S1

Speaker 1

00:37

Because Uniswap X doesn't just stop at Uniswap X, it also brings with it a bunch of new changes for the DEX landscape that impacts so many other things across DeFi, across Ethereum. It impacts bridges, it impacts roll-ups, it impacts MEV, it impacts market makers. And so there's about to be, perhaps, if you believe, in this new intent-based paradigm, which is something that we will define in the show, it flips a lot of what it means to be a dex, or to be a dex swapper on its head. So you're going to learn about all of these details in this coming new meta for DeFi, as well as what it means for you, the user, you, the swapper, and also perhaps you, the LP, if you are an LP in this world of DeFi as well.

S1

Speaker 1

01:21

And then we also open up some other doors as what does the future of Lping yields in Uniswap look like? What can Uniswap v4 do for LPs? Well, Uniswap X is focusing on swappers and why swappers and LPs are the 2 parts of a DEX that need to be held in the highest regard and why everything else is secondary. And then also we open the door to what Flashbots is working on with Suave, which is at the very end of this episode.

S1

Speaker 1

01:47

Overall, you're going to learn a ton about the DEX landscape that is changing quickly, both with Uniswap v4 and with Uniswap X, as well as some other things in the intent-based world, which is a hot topic in the DEX and dev landscape. Quickly, before we get into our interview with Dan, Uniswap is a main focus of this episode and Uniswap is also a sponsor of Bankless. Bankless also holds a supply of Uni tokens, which you can see at bankless.eth and also bankless.com. Slash disclosures.

S1

Speaker 1

02:15

So let's go ahead and get right into our episode with Dan Robinson from Paradigm. But first, a moment to talk about some of these fantastic sponsors that make this show possible, especially Kraken, our preferred exchange for crypto in 2023. Before you get to Uniswap on-chain, you first have to bridge your money from off-chain, from the trad world. Consider using Kraken, our preferred exchange for crypto in 2023.

S1

Speaker 1

02:34

If you do not have an account with Kraken, consider clicking the link in the show notes to get started with Kraken today. Kraken Pro has easily become the best crypto trading platform in the industry. The place I use to check the charts and the crypto prices, even when I'm not looking to place a trade. On Kraken Pro, you'll have access to advanced charting tools, real-time market data, and lightning-fast trade execution, all inside their spiffy new modular interface.

S1

Speaker 1

02:55

Kraken's new customizable modular layout lets you tailor your trading experience to suit your needs. Pick and choose your favorite modules and place them anywhere you want in your screen. With Kraken Pro, you have that power. Whether you are a seasoned pro or just starting out, join thousands of traders who trust Kraken Pro for their crypto trading needs.

S1

Speaker 1

03:14

Visit pro.kraken.com to get started today. Introducing Polygon 2.0, the value layer for the internet. For too long, the limitations of blockchains have held back app development and stifled user adoption. The internet allows anyone to create and exchange information.

S1

Speaker 1

03:27

What's missing is a value layer that lets anyone exchange, store, and program value. That's where Polygon 2.0 comes in. Polygon Labs has unveiled a series of innovations that will radically alter the Polygon ecosystem and Web3 as a whole. By leveraging groundbreaking ZK innovations such as Polygon ZK EVM, the next iteration of the best-in-class Plonky2 proving system and a first-of-its-kind, ZK-powered interoperability layer, Polygon 2.0 will give users and devs unlimited scalability and unified liquidity.

S1

Speaker 1

03:55

Right now, there is a Polygon improvement proposal regarding a potential ZK-powered upgrade of Polygon Proof-of-Stake. If approved, Polygon Proof-of-Stake would become a layer 2 ZK EVM Validium. So make your voice heard on this proposal by joining the Polygon Discord today. You have a chance to help the Polygon community give the internet the value layer it deserves.

S1

Speaker 1

04:14

Are you planning to launch a token? Is your token already live? And are you granting your employees and contractors vesting token awards? And are you trying to figure out how to take care of taxable events for your team?

S1

Speaker 1

04:24

Toku makes implementing a global token incentive award simple. With Toku, you will get unmatched legal and tax support to grant and administer your global team's tokens. Toku will help you navigate across the lifecycle of your token from easy-to-use pre-launch token grant award templates to managing post-cliff taxable events with payroll. For legal, finance, and HR teams, it's a huge complex task to have to comply with labor laws, payroll, and tax obligations, tax reporting, and crypto regulations in every country that you employ someone.

S1

Speaker 1

04:51

It's difficult, time-consuming, manual, and costly, and it's drawing more attention from global regulators and governments. Toku makes it simple for leading companies in the space, Protocol Labs, Hedera, Gitcoin, and many more. So if you want some help navigating the complex world of token compliance, go to toku.com slash bankless or click the link in the description below. Bankless Nation, I would love to introduce you to Dan Robinson.

S1

Speaker 1

05:13

He is GP and head of research at Paradigm. He, over the years, has done a lot of deep thinking about markets, auctions, and liquidity in DeFi with a particular focus on Uniswap, Uniswap, and Uniswap v3. Recently, Uniswap Labs released Uniswap X, a new Dutch auction mechanism that Dan thinks changes the meta for swapping assets in DeFi and also MEV, chain interoperability, and many more things. The last time we had Dan on Bankless was September of 2020, almost 3 years ago.

S1

Speaker 1

05:40

If you've ever heard Ryan or I say the phrase, Ethereum is a dark forest, it came from that episode. Dan, welcome back to Bankless.

S2

Speaker 2

05:47

Thanks for having me.

S1

Speaker 1

05:49

Dan, you recently wrote a thread which triggered my imagination and was the impetus for bringing you onto this podcast that was titled, 5 Reasons I Think Uniswap X Changes the Game for Decentralized Exchange, MEV, and interoperability. And this already kind of gave me a model, an agenda for this episode, which we want to get into, but just I really want to start at the highest of levels. Can you maybe define the landscape for why something like Uniswap X is needed in the DeFi sphere?

S1

Speaker 1

06:17

What are the current variables or the current things that are producing this need for Uniswap X?

S2

Speaker 2

06:24

Yeah, so I can talk about that. And I think it'll also talk a little about Uniswap V4 and where I see that fitting in. So from my perspective, decentralized exchange research, which is where I've spent a lot of my career and my research focus has been at Paradigm and with Uniswap, decentralized exchange research, in my view, has to be about reducing the amount of value that leaks out of the system, the decentralized exchange system.

S2

Speaker 2

06:50

And so, when you're in a decentralized exchange, particularly with automated market makers, you have on 1 side liquidity providers and on the other side swappers. And swappers are coming in because they can get the most liquidity or the best prices from your decentralized exchange. And liquidity providers are hoping to earn the best returns from trading fees being paid. And a lot of what I would say in research in decentralized exchange design that I've seen happen elsewhere has been focused on trying to tip the balance 1 way or the other between, take money out of the swappers' pockets and put it in LPs' pockets or vice versa.

S2

Speaker 2

07:29

And I think when you see a lot of reactions to decentralized exchange research is often saying, oh, you know, this hurts LPs to benefit swappers or this hurts swappers to benefit LPs. And in my view, I think sustainable DEX research is going to be about reducing the value that leaks out of the system entirely. It's not going to be about, you can't just benefit swappers by making LPs make less money. You can't just benefit LPs by having swappers get worse prices.

S2

Speaker 2

07:55

You actually have to find where are the parts of the system where you can benefit both or reduce the leaks that come out of the system. And almost all those leaks go into MEV. And so I think the types of DEX research, the valuable lines of DEX research correspond to different types of MEV that come out of the system. Now I think there's 3 kinds of MEV there.

S2

Speaker 2

08:19

1 is just EIP-5059 burn, just ETH that's being burned, gas cost from the transaction. And that's being paid by both swappers and LPs effectively. That's I think a really important 1. And Uniswap V4 and Uniswap X both address that 1.

S2

Speaker 2

08:31

But for the other 2, 1 is loss versus rebalancing. And that's losses that liquidity providers suffer to arbitrage. Someone's coming in and they're trading on this pool at a better price than the liquidity provider maybe should be giving them. So the liquidity provider is losing money to ARBs.

S2

Speaker 2

08:48

And that all goes basically to MAV in the modern system. And so Uniswap V4, and I can talk later a little about how we think about that, is about addressing those losses to arbitrage and opening up new ways for developers, for AMM designers to reduce that. But Uniswap X, in my view, is largely about the other side, is trying to help the swappers. And 1 way that, a couple ways that swappers lose money, they can be sandwiched.

S2

Speaker 2

09:17

You can have your transaction actually executed at a worse price because somebody traded ahead of you. You can have just ordinary slippage. You're trading at a price, and the price has moved away from you on the DEX, and so you're getting a worse price than you expected. And you could just be getting a worse price than is available somewhere else.

S2

Speaker 2

09:33

And in my view, if Uniswap, the system, is not providing swappers with the best possible execution they could be getting anywhere, then what are we even doing here? And so that's the motivation for me with Uniswap X is how can we actually protect swappers, the swapper side of this from getting worse prices than they could otherwise.

S1

Speaker 1

09:50

I think to reword what I heard from you, research in AMM and just, you know, DEXs on Ethereum and in crypto broadly has 2 players that you think need to be held as first-class citizens of the highest regard, and everyone else should actually be minimized. And these 2 players are swappers, people that want 1 token and have 1 token and want a different token, And then liquidity providers who are providing liquidity. And I think what you're saying is that research in the realm of DEXs in crypto needs to figure out how to optimize for retaining value by the net between these 2 players.

S1

Speaker 1

10:32

And anyone else, MEV arbitrageurs, the Ethereum protocol with EIP-1559, needs to be minimized while these 2 players are maximized. That's how I would reword what you were saying. Is that fair?

S2

Speaker 2

10:45

Yeah, I think that's basically how I think about it.

S1

Speaker 1

10:48

And then Uniswap X is specifically a technology that benefits swappers the most.

S2

Speaker 2

10:55

Yes, largely focused on benefiting swappers. But I think, again, in a way where you're benefiting primarily retail swappers, right? It's not about helping arbitrageurs trade against Uniswap LPs more effectively.

S2

Speaker 2

11:06

It's the people who we care most about actually helping here.

S1

Speaker 1

11:08

OK, so I'd actually like to take this opportunity to start with your tweet thread, and number 1, because I think this is where this goes. Your first tweet in your thread goes, the architecture of Uniswap X opens up a vast design space for DEXs. And so maybe we can talk about, like, I think the secret sauce that Uniswap X is bringing to the table.

S1

Speaker 1

11:26

We might actually need to define what Uniswap X is for people that didn't listen to our episode with Hayden, but I definitely recommend that as well. So what is the new thing that Uniswap X is bringing to the table? What's the new secret sauce here?

S2

Speaker 2

11:38

Yeah, so first I'll say, I don't like to use the term new because I think a lot of, as many people have pointed out, A lot of the ideas in Uniswap X have been around in Ethereum, Dex space, actually some since before Uniswap. And I think some of the concepts, especially around signed limit orders, I think are You can trace back through 0x or even before. And so I think Part of what Uniswap X is about is, are we actually at a time when some of these concepts that have been around for a while really make sense and start to be worth integrating into how DEX is actually done on Ethereum, which right now, again, is dominated by just on-chain flows on AMMs.

S2

Speaker 2

12:17

I think actually that there's a lot to be gained from digging up some of these rich old ideas. So yeah, so the key idea for me of Uniswap X is that we're moving from a system where all transactions created by retail users are expressed as transactions with a specific path. Imagine just like an itinerary of here's, I'm going to take exactly this route on the subway to get from point A to point B to an intent or a limit order. And an intent, if you think about it, is just a statement like, I want to get to point, I'm at point A, I want to get to point B, but I don't necessarily care how I get there.

S2

Speaker 2

12:58

And there's been a lot of discourse on intents, and I think, and a lot prior even just on the more general concept index of limit orders, but I think it's very important that we start actually operating with user intents. I think they're incredibly flexible and powerful. And Uniswap X, the main thing to me that it achieves is starting to move toward users expressing their trades as intense, as limited, or saying, I'm willing to, I wanna trade at the best price possible, no worse than this particular price, rather than expressing I wanna trade on this exact AMM.

S1

Speaker 1

13:31

So people who have swapped on Uniswap before, you open up with the asset that you have, you open up the asset that you want, and then you click confirm, and then you approve that transaction, you're metamask, you're ledger, whatever. And then you go to Etherscan to watch that transaction get verified. In that, what you're saying is that is a specific, the user has chosen their point A and their point B, and then the app, the web app, actually codifies that into a specific transaction, and then the user commits to that transaction, and then that is committed to on-chain.

S1

Speaker 1

14:03

And then a bunch of MEV happens in the background that the user doesn't really see, but definitely does happen. And so I think that's the current meta of swapping. And what you're saying is there's this new alternative called intense, which is, can you explain like how that actually gets expressed and then how that actually turns into the outcome that the user wants? How is that different from an actual codified transaction and how does it actually achieve the same result?

S2

Speaker 2

14:30

Right. So, the way it works is the user still sees a similar interface on the web interface. And when they go to sign their trade, instead of signing an Ethereum transaction that is, again, constructed by the interface, they sign just an off-chain message. They sign a message in a particular format, but it isn't an Ethereum transaction.

S2

Speaker 2

14:56

And then it's the job of the entire MEV superstructure out there to get this, turn this intent, somehow package it in a transaction that somebody creates and get it included on chain. But this can, you know, intents in general could include anything. It's a more general format than an Ethereum transaction. And the Uniswap X uses a particular format where the user commits to a particular price that they're willing to trade at.

S2

Speaker 2

15:26

Uniswap X supports the ability to do a Dutch order, which is a kind of off-chain Dutch auction where they sign this order. They say, here's my decay rate, and basically it's going to change the price to make it more Basically, get a worse or worse price the longer it goes on until you hit some limit. And that's in order to do it to facilitate some off-chain price discovery for it. And then it also allows the ability to pick a particular filler who gets exclusivity on the trade for a couple blocks.

S2

Speaker 2

15:57

And that's in order to enable them to potentially through a request for quote like system off chain, find someone to fill this quote better. But all these are details about how this particular transaction format works and it's I think how we see sort of the initial way that USOPX helps find users the best price. But again, to me, the key is you're moving into, now I'm signing a message that just says, expresses my trading intent. And it's up to the system to try to find the best price for it.

S1

Speaker 1

16:27

So in the example that say, just for round numbers, Ether is $2, 000. And in the old way is you would have 2, 000 USDC and then you would say, hey, give me 1 ether. And then you would ultimately get like 0.987 ether for a number of different reasons.

S1

Speaker 1

16:45

1 of them would be gas fees, 1 of them would be slippage, 1 of them would be front running, and a bunch of different participants, both humans and protocol, eat away a little bit at that. And I think the way that this intent system works is, you actually, since you don't broadcast a transaction, you actually, excuse me, you do broadcast a message, but you do not make a transaction. And so I would guess maybe this, like this package that you're talking about, you're just saying, hey, I have 2000 USDC. The minimum price that I'll take is 1 ether for that.

S1

Speaker 1

17:18

But if anyone can give me more than that, then you are allowed to fulfill this order. And then Dutch auction is, just to define a Dutch auction, is you set a high price and then over a period of time, that price comes down little by little by little. And I think that's kind of the magic. Can you elaborate on why that's so magical for how that actually reduces MEV?

S2

Speaker 2

17:38

Yeah. Yeah, so the idea there is, but when I want to set a, if I want to discover the price, suppose I don't know at all what the price is. And this, by the way, I use Dutch auctions all over and like every mechanism I know, because I think they're just a fantastic way to get decentralized price discovery. But I think this is what, it's 1 component of a piece of USWebEx.

S2

Speaker 2

18:00

But the way it works is, if you publish this order to the world with some particular starting price, if anyone in the world can actually fill that, they're incentivized to do it as fast as possible. And so you'll actually get included, if they can fill that profitably. So you'll get that included as quickly as possible. If nobody can fill that, then okay, maybe that price is too high, I'm going to start lowering it.

S2

Speaker 2

18:25

And as soon as, if the system is sufficiently competitive and there's enough potential bidders out there and people aren't censoring multiple blocks at a time. And again, I think these are assumptions that are worth questioning. But in that case, basically as soon as this order becomes profitable for anybody in the world to fill, they'll fill it. And we have the assumption that basically once you hit that point, that's the right price to actually fill it at.

S2

Speaker 2

18:50

Now again, there's some possibility you could lose a little of the slippage from the system. Like if the price moves in the other direction at the same time that your price fills, you maybe don't get the best execution possible. And I think that's why there are these other systems as part of it. And to me, Uniswap X, again, is not about just the Dutch order.

S2

Speaker 2

19:06

It's not about the RFQ. It's about this general concept that we actually get a lot more flexibility from Intents. But that's 1 mechanism that Uniswap X uses to try to make a competitive market for filling orders.

S1

Speaker 1

19:17

I think another way, the way that resonates with me and my brain is that the Dutch auction mechanism, say ether is $2, 000, give or take. But like you said, you actually don't know. In 1 single moment of time, you actually don't know what the fair price of ether is.

S1

Speaker 1

19:32

So you start at like $2, 010 and this Dutch auction mechanism lets that decay, you know, 10 cents every second until someone fills it. And I think the idea here is that the most profitable person who can make that trade profitable first at the highest price possible will fulfill that because they can squeeze a profit out of it. And it allows the margins of what you call the system, like this MEV system, the market maker system, it allows the first reasonable, rational person who can make a profit will fulfill that order first. And that's how you're coming to the conclusion that, well, yes, that was the best possible price for the swapper, right?

S1

Speaker 1

20:15

That's exactly right. Okay, And so I think this is why you come into the second tweet saying, it's a better foundation for order flow auctions. Order flow auctions versus, what's the opposite of an order flow auction? What's the other half?

S2

Speaker 2

20:28

Yeah. Well, so right. Well, So backing up a little about order flow auctions. So I think we've seen some systems, and Flashbots has 1 called MevShare, and I think there's some others out there, where the idea is right now when users trade on decentralized exchanges, often they may get sandwiched, they may get front run.

S2

Speaker 2

20:46

And 1 way that you can potentially just make the user strictly better off than they otherwise would be, assuming already that there's so many in a transaction, is instead of just letting anybody in the world front run this transaction, or even maybe instead of just letting this transaction get included and see what happens. We can auction off the right to back run your transaction. And a back run happens because, you know, when if I trade on an AMM, I might push the price. It might be such a large trade that it pushes the price to a level where it's profitable to trade after me.

S2

Speaker 2

21:16

And so I could potentially get a rebate on my transaction by, if my transaction gets included, by basically selling off the right to say, you're allowed to trade immediately after me. That's a right that I, in some sense, have, although it can be hard to facilitate this market between me and somebody who might want to background me. And so if I can get someone to pay me for the right to background me, I will get a rebate effectively on my transaction. So this is how order flow actions have been implemented by Flashbots and others with the transaction model.

S2

Speaker 2

21:47

Now the thing is, it's sort of a hilariously inefficient way to actually pay somebody for the MEV that's being created by their transaction. Because what's actually happening there is I'm trading on the AMM at a worse price than I actually want to trade at. I want to trade maybe at the current price or at a better price, but I'm trading at some bad price on the AMM, such a bad price and causing so much price impact that actually it's profitable for somebody to pay me to be the trader afterward to trade the AMM back in the other direction. And this involves at least 2 transactions on chain.

S2

Speaker 2

22:21

It involves fees being paid to liquidity writers who haven't actually really done anything because what's happening in this transaction is economically is that I, the user, am actually just trading with some back runner. I'm buying a token that they are selling, and I'm buying at such a bad price for me that they can sell it back to the AMM at a price that is profitable for them. And so we should just cut out the middleman here. We should actually just have the user and the backrunner basically trade with each other.

S2

Speaker 2

22:48

But the transaction format doesn't allow this kind of order flow auction. And so that's why when you move into an intent, suddenly, you know, all I'm saying is I want to actually trade. I'm not saying it has to be on this particular AMM so that you have to extract this money from me, by back running and then making a side payment to me. You can just come in and trade with me at a better price.

S1

Speaker 1

23:07

The metaphor that I'm getting here, maybe you'll like this 1, is like it sounds like we're trying to build a ship, design a ship that doesn't leave a large wake. And it sounds like in this, the current paradigm of Uniswap trading where the reasons why the pools get balanced or who we're trading with is because in order to fulfill that order, there needs to be enough wake for arbitragers to come settle the waters. And right now, with this off-chain intent model, we actually are just designing a ship that doesn't disturb the waters that much.

S1

Speaker 1

23:43

Is this a fair metaphor?

S2

Speaker 2

23:45

Yeah, I like that. I think that's the idea, is you're ultimately getting more efficiency from doing it this way because it's just a more flexible format. And so these things that people are, it's so needed that it's actually getting hacked into the current model.

S2

Speaker 2

23:57

And I'll give you another example, which is just-in-time liquidity or JIT liquidity, which I've been going on like a rampage about for about a year, partly in preparation for anticipation of Uniswap X coming out, talking about how I think So JIT liquidity, the way it works is when somebody's trading and they're going to trade at a bad price, someone can come in and provide concentrated liquidity right around the current tick, right before their trade, and then withdraw it right afterward. And what they're functionally doing is they're improving the user's price impact. They're actually helping the user a little bit by trading against the user. But this too, very gas inefficient.

S2

Speaker 2

24:29

A lot is being paid in

S1

Speaker 1

24:30

1559.

S2

Speaker 2

24:32

And it's not, in this case, like not actually going to liquidity providers. Who's it going to? It's basically just being wasted, or it's going to gas costs, all the inefficiency of the system.

S2

Speaker 2

24:43

Whereas really what we want is, OK, If I'm a user and I'm about to trade at a bad price, can someone just come in and save me? And again, the Intents allows us to do this more efficiently.

S1

Speaker 1

24:51

Your second tweet, your second point in your five-point tweet thread is, it's a better foundation for order flow auctions that return MEV to users. This is what we're discussing, correct?

S2

Speaker 2

25:01

That's right. Yes. So if you want to, right now, the way that those work and the way they fit into the Uniswap model involves this multi-transaction, expensive, and often inefficient protocol for paying someone to back run them.

S2

Speaker 2

25:16

When really, again, when you've got an intent, it's much easier to just batch these together and match them against each other.

S1

Speaker 1

25:21

So maybe to summarize points 1 and 0.2 to the best of my ability, there's kind of 2 birds with 1 stone in this intent model. We get the elegance of the Dutch auction model, which like we said earlier, naturally, emergently finds the most profitable actor who can give you the best trade and still be profitable themselves. And because it's not on chain, we don't have all of this wake in the transaction.

S1

Speaker 1

25:47

So there's not just-in-time liquidity, there's not back-running, there's not 2 trades that help settle a first trade. It is all done off-chain, which helps retain value from going to EIP-1559, and is helped retain by swappers and also, therefore, liquidity providers. So that's my summarization of your first 2 points. Would you say that's fair?

S2

Speaker 2

26:09

That's right. I think I would separate out the Dutch auction point as being Maybe part of, yeah, it's part of 0.1, where it really is like, this is the kind of thing you can do with intents that you actually can't do with ordinary transactions on AMMs.

S1

Speaker 1

26:24

Beautiful, okay, let's go into number 3, which I love, it's so simple. It's still early, which is, you say that we've opened up a new frontier of exploration. So elaborate on like what this new frontier looks like.

S1

Speaker 1

26:39

What's needed in this new frontier? What kind of infrastructure do we need to settle on this new frontier? Like what's left to build here in this new design landscape to help this efficiency become even more efficient?

S2

Speaker 2

26:50

Yeah, so I think part of the motivation for Uniswap X is, okay, we see all this behavior that's happening on chain with, say, like JIT liquidity or people designing order flow auctions of like, you know, back running auctions, right? And thinking, okay, this is a sign that actually there's some serious inefficiency here that should be streamlined, that should be improved. And I think, in my view, the design I think does this and gets users better prices and is more gas efficient in many cases.

S2

Speaker 2

27:23

And I think that's why I think I'm excited about it right now. But really, once you're now we're up in intense space, The sky's really the limit on just like how you can actually match these orders and process them. So for example, right now, the way that USUBEX works every order is, well, there is this RFQ process which I alluded to earlier where you can use, you can choose a particular filler to fill your order and give them exclusivity for a couple blocks in exchange for basically giving you this good quote early on. But right now, the trades are being matched primarily against these fillers.

S2

Speaker 2

28:00

What happens when you actually start to match user trades against other user trades, when you do something more like a batch auction, like Cowswap innovated? I think what happens when you start to do You can do some sort of more interesting math with that, right? Like When you have a bunch of Suppose you have a bunch of user orders. You can execute them all at a common clearing price.

S2

Speaker 2

28:21

There's algorithms for trying to do that. You can do match ring trades where you have multiple assets being traded and you try to maximize the total amount of volume. These can be, you can encrypt these orders, right? Like you can, and I'm not sure how much other, some of these other solutions have done this yet, but you can actually say like, all right, we're going to have everybody do a sealed bid batch auction that's actually enforced by cryptography, where you encrypt your orders, you do a homomorphic computation on it to try to compute basically the common clearing price, or you unseal it using a group or some multi-party computation.

S2

Speaker 2

28:58

And that gives you a more decentralized or potentially fairer auction. You can match it against on-chain liquidity using a particular algorithm. You can put it in trusted hardware, which I'll talk about in a moment. But it's much easier potentially for trusted hardware to operate on orders, because they can include basically all the information you need about them right in the order, without having to involve interaction with a bunch of Ethereum state.

S2

Speaker 2

29:24

Like, for all these reasons, they're just more tractable. And so I think, like, in the long run, I have no idea, actually, what these things will look like. But I think I know, I'm pretty sure it's going to look like some kind of intent, some kind of, when users express their desire to trade, it's going to look more like an intent I think than a particular on-chain transaction. And that's because they're just so much more flexible.

S2

Speaker 2

29:45

So there's just a lot more room to explore.

S1

Speaker 1

29:47

It's the flexibility of the expressivity of an intent, as in it's very, very open-ended. I think maybe another way to help define an intent is it just provides like kind of the bowling alley guardrails as to like, here's everything I don't want, but anything inside in this specific, specific landscape of what I do want, you're allowed to give me. And so basically saying you're, you just write the rules of like, Hey, you can't give me less than this.

S1

Speaker 1

30:13

And then the mechanism will naturally give you as much as possible. But not codifying it, I think, allows for a lot of expressivity. And I think that's 1 half of the magic that I think you're talking about. The other half is that like, since it's off chain, the costs of computation are 0.

S1

Speaker 1

30:32

If there's no gas costs to matching orders of user A to user B to user C, you can compile every single order together all at once. And all of that computation that it takes to clear those orders doesn't have to actually run on a blockchain that can run on some local market maker's server. And all of a sudden we get really good order execution from not having to be encumbered by blockchain computation. That's my intuition, Is this right?

S2

Speaker 2

31:04

That's right. I think just off-chain computation is incredibly powerful. And we actually saw just with the rise of the professionalized Mav ecosystem, just a tremendous amount of ingenious work being an optimization being done off-chain.

S2

Speaker 2

31:19

And I think this is something where a lot of people see Mev as a threat, but as a protocol designer often it is. You know that if you leave some opportunity open to be optimized for MEV, someone is going to take it. And so, like, you can't be lazy as a protocol designer, maybe as lazy as you could have been maybe in, like, 2018. But it also is a huge opportunity.

S2

Speaker 2

31:40

It's a massive support. And I think of it as, like, a swarm of nanobots that's always in the air around us. And if you just were to like leave out an apple on the table it suddenly just in your, it becomes a core, right? Like because the nanobots like to swarm and eat it.

S2

Speaker 2

31:57

And if you, you know, this is scary because it means like you can't leave your food out lying around, but it also means, okay, like this is useful. It's like, if I want to like, you know, clean something I can just like spread, you know, spread some jam on it or something, and you know that the nanobots are going to come eat that and do that task for you. And that's how we rely on this system with Dutch orders, right, in Uniswap X, is you say, okay, we know that with a Dutch auction, if we auction this, it's an efficient enough market that someone's going to take it. Someone is going to pick up this money that's lying there, and as a result, we can rely on this.

S2

Speaker 2

32:30

And the user, it helps the user, right? That like this opportunity for profit is not going to be left unclaimed. Because if it were, then the auction might clear too late at a worse price than the user would otherwise get. But because you know that this is efficient off-chain, you can rely on that.

S2

Speaker 2

32:45

And that's like, that's something that I think is really has changed in the past couple of years, where there were a lot of protocols and people were talking about in 2017, 2018, where you couldn't actually rely on just there being every efficient arbitrage being taken and, oh, someone is incentivized to challenge this thing, so they will. That's something that today is actually much more realistic than it used to be.

S1

Speaker 1

33:08

Who are these nanobots? Who are the players that make up this swarm of nanobots? When we open up this new frontier, what are the verticals that actually compose this swarm of nanobots?

S1

Speaker 1

33:20

I'm sorry, we got market makers, we got MEV bots. What composes this swarm?

S2

Speaker 2

33:25

Yeah, so I think there's professional market makers. There's a lot of, especially for Atomic Mev, a lot of amateur Mev searchers, who I think, it's just like the It's just sort of amazing how you've seen this actually happen, where by lowering the barrier to entry to becoming a Mev searcher, you actually just found that basically all Atomic Mev gets extracted pretty quickly by often people who are in high school or in their basement somewhere. I really don't actually know.

S2

Speaker 2

33:56

That's part of the beauty of it. And that's, when we're talking about the Ethereum as a dark Forest Post before, that was this realization that we had that actually the bots are a lot smarter than you might even have anticipated. And so you actually, you know, someone has, if there's some behavior out there, like, you should suspect or worry at least that somebody's written a bot to take advantage of it. But again, once you get to this, once you're in this world, yeah, you can sort of just treat it as a force of nature, the kind of efficient market hypothesis here that, okay, if we're creating MEV here, then it's going to be claimed.

S2

Speaker 2

34:33

And we rely on that, for example, in like Blend is a protocol that I worked on with the Blur team, where we also use Dutch auctions, because again, I love Dutch auctions. But you might get your NFT liquidated if there wasn't an efficient market here. Because if somebody closes out a loan, what happens is there's a Dutch auction to continue it. And if nobody was out there just looking for opportunities to lend at a profitable interest rate, then like potentially someone loses their NFT.

S2

Speaker 2

34:58

But you can kind of rely on, do a trust fall onto the MEV searcher ecosystem and just know that somebody's going to actually claim that.

S1

Speaker 1

35:05

Are you a Metamask user? Well, you're listening to Bankless, so of course you are. The wallet you know and love just got a whole lot better.

S1

Speaker 1

35:12

Metamask Portfolio is the ultimate one-stop shop for all of your crypto needs. It gives you a holistic view of your crypto portfolio across multiple chains and multiple addresses all at once. You can easily view and manage all your coins, tokens, and NFTs in 1 convenient place just by connecting your wallet. Metamask portfolio goes beyond just viewing your portfolio though.

S1

Speaker 1

35:32

Inside the portfolio, you can do all the incredible money verbs that make DeFi so powerful. You can buy, swap, bridge, and stake your crypto assets with ease. It's like having a powerful battle station for all your DeFi moves right at your fingertips. So if you're looking to do more in Web3 your way, MetaMask Portfolio is the answer.

S1

Speaker 1

35:48

I already know that you have MetaMask wallet, so go check out your MetaMask portfolio. Learn more at metamask.io slash portfolio. Mantle formerly known as BitDAO is the first DAO-led Web3 ecosystem, all built on top of Mantle's first core product, the Mantle Network, a brand new high-performance Ethereum layer 2 built using the OP stack, but uses Eigenlayer's data availability solution instead of the expensive Ethereum layer 1. Not only does this reduce Mantle Network's gas fees by 80%, but it also reduces gas fee volatility, providing a more stable foundation for Mantle's applications.

S1

Speaker 1

36:21

The Mantle treasury is 1 of the biggest DAO owned treasuries, which is seeding an ecosystem of projects from all around the Web3 space for Mantle. Mantle already has sub communities from around Web3 onboarded like Game7 for Web3 Gaming and Bybit for TVL and liquidity and on-rails. So if you want to build on the Mantle network, Mantle is offering a grants program that provides milestone-based funding to promising projects that help expand, secure, and decentralize Mantle. If you want to get started working with the first DAO-led Layer 2 ecosystem, check out Mantle at Mantle.xyz and follow them on Twitter at 0xMantle.

S1

Speaker 1

36:54

Arbitrum is accelerating the Web3 landscape with a suite of secure Ethereum scaling solutions. Hundreds of projects have already deployed onto Arbitrum 1 With a flourishing DeFi and NFT ecosystem, Arbitrum Nova is quickly becoming a Web3 gaming hub and social dApps like Reddit are also calling Arbitrum home. And now, Arbitrum Orbit allows you to use Arbitrum's secure scaling technology to build your own layer 3, giving you access to interoperable, customizable permissions with dedicated throughput. All of these technologies leverage the security and decentralization of Ethereum and provide a builder experience that's intuitive, familiar, and fully EVM compatible.

S1

Speaker 1

37:41

I'd like to add an important player in this role, and this is it brings us to your fourth point in your tweet thread, which are bridges. In your fourth tweet, you say, seamless cross-chain and especially cross-chain swaps will be revolutionary. So how does Uniswap X in this intent-based meta change the game for the nature of Ethereum's roll-up-centric roadmap? How is this a player here?

S2

Speaker 2

38:04

Yeah, so 1 way I can talk about this, okay, so I'm really excited about this, and so this is something that Uniswap is planning to roll out later this year, but this is for cross-chain swaps using UniswapX. And you can use UniswapX for, it's in the white paper, the description of how this protocol works, but it's pretty simple adjustment to the algorithm where if I express my intent on Ethereum to have ETH on Optimism, rather than just to have like die on Ethereum. Or you could say, I have ETH on Ethereum and I want to have die on Optimism or something like that.

S2

Speaker 2

38:36

You just express where you want to actually have the asset. And the thing is, if there's a message passing bridge from the place that I want to go to, to the place where I currently am, that can pass basically the proof of the fulfillment of this through, then I can have my order claimed on Ethereum and then filled on Optimism and then the success of this is actually passed through. And a couple of cool things about this. 1 is with the Dutch order mechanism, this can actually be a really decentralized competitive market for how to get money off of, from 1 roll up to another.

S2

Speaker 2

39:13

So like the price is set by the market and anybody who actually has assets on both chains and wants to run this strategy can do this. You don't have to depend on being a trusted party or having on-chain liquidity or anything. Second, I think the liquidity can be off-chain. And I think it's much more efficient.

S2

Speaker 2

39:35

For 1 thing, if you just have bridges and you're trying to bridge over, you know, ETH from 1 chain to like some wrapped ETH on another chain, bridged ETH on another chain, if that involves a huge AMM pool, like a lot of liquidity providers with just static bridged assets there. That's a massive honeypot. You just have to have exposure to this bridged ETH over there. And I think it's actually a much cleaner model to have the liquidity be off-chain.

S2

Speaker 2

39:58

And I'm holding their native asset on this other chain, right? Or I'm holding something else, or a die or something. I don't actually have to have a huge pot of bridged asset over there. And I think that's just hugely valuable.

S2

Speaker 2

40:09

But with rollups, again, often you have a canonical ether. And third is there's a really nice property where, I mentioned going 1 direction, but if you go the other way for fast roll exits on rollups, this is like, this is a design we talked about for fast rollups and exits like on Plasma and rollups like years ago. But it's a very neat feature as you can, there's a fast bridge from Ethereum to Optimism, right? Like there's just a native bridge in Optimism.

S2

Speaker 2

40:34

You don't have to use the slow exit for it. As a result of that, you can actually build a fast exit protocol from Optimism to Ethereum, where if I have ETH on Optimism, I can get onto Ethereum, or onto another rollup for that matter. You can get it over to, let's just talk about Ethereum for now, really quickly. And the way that works is I have my ETH on Optimism and I basically auction off the right to do a Dutch auction, say send me ETH on Ethereum.

S2

Speaker 2

41:00

And once someone does, they will basically be able to send a message, a fast message from Ethereum to Optimism that then claims my, it takes about 5 minutes or 10 minutes or whatever it does, that then claims my trade. So the filler, I'm sorry, the swapper in the happy case, the swapper immediately basically is like faster than even this bridge, you know, within like a minute, gets their money on main net. The filler can actually conclude this swap by the time that their transaction, their message has moved from Ethereum to Optimism. And yeah, so in the happy case generally, like this all concludes within, you know, like within 15 minutes or something.

S2

Speaker 2

41:42

I think that's just gonna be incredibly efficient for getting money off of roll-ups. 1 final really cool thing I see about it is, if you want to go the other, the example I started with, you want to go the other direction, you might actually get paid to bridge from Ethereum to Optimism because you can effectively rebalance somebody who wants to exit. So if somebody's trying to exit Optimism, whether they're a market, maybe they're a market maker who previously bridged somebody on to optimism for, or off of optimism for a fee. So now they have optimism ETH.

S2

Speaker 2

42:09

They might actually be willing to pay you more than 1 ETH to get your ETH, main net ETH. And so you might actually, and I'm not sure how the economics will work quite yet, but it's conceivable that you might actually get paid to bridge your money onto a rollup.

S1

Speaker 1

42:23

How does this change the nature of bridges? Because I remember in 2021, 2022, the building a bridge across rollups was like a big movement, right? We have Socket, we have Li-Fi, we have Hot Protocol, we have Across, all of these bridges.

S1

Speaker 1

42:39

How are these bridges, if we go into this intent-based paradigm, how do the nature of bridges change?

S2

Speaker 2

42:47

So I think some of these bridges, and I'm not an expert in how all of these work. I do think a cross actually has some similar characteristics to how Uniswap works and other ones do. So I'm not calling out any particular bridges, either positively or negatively here.

S2

Speaker 2

43:02

But I think some depend on this kind of on-chain liquidity. And this is ironic for me and Uniswap to be sort of talking about moving away from having on-chain liquidity for bridges. But having, yeah, like having, imagine just, oh, you actually get some like, some canonical representation of like optimism ETH on, or optimism bridge ETH over on Arbitrum, and then there's an AMM on Arbitrum where you can now like trade that. I think that, for 1 thing, it becomes a honeypot where if this bridge, there's a lot of money right now that rides in the security of this bridge and potentially could get hacked by this.

S2

Speaker 2

43:40

And we've seen catastrophic, the most catastrophic hacks, of course, in crypto history are bridges. In part because you just have a lot of money that's just sitting there, right? It's sitting in 1 contract, because the money's off doing something else, but the representation of the money is going somewhere else. But here, it's just sitting in this bridge contract, and it's exposed to this thing.

S2

Speaker 2

44:02

And What I like about Uniswap X, from a security perspective, is the only money that's at risk, that's exposed to the bridge, is swaps currently in flight.

S1

Speaker 1

44:11

Swaps currently in flight.

S2

Speaker 2

44:13

In flight, yeah. So basically, once the swap has concluded, so somebody starts a swap, right? And then a swapper expresses their intent, they want to bridge over.

S2

Speaker 2

44:25

A filler on that chain claims, okay, I'm going to fill you. They basically make a promise to fill them. Right now the swapper is exposed to the bridge risk. But then the filler immediately, hopefully, fills them on the other chain.

S2

Speaker 2

44:38

And now the swapper no longer has bridge risk. They've already been filled. So they're exposed for like a minute. And then If the bridge gets hacked, people should stop swapping on it.

S2

Speaker 2

44:49

But there's that minute maybe when they're exposed. And then for the filler, now they use the bridge. They have to use the bridge to actually send a message back to claim the swapper, to get the swapper's money. But once they do, they're no longer exposed to the bridge risk.

S2

Speaker 2

45:03

They don't have any money, like overnight, if they turn off their server and they stop filling stuff, they're not exposed to the bridge so they can sleep easier. And I think that's getting rid of that honeypot quality of bridges is just a huge improvement.

S1

Speaker 1

45:16

To make sure I understand this, there are certain bridges that when you use them, you create a representation of the asset on the chain that is beholden to the bridge that put it there, Correct? And so like, say we have bridge, just to make up a bridge name, bridge like, bridge 123, new bridge I just invented, bridge 123. And then you have ether on main chain Ethereum, and you use bridge 123 to get your ether onto Optimism.

S1

Speaker 1

45:45

It's not optimism ether, it's bridge 123 ether on optimism. And that is the honeypot because it's this bridge that is now this persistent custodian of this ether that is an IOU on optimism, but it's not canonical ether. And canonical Ether we would say is Ether that's deposited into the canonical optimism bridge, correct?

S2

Speaker 2

46:08

Yeah, exactly. And, you know, it's possible for the swap, maybe the swapper trades immediately from that optimism Eth into, or sorry, from that 123 ETH into Optimism ETH. So maybe the swapper doesn't have long-term exposure to the bridge.

S2

Speaker 2

46:22

But if that liquidity's on chain, it might be like they've got an AMM, right? Anyone could provide liquidity on this AMM on a particular roll-up between 123 ETH and OP ETH. And that's exposed, as long as somebody's providing liquidity as an LP in that pool, they're exposed to that bridge risk. Whereas if that liquidity's off-chain, the way that it is in Uniswap X, they're actually not exposed while they're not actually currently executing a trade.

S1

Speaker 1

46:47

So this, I would, it logically concludes in that assets that are on layer twos or non-Ethereum chains are most likely going to be assets that are represented by the canonical bridge for that change, like the optimism bridge, the arbitrum bridge, the actual bridge that creates the layer 2, not another ancillary bridge that isn't relevant to the layer 2.

S2

Speaker 2

47:10

That's right. And this is why I think it's incredibly powerful in the rollup case specifically, because so every rollup has a canonical bridge, a message passing bridge from mainnet to the rollup. Every rollup has canonical versions of all like EOS-E20 and ETH and NFT assets, generally, from Ethereum that have been bridged over to that, right?

S2

Speaker 2

47:36

So you don't actually have to have a remote representation of the, you know, the way that you might with Solana, you have to have some remote ETH, like, so like, how do we get there? I think there's a lot of challenges in how to figure out how to do that securely. But we don't actually need that with rollups because there's the canonical bridge. And so it becomes really useful to say, let's just we don't have to solve that problem.

S2

Speaker 2

47:57

We only need to solve the swapping problem. I've got ETH over here. I need ETH over here. And then we just try to reduce all the risks around that.

S2

Speaker 2

48:04

And then I think the other benefit is, because this bridge to main net, the nice thing is the bridge from main net to the roll-up generally is a fast bridge. And 1 of the biggest downsides of especially optimistic roll-ups is the exit is slow. But the nice thing here is this optimism, I'm sorry, Uniswap X turns a fast bridge from a message-passing bridge from B to A into a fast asset-passing bridge from A to B. And so it's designed basically to create these trustless fast exits, which I think is very nice.

S1

Speaker 1

48:41

Would you say an intent-based swap paradigm is also a bridge minimalism paradigm?

S2

Speaker 2

48:48

I would say they fit together very nicely. And yeah, I'd say they fit together very nicely.

S1

Speaker 1

48:56

Cool, okay. And I would assume the nature of this is like it's probably 1 of the big UX UI problems, UX problems of just like bridging is not bridging is a burden. Bridging is a chore.

S1

Speaker 1

49:09

It's not like friendly for users. And so this is probably 1 of the many things that we need in order to improve the composability issues that Ethereum's rollup-centric roadmap brings to the table?

S2

Speaker 2

49:21

Yeah. I mean, in my view, it should be really easy. If you want to buy a token, and that token happens to be native to some rollup, and your money is on some other rollup, It should be basically like, you know, it should be transparent. You should see that you're buying this asset on this rollup, so you know actually the exposure you're getting.

S2

Speaker 2

49:38

But it shouldn't be any harder than buying an asset. You know, you should just go to Uniswap, where you already are maybe going to buy the asset, and you can just trade from 1 chain directly to a different asset on a different chain. I think that's a big UX problem right now that you actually have to even think about bridges at all.

S1

Speaker 1

49:55

Yeah, so of course this isn't a panacea for solving the cross-rollup composability issues, but man it sounds like a really big step towards that direction.

S2

Speaker 2

50:04

Yeah, that's the hope. Okay, so that

S1

Speaker 1

50:06

was number 4. Moving on to number 5, the final 1. You say, Uniswap X complements Uniswap V4, which is designed to enable new techniques to sustainably improve passive liquidity provision.

S1

Speaker 1

50:17

Can you unpack that statement for us? So why does Uniswap X compliment Uniswap V4 and what's the significance of all this?

S2

Speaker 2

50:24

Yeah, so a couple of ways. First, going back to how I started this, I do think Uniswap V4 and Uniswap X each are primarily designed to serve each half of that ecosystem that I was referring to earlier. Uniswap V4 is about new ways of protecting passive liquidity providers.

S2

Speaker 2

50:39

Uniswap X is about ensuring that swappers are getting the best prices. And so I think maintaining that balance is important. And I think the designs that help 1 are often very different from the designs that help the other. But when you're helping them, it's generally not at the expense of the other, at least in my view.

S2

Speaker 2

50:58

Because again, in the long run, these are our users. This is the system. And you can't just screw over swappers in order to help LPs. Long term, you'll end up with no 1 swapping on your decks anymore, or vice versa.

S2

Speaker 2

51:14

So, Some specific ways in which it complements it. So 1 is I think, well, they have some, another way, they have common themes. So Uniswap v4 is about flexibility. It's about allowing someone who has a cool design for a DEX to build it on this platform, on Uniswap v4 rather than building it as a fork or as a different pool.

S2

Speaker 2

51:34

And I think that's, you know, that's similarly with Uniswap X. It's much less opinionated about how this trade actually gets executed. And you know, again, like I said before, you can use basically the same on-chain format. Basically, you don't have to change Uniswap X to protocol itself at all in order to radically change how you actually match these things off-chain.

S2

Speaker 2

51:55

And I think that's, yeah, I think that's just a really, it's a shared theme there where we thought, oh, there actually is this very wide design space, and Uniswap doesn't have to be as opinionated anymore. And we can open up more innovation from others and from Uniswap Labs and from people who contribute to the ecosystem. So that's the second way. And then the third is some specific ways you're not before because of this new innovation and openness means you'll probably get a lot more pools on chain.

S2

Speaker 2

52:27

And routing across and between those pools is going to be a tough problem. And I think it's 1 nice thing about UnixFX is it actually outsources the problem of figuring out how do we route across this multiplicity of pools to this incentivized network of fillers and generally the MEV ecosystem. And right now, already, MEV does a pretty good job of arbitraging pools. If you build a new AMM, even if your docs are terrible and you don't have an API and everything, it will probably get arb'd, basically.

S2

Speaker 2

53:00

If it's easier to arb than it is to like hack, find a 0 day in Viper, because that happens so like if it's easier to arb it, then it will get arb'd. And so you just, you know, similarly, We have that for arbitrage across pools. We don't have that right now for routing swaps. If you've got an uninformed flow order, what's the best way to actually run it?

S2

Speaker 2

53:24

I think we don't really have a decentralized ecosystem trying to get users the best swap possible. And that's what we're trying to do with Uniswap X.

S1

Speaker 1

53:32

Yeah, the thing that I saw between Uniswap V4 and Uniswap X is both that it pushes computation to the margins. And like you said, Uniswap X is for the swappers, Uniswap V4 is for the liquidity providers. Maybe you can take a moment, bankless listeners, I'll have told them to definitely listen to our episode with Hayden on Uniswap V4, as well as our episode with Hayden about Uniswap X prior to this, but just to unpack Uniswap V4, Why does Uniswap v4 benefit LPs?

S1

Speaker 1

54:04

And how does that, if we've been talking about this entire episode about Uniswap X benefiting swappers, what does Uniswap v4, what's the secret sauce about Uniswap v4 and what it does for LPs?

S2

Speaker 2

54:14

Yeah, so I'll start by talking about Uniswap v3. And so, with Uniswap, when we started working on Uniswap v3, we were thinking about what are the big challenges in Uniswap, or what are we trying to solve? And I think we landed on capital efficiency for liquidity provision as a major problem solver.

S2

Speaker 2

54:33

And I think that's true both because it was just very capital inefficient to provide liquidity at all in all price ranges, and you actually just get It's much easier in LPs. It benefits LPs. But also because it increases the creativity that LPs can approach this problem with. You can say, oh, I'm going to provide using this some particular I want to provide using some different static curve.

S2

Speaker 2

54:54

And you can construct that with just a bunch of Uniswap positions. You might want to actively rebalance, and you can do that as well. It opens up this range of possibilities and this freedom for LPs to figure out how they're actually going to use the system, as opposed to we're forcing you all into 1 bucket. And I think that made sense in 2021, In part because a lot of the innovation that was happening around AMMs at the time was about like, well, what's the shape of the liquidity curve that I'm providing?

S2

Speaker 2

55:21

And you're trying to... So like Curve, for example, like providing a concentrated liquidity, you know, specifically pretty opinionated, but like very much designed for pegged assets or for stable coins. That was a big innovation in DEXs because it actually makes a lot more sense for you to provide liquidity that way. So you use W3 as a way to build your own curve like AMM, right?

S2

Speaker 2

55:43

You can pick whatever AMM you'd want to do, you do that. What we saw actually in 2022 and 2023 is the innovation is moving away from just how are, you know, what kind of liquidity shape is your liquidity. It's moving toward these more creative things that actually get into how the DEX is designed itself. And a lot of that is around, for example, what's the initial price?

S2

Speaker 2

56:05

What are the fees that we set? Can we change the fees, which is not possible to really do in v3, although you can pick which pool to provide in, but unlike 1 pool, the fees are static. Can we force only particular users are allowed to trade, or you get to auction off the right to set the fee, or to be the first trader in a block. There's a lot of different new features you might want to add that just don't fit into the V3 framework, but they do into V4.

S2

Speaker 2

56:30

So with V4, the idea is we add these hooks that allow people to get more creative in what kind of strategies they provide. And so, yeah, I'd see it as, you know, this is a way where if a liquidity provider wants to actually run a particular strategy, they can actually just build their own pool, or someone can build 1 that they can aggregate many liquidity providers in. So getting into the details of where those are, I think, I will say, I don't think we have a solution to loss versus rebalancing, which is this general problem of liquidity providers being arbed. And in fact, I think there is no general solution.

S2

Speaker 2

57:01

And I think there are ways that we think can actually minimize and reduce it. But ultimately, and I think it may also be a cat and mouse game forever, and that's 1 of the reasons why it's not, we're trying to enshrine this 1 solution and be far as instead we're opening up this design space where anyone can. But some of the ideas I think that can be done, I think Alexander Nesloman on Twitter had a neat idea about setting fees based on where the price moved in the previous block. And I'll give you just a very quick design of it, but This is an example of 1 of the things that can pretty easily be built using HUCs, using Uniswap before.

S2

Speaker 2

57:36

The idea is if the price is in block N, suppose the price has moved from, the ETH price has moved from $2, 000 to like $2, 100. At this point, so then there's probably been a big ARB, you know, price move that happens in this pool where somebody ARBed it basically to exactly the right point where they made, Imagine the profit maximizing ARB. So the price has now moved to like, you know, to $2, 100. Okay.

S2

Speaker 2

58:05

The thing is, when they were trading, they were paying a fee. And so they probably pushed the price so that not like the midpoint price, but actually like the very extreme of when you're trading up, they were paying exactly $2, 100. So if what Uniswap V3 or V2 or whatever thinks is the price right now is like $2, 100 minus 30 bips, that it's actually like the midpoint price, but a better estimate would actually be exactly $2, 100 because that was the final price that the previous ARB paid for it. And so then you can adjust the fees so that actually just move the fee window so that it takes that into account.

S2

Speaker 2

58:45

So anyway, that's like the core idea there. But it's just all it involves is adjusting the fees, which is provided by the Uniswap v4 hook. And I think it's a clever idea. And that's the kind of thing.

S2

Speaker 2

58:55

And we have other ideas on it. And I think we'll be publishing some stuff later this year on some of my ideas. And I'm trying to be pretty open about what kind of ideas I'm working on with this in general. But in my view, those are the kinds of things where you can just eke out some improvements for liquidity providers using v4 features that we may not have even imagined.

S2

Speaker 2

59:12

That wasn't an idea that I had had, which I think is pretty cool.

S1

Speaker 1

59:15

It's been a while since I've been an LP, and I've never been an LP in Uniswap V3 because it's seemingly pretty sophisticated and also intensive. But the meta that I've come to understand through my conversations with people is that being an LP is losing, generally. Like you're losing money on average, especially if you're passive LPs.

S1

Speaker 1

59:38

And so I'm wondering if like this side of the Uniswap equation isn't complete yet. We've talked about Uniswap X and intense, And that feels like a logical conclusion of where swapping goes, but I don't know. And I'm maybe asking you for a little illumination here. It doesn't seem like we've reached a point of sustainability for liquidity providing inside of Uniswap, because Uniswap V2, definitely, and Uniswap V3 also, from my intuition and from my conversations, people aren't making sustainable money in order to supply sufficient liquidity into this side of things.

S1

Speaker 1

01:00:12

So maybe you could help kind of just like define the contours of this conversation. It's like, why aren't LPs making money? Where's that coming from? And does Uniswap v4 fix this enough?

S1

Speaker 1

01:00:25

Or like maybe you can kind of take it from here.

S2

Speaker 2

01:00:28

Yeah. So first of all, it's a very complicated question and it's 1 where I've mostly just been relying on others' work for this. I've tried to look into it a little myself. My best read of the literature on this, and I think the big focus, almost like half of Uniswap v3's volume is the USDC Weath 5-bit pool.

S2

Speaker 2

01:00:47

And that's just like the big, I consider that, all right, let's focus on that pool. My best understanding is that the average liquidity provider on that pool loses money. And I don't actually, to me this is a weird mystery. Because I don't actually know, I don't know people who provide liquidity on that pool.

S2

Speaker 2

01:01:05

I don't know why people do. I have a few possible theories that I can go into it a little more, but part of what I'll say is I think we designed the system so that if it's, you know, you should see some equilibrium where, OK, if it's not profitable by liquidity, then there should be less liquidity. My best understanding of what people have published is that it seems like liquidity is over-provided in total on that pool. But I actually don't know that for sure.

S2

Speaker 2

01:01:30

And it seems confusing to me why people would provide liquidity if they're consistently losing money. So I just don't have an answer to that puzzle. And if somebody has a good answer, I would actually love to hear it, because I feel sort of dumb that I don't have a better explanation than, but maybe they know something that we don't, and maybe they're doing something. 1 point I think...

S1

Speaker 1

01:01:48

Is they're just lazy, not a valid answer?

S2

Speaker 2

01:01:50

Yeah, I don't think so, and 1 of the reasons is, you mentioned passive versus active. At least 1 of the studies I saw says that active liquidity providers lose more money than passive.

S1

Speaker 1

01:01:59

Oh, wow, really?

S2

Speaker 2

01:02:00

Well, for 1 thing, you know, when you're rebalancing, you're paying gas every time you rebalance. You're also probably in practice trading, maybe trading on chain. Being an active liquidity

S1

Speaker 1

01:02:11

provider and also being a trader is slightly synonymous.

S2

Speaker 2

01:02:15

Right, And so you're maybe getting some slippage or price impact when you rebalance. And so I don't remember if this analysis actually included that. But it doesn't shock me necessarily that actually providing really active liquidity on a pool, you might lose more money because you're basically paying fees, doing slippage every time you do that.

S2

Speaker 2

01:02:35

But yeah, I'm willing to believe that liquidity is overprovided on v3. I just don't have a good answer for why it still happens. 1 possible theory is there are people who are making, So all these results are on average, basically. And I think some have tried to break it down a little bit.

S2

Speaker 2

01:02:51

It's hard to identify who liquidity providers are. 1 possibility is some liquidity providers are making this money hand over fist and everyone else is losing money. And it's a constant tournament to try to be that guy, to try to get ahead. And so people, so that's like 1, sort of like the online poker theory of liquidity provision.

S2

Speaker 2

01:03:07

It's like, yeah, on average, online poker players are losing money. And yet, or in the peak of it, I think there were studies, they were all mostly on average losing money. But partly there was just a lot of churn and who was actually trying to be there and whoever's at the top is making money. So that's like 1 possible theory.

S2

Speaker 2

01:03:21

And another is just like people are dumb. But it also is weird because like when you mentioned laziness, like the people who are doing the most, like who are writing these complicated bots seem to be losing money, maybe more money than others. I don't actually have a good explanation for it. Oh, yeah.

S2

Speaker 2

01:03:35

Interesting. So, going back to your question, yeah, I mean, I agree, and that's why, again, I think V4 is largely focused on can we actually really address this and make liquidity providers more profitable?

S1

Speaker 1

01:03:46

Cool. And, of course, the beautiful thing about Uniswap v4 is that these hook strategies are likely going to be built not obviously holistically, not as a sweeping broad statement, but a big source of innovation, demand for innovation for hooks is going to become from LPs trying to figure out how to fairly capture sustainable fees in order to make their activity more profitable. At least that's my interpretation. 1 thing I quickly want to provide a take for you on to get your reactions to is Uniswap's own app layer.

S1

Speaker 1

01:04:18

Infinity Pools is a new app that's built using Uniswap LP tokens as assets. And also I think like the success of something like Infinity Pools would create demand for Uniswap LP assets, which creates demand for liquidity. Is Uniswap's own app layer that has LP tokens as assets a potential source for LP yields?

S2

Speaker 2

01:04:42

Yeah, I think that's possible. From what I've seen, in general, the idea, okay, look, there are these passive liquidity providers. There seems to be demand for this kind of exposure.

S2

Speaker 2

01:04:53

Maybe they're rebalancing or hedging or something. And so are there ways we can actually provide them this exposure? Like basically you get paid yield for holding this convex position or concave position, I guess actually is the term. The question is, I'm sorry.

S2

Speaker 2

01:05:11

Yeah, so the question is like, are there more interesting products that we can provide liquidity providers to get this and potentially increase their yields? I think quite plausibly. A lot of the designs I've seen involve basically removing your liquidity from, like basically you borrow some liquidity and then you actually pull the liquidity out of the pool. And so It's never been that clear to me for a lot of these products why actually you need the Uniswap part Or like is it actually does it actually cause liquidity on net to be more often in Uniswap?

S2

Speaker 2

01:05:39

And I've seen like different answers for some of those so I'm not as sure about any of the particular instances of this Of these kinds of products, but generally I think yeah like trying to find ways to give liquidity. There's demand to provide liquidity. As we see on Uniswap v3, there is demand to do this. And so the question is, OK, can we actually provide them this, what they're trying to get out of this, but with a better price, or with better yields.

S2

Speaker 2

01:06:02

I think it's definitely, it's something where innovation of the app layer is awesome.

S1

Speaker 1

01:06:08

Well Dan, I think this was a fantastic first exploration into what is a brand new rabbit hole in the world of intents and off-chain orders and Uniswap X and bridging, it seems to be that crypto always has some cool rabbit hole to throw at us. 1 rabbit hole that I know that's out there that we're gonna go investigate is Suave out of Flashbots. We're doing an episode in 3 to 4 weeks with Phil Diane and Andrew Miller.

S1

Speaker 1

01:06:31

I'm wondering if you can just help me incept listeners' brains with Swap, why they should be excited about it, what the TLDR is, and just overall prepare them for an episode that's gonna come in the future.

S2

Speaker 2

01:06:41

Yeah, so I'll give you, I think, why I'm excited about Swap, And it's maybe a, it's as a kind of like user application developer. So my perspective on what makes me excited. And part of it is, you know, we have this on-chain infrastructure and what was, 1 thing that was exciting about Uniswap v1 and v2 is that we could build these protocols, decentralized, completely decentralized protocols that were basically everything happened on chain.

S2

Speaker 2

01:07:08

And then all this stuff is done for you where you can just like write your logic on chain and basically, yeah, you know it'll be, You know it'll actually be executed. And it's fully decentralized. But, you know, there's all these costs of doing stuff on chain. You don't actually, especially with stuff you don't actually need, like, global consensus on.

S2

Speaker 2

01:07:27

And so we now have this incredibly sophisticated off-chain infrastructure. With particularly, like, you know, Mev searchers, but also I think really sophisticated builders where often, and Relays, these parties where they're doing all these complex computations, but They're often doing it in a way where it involves points of centralization. I think the Mev ecosystem overall is incredibly decentralized as a system. But there are points there where there's actually benefits to being centralized.

S2

Speaker 2

01:07:58

And I think this is a potential risk. And it's 1 that Flashbots has been concerned about for years. And it's also 1 where if you're building applications in this MEV space, you potentially find yourself, you have to trust somebody to run a searcher for, what are they called, a solver for some protocol, right? Or matchmakers or something.

S2

Speaker 2

01:08:24

There's many different terms for this. Or a relay, someone who plays some semi-trusted role in this off-chain infrastructure. Once the stuff gets on-chain, it's all non-custodial and the trades are settled and everything. But there's this point before it where a lot of stuff ends up being, the way that things are currently designed, there are these potential points of centralization there.

S2

Speaker 2

01:08:44

And what I see Suave as is it's a platform for decentralizing all that off-chain infrastructure. I think for decentralizing some of what builders do. But also, if you want to run a protocol right now for doing a batch auction off-chain, right now probably the best way to do that would be to have some semi-trusted party. Like, you run it, right?

S2

Speaker 2

01:09:05

Like, you run a server, and I say, I just promise I'm going to run a batch auction, and I won't look at your bids, and I won't bid myself. But if you wanted to do this in a trustless way, there's actually just no platform on which to build that, to build, for example, a decentralized batcher. And so what I'm most excited about Suave is I see it as a place where you can build. I can just write some code, maybe even just like some solidity, and they will run it for me off-chain really efficiently.

S2

Speaker 2

01:09:32

But in a way where I know that it's actually going to be executed. I can depend on untrusted hardware, or on consensus, or on some decentralized guarantees that it's actually going to be run in a private way. I think that just, as an application designer, would be an incredibly powerful thing to rely on. It's, in my view, almost as big as just moving from Bitcoin to Ethereum, to moving toward Turing-complete on-chain contracts as imagined via Turing-complete off-chain contracts.

S1

Speaker 1

01:09:57

Beautiful. Dan, this has been a fantastic exploration to a bunch of new knowledge. And I thank you for coming back onto Bankless and spreading all of this cool stuff that you've been researching on over at Paradigm.

S2

Speaker 2

01:10:06

Thanks. Yeah, thanks for having me back. And just before I go, I want to remember, Paradigm, we're a crypto asset investment firm. We do have investments in a lot of the projects that we mentioned today.

S2

Speaker 2

01:10:15

And generally, I'm here speaking on my own behalf and nothing that I said here was financial or legal advice

S1

Speaker 1

01:10:20

Of course, thanks, and I'll give our own disclaimers as well over a bankless crypto is risky bankless nation You know the deal you can lose what you put in but we are headed west. This is the frontier It's not for everyone, but we are glad

S2

Speaker 2

01:10:45

You