Bankless - 10 - Going Bankless with Uniswap | Caleb Sheridan

Episode Date: May 4, 2020

Episode: #10 May 4, 2020 Uniswap isn't a bank, isn't a company, isn't a website. It's a liquidity robot, an unstoppable trading layer for the bankless money system, the first of its kind. Ryan & David... talk with Caleb Sheridan about using Uniswap for trade & profit, its ability to serve as a public good for the Ethereum economy, and the coming liquidity robot wars.    We cover: An explanation of Uniswap in 10 sentences What you can do on Uniswap Trading Suppling liquidity (for profit!) Listing assets Bootrapping liquidity Funding projects Why Uniswap succeeded where others failed If Uniswap is really unstoppable In what ways Uniswap is a 10x improvement The coming Liquidity Robot Wars Uniswap as an price Oracle The end game This is our second of three episodes in the "King Money Protocols Series" where we talk through the three most important DeFi protocols. Stay tuned for the final episode!   Before the episode begins we also talk about: The Coinbase Oracle The UMA token sale on Uniswap ----- Tools from our sponsors to go bankless: Rocket Dollar - tax shelter your crypto ($50 w/ "BANKLESS") Monolith - holy grail of bankless Visa cards Aave - money lego for lending & borrowing DYDX - trade, margin, BTC perpetuals (10% off with this link) (trade.dydx.exchange/r/bankless) ----- Resources discussed: Uniswap Exchange Pools.fyi - check Uniswap returns Use Zap to one-click deposit to Uniswap Pool Read: How to Make Money on Uniswap  Uniswap is Infrastructure - David Hoffman Rise of the liquidity robots Constant Function Market Makers ----- Episode Actions: Try a trade on Uniswap  Become a liquidity provider on Uniswap and earn ETH ----- Subscribe to podcast on iTunes | Spotify | YouTube | RSS Feed Leave a review on iTunes Share the episode with someone you know! ----- Don't stop at the podcast! Subscribe to the Bankless newsletter program Visit official Bankless website for resources Follow Bankless on Twitter | YouTube Follow Ryan on Twitter Follow David on Twitter

Transcript
Discussion (0)
Starting point is 00:00:00 where we explore the frontier of internet money and internet finance. This is how to get started, how to get better, and how to front-run the opportunity. This is Ryan Sean Adams. I'm here once again with David Hoffman, and we're here to help you become more bankless. David, we have a fantastic episode. This is our second in a series where we're tackling the top three D5 protocols. This is how to go bankless with uniswap. What are we going to cover, David, and why is it important?
Starting point is 00:00:45 We are going to cover the complete scope of the uniswap protocol, which is not a small feat. While Uniswap is very simple, the Uniswap rabbit hole goes very, very deep. There's a lot of layers to Uniswap that it goes beneath the surface, and we're going to peel back all of those layers and explore all of them in this episode. Yeah, this is going to be fantastic. Uniswap is cool because it is one. of the most decentralized defy applications on that defy trust spectrum that we've talked about in previous episodes. Uniswap is not a bank. It is not a company. It's not a user interface. This is a protocol. It lives completely on Ethereum, completely on chain. And the possibilities that it
Starting point is 00:01:30 brings into the open finance Ethereum economy are incredible. And we're going to dive into all of them. But before we do, want to take a minute to talk about our fantastic sponsors. The first one is for our U.S. listeners primarily. So if you have an IRA or a 401k, a retirement account, chances are it's jailed inside of your brokerage. That means you don't have good access to crypto. If you try to buy crypto inside of your brokerage, it costs you 5x the price. Don't do that. Don't get ripped off.
Starting point is 00:02:04 What you want to do is break your retirement account out of $1,000. brokerage jail. Rocket Dollar can help you do that. They'll set up what's called a self-directed IRA or a self-directed 401K. They'll help you with the paperwork. They'll help you with the transfers. They will help you get to a place where you can buy crypto on the spot market, on Coinbase, or on Gemini, in a tax-sheltered retirement account. This is a fantastic, a financial hack for you guys. And if you go to rocket dollar.com, you can get set up today. Just use the code bankless. And you'll get $50 off. That's rocket dollar.com. Use the code bankless. We have a new sponsor on the scene. One of my favorite Ethereum applications,
Starting point is 00:02:49 DYDX is the leading and most performant decentralized exchange in crypto. And the really amazing thing about DYDX is like Uniswap, it is entirely on chain. And so it is a non-custodial exchange where you are not trusting people with your money, but you still get to access all of the cool features and services that you would expect from a centralized exchange. Things you can do on DYDX are spot trading, margin trading, you can borrow ETH, you can borrow Dye, you can lend ETH, you can lend die. DYDX has originated over a billion dollars in loans over the last year and a half a billion dollars in trading volume. Something pretty new and innovative that DYDX is doing is they're bringing Bitcoin into DFI through perpetual contract market. which it's not live yet. It's starting. It's launching in May so you can sign up for that
Starting point is 00:03:39 alpha today. You'll be able to use Bitcoin inside of D-Y-D-X inside of the application, which is pretty exciting. I like it whenever I see some sort of defy application starting to integrate Bitcoin and the Bitcoin price into their product and services. So we have a special offer for bankless listeners. If you sign up with the bankless link, you will get 10% off of trading fees using our referral link. That referral link is trade.d.d.x.org.com. exchange slash r slash bankless. It's a bit of a mouthful, so it's in the show notes if you want to go get it there. DYDX is one of my favorite protocols. They really do it all. Basically anything you can do on Ethereum, you can also do inside of DYDX. So check them out.
Starting point is 00:04:24 Okay, before we dig into the episode, let's talk some big picture stuff, David. So a couple things that are going on in the crypto, in the bankless sphere. So the first is this. Coinbase is adding a defy Oracle. So, David, I got a question about this because I tweeted this out. And somebody said, well, Ryan, I mean, doesn't this make oracles on defy in Ethereum more centralized if a crypto bank like Coinbase is providing an Oracle? What are your thoughts on that?
Starting point is 00:04:54 Yeah, it's an easy thing to slip into because, you know, anyone who's in DeFi is always harping on centralized exchanges. And that habit is easy to slip into. But I would contend that this any further addition of more oracles always makes oracles more decentralized. So it doesn't even matter if like the White House or the Federal Reserve provided an Oracle for Defi, it's just one more Oracle to add to the list. And so this is really good news. And Coinbase of all companies, of all institutions is definitely aligned with the crypto vision. And so their incentives are where we want them to be. I was once having a conversation with a friend of mine talking about how the only way you can get Bitcoin is on a centralized exchange.
Starting point is 00:05:40 And he countered with, well, if there are 30 different centralized exchanges all over the world that are very easy to get on to, well, then Bitcoin is actually decentralized. And so if Coinbase copies this model and then Binance is also an Oracle and Gemini is also an Oracle and Hoobi is also an Oracle, we start to have more and more options with where we can get our oracles from. And so we're not we're not beholden to just using one Oracle, right? The more oracles, the better. The really cool thing about this story was that compound, the compound finance team was really pushing for this forever ago. And I believe Robert Lesher had this tweet where he was talking about how centralized exchanges need to be oracles for the defy ecosystem. And the Oracle standard, the code or the model of the Oracle that Coinbase used came from what compound published. So tip of the hat to compound and Robert Lesher for spearheading this a really long time ago.
Starting point is 00:06:43 And I'm glad it's now coming to fruition. Robert's going to be our next show. So episode 11, folks. So tune into that. We'll ask him about this too. But yeah, I tend to agree with you on this, David. So I think, like, if you look at the way the maker oracle works, and that, of course, maintains the peg-4 dye and eth
Starting point is 00:07:02 and is a key component of the entire maker's system. But it has a dozen or so different oracles. Some of these are operated by known entities. Some of these are operated by anonymous entities. So say it's 12 or 15 oracles. adding another one from Coinbase and then taking the average price of all of those oracles, that's net additive to the system. It increases the decentralized nature of the system, as you're saying, because you are gaining an additional node, an additional price source,
Starting point is 00:07:34 and you can still take the median across all of those price sources in order to get your ultimate, make your Oracle price. So I tend to agree with you. And we're actually going to be talking about another Oracle design, inside of this episode that is even more decentralized still. Uniswap actually can be used, a byproduct of its exchange and trading capability is an actual price Oracle. And that can be used inside of these Defi systems too and further decentralizes the Oracle.
Starting point is 00:08:07 So Coinbase adding an Oracle, good news for Defi. Actually, good news for decentralization. And exactly as you say, I think it will lead to all of the other exchanges incorporating creating a defy oracle in order to keep pace with Coinbase. Coinbase has really shown their colors, I think, with the commitments to large amounts of USDC and USDA liquidity into defy applications. And now with this defy Oracle, I'm pretty happy with what Coinbase, how they're positioning themselves.
Starting point is 00:08:38 They're definitely defy friendly. And having somebody like Coinbase, which is the leading exchange in the United States, I would say, you know, making pretty bold statements about how they are D5 friendly, a D5 friendly company is pretty cool. I mean, they offer interest rates on your USDC in your Coinbase account. Now those interest rates are extremely low. It's like 1.5%. But I think your protocol sync thesis, Ryan, where, you know, companies like Gemini and Coinbase integrate defy applications like the DSR, I'm bullish on that.
Starting point is 00:09:12 And I think the friendliness that Coinbase is offering Defi is a good sign for that. Dude, are we going to do an episode on the Protocol Sync, man? Absolutely. 100%. So I'm giving a talk at the Ethereum conference next week, which actually, so this is coming out on Monday in May. And so my talk will be on Thursday all about the Protocol Sync thesis and settlement assurances. And so come to the Ethereum conference and listen to that. And then me and Ryan are 100% going to do an epic episode specifically about the protocol sync thesis.
Starting point is 00:09:48 So it's going to be a good one. Yeah. So I'm super excited about that conference, David, because not only do you have a talk on the protocol sync, we have a panel called ETH is Money. It's got you, myself, Eric Connor, Anthony Sassiano. Cammy is hosting it as well. She's moderating. It's going to be super exciting.
Starting point is 00:10:09 We're going to talk about a lot of the topics we talk. about in bankless and apply those. Maybe there'll even be some debate about how ETH is emerging as a money system, but it's going to be a fun one. You know, another thing that we should probably talk about, we recorded our episode with Caleb on Wednesday. On that Wednesday, Uniswap had what I might call its first initial uniswap listing, like an I-U-L, almost like it almost felt reminiscent of an ICO. So some of the very concepts that we talked about in our conversation with Caleb, we saw them play out in real time. What was your take on what happened? Maybe you could just, you know, describe the listing
Starting point is 00:10:53 itself and the token and then sort of what happened. And then I'd be curious to hear your take, David. So I'm all for experimentation. And this was definitely a very interesting experiment to run. I think the outcome of this experiment is don't do this again. I think it was not the right way to issue a token for a number of reasons. Uniswap is not a way to distribute a token. And that's simply because, and we saw this in the ICO mania way back when, the bat token sale was famous for selling out of the entire supply of the basic attention token in the first like three blocks.
Starting point is 00:11:35 And so that really rewarded technically adept people who were able to make a bot to make sure that their transaction got in on the first block. And we saw that with the UMA token listing on Uniswap as well, where people bought up a bunch of supply on the first block and then sold it on the third or fourth block after the listing. And so this isn't how you generate an aligned community and aligned set of people that are your stakeholders. This is how you attract arbitrages and traders and people trying to make a quick buck. And so that, that, that, didn't look too good for me. I think there were there were much better ways to issue a token in ways that are more long-term aligned with your company, with your project and the community holding
Starting point is 00:12:21 your token. If you wanted to get your token into the hands of people, the Uniswap is not, people that are stakeholders and want to see the best for your company. I would not issue it through Uniswap. Yeah. And there, you know, there might be a better way that somebody can design a way to issue it in a more fair way in uniswap. But to me, this was not that. So I know the UMA token, they started listing at basically the price of their last raise, so a market cap of UMA tokens of $27 million, which is high in and of itself when you consider there are currently no cash flows
Starting point is 00:12:58 that I'm aware of occurring to the token, nor is there a product that we can get our hands on and use. But that aside, that was raised with accredited investors, and VCs and that sort of thing. But the net outcome after this uniswap listing with a very small amount of supply, so only about 3% of the total UMA tokens were provided as liquidity, the net outcome is that UMA as a token is the number five, defy money protocol token on the market at $121 million right now. So, I don't know, that's a 5x or so.
Starting point is 00:13:37 of their last raise with VCs. So it did, whether intentional or not, this was definitely an experiment and, you know, give the team the benefit of doubt. It's hard to know, you know, necessarily if this was intentional. But it had the effect of pumping the price to a degree that is probably not sustainable long term and is probably not conducive to growing a community. So we'll see how this plays out, but, you know, there's a possibility here, David.
Starting point is 00:14:13 I don't know if you agree or not, but I was starting to get feelings of, oh, my God, this is like the very beginnings of ICO mania again, only it'll be conducted on uniswap. And, you know, we just need to make sure that the community is informed and buys into assets if they're doing this, that have long-term value accrual mechanisms and that are fairly valued. Uniswap, I guess, is a easy place to issue a token because everyone knows what Uniswap is and it's really easy to go and buy a token. So I guess in that sense, it's making it more accessible because everyone knows how to buy and sell on Uniswap. So that, like, maybe an accessibility argument is to be made there. But the two to three percent of the total supply of the token made available on
Starting point is 00:15:00 day one. It's hard to excuse that, in my opinion. I think we, I, you said that, you know, we don't really know if they were doing that intentionally or not. I'm, I'm going to go ahead and be a little bit more critical than that. I think that if they just decided that 2% was the right number and didn't think about the illiquidity that would result in just only 2%, and then the price pumping effect that comes from illiquidity would, would follow. I, I'm a, I'm a I think we should assume that they definitely knew what they were doing. And again, it goes back to the issue of this is not how you generate an aligned community and aligned network of stakeholders, but it is how you pump a token really, really fast in the first few blocks.
Starting point is 00:15:45 And that's definitely what happened. And so this doesn't sit really too well with me over the long term. I think our best defense as a community against this sort of thing is to make sure we understand very clearly the value accrual mechanisms of all of these assets. assets. Things went absolutely bonkers in 2017 because people put fundamentals aside and value accrual mechanisms aside and they just chase the pump on the bankless journey. We're not about that. This is about long-term fundamentals, the long-term growth of an industry. And so, you know, pompamentals aren't something that we get really excited about. So, you know, I definitely agree with you there. So while we're talking about money verbs and defy protocols, here's one you
Starting point is 00:16:34 absolutely have to check out. This is a lending and borrowing protocol called Ave. What does it do? You can put dye into it. You can put ETH into it. It will take your die, it will take your ETH, and it will transform that into an interest-bearing asset. This is a great way to level up in the bankless money system. You can also borrow from it. We were talking about borrowing from very protocols at a variable rate. But this allows you to AVE allows you to borrow from it at a fixed rate. So you know exactly what you're going to pay from one day to the next and one month to the next developers. You've got to check out their flash loan protocols. Groups like D5Saver have integrated these into their protocols, into their applications, and created a lot of value.
Starting point is 00:17:23 Go to AVE.com and deposit crypto to start earning or borrowing. That's A-A-A-V-E. try it out on your bankless journey you might find that your bankless account is storing more value than your bank account but you still need to buy things at the grocery store you still need to go out and on friday nights and if all your money is in the crypto world well you're ahead of the times but you still need to live your life and that's where monolith can help you out the monolith defy card is a way to keep your funds in the bankless universe while still being able to buy things in the real world. The monolith visa card is accepted wherever visa is, which is like the whole world, and it lets you use your dye as it's supposed to be, as money, as a way to pay for things.
Starting point is 00:18:15 So go to monolith.xyz and check out their defy card, check out their rates. The defy card is a smart contract wallet, which is something that we definitely have to get into. as to what that is on bankless. But it's a really cool way to protect your funds and still be able to use them. So go to monolith.xyz and get your defy card today. Well, without further ado, David, we should get to our episode with Caleb on the Uniswap protocol. This is how to go bankless with Uniswap. Welcome to our episode on Uniswap.
Starting point is 00:18:59 This is going to be fantastic. David and I are here with Caleb Sheridan. He works at Blocklytics, which is a data analysis and services company that focuses on protocols like Uniswap. He knows a lot about it. Caleb, could you just begin by telling us a bit about your journey in Ethereum, in sort of the bankless space, and how you stumbled across Uniswap? Sure. Just as Uniswap is launching, I heard Vitalik speaking at Heath London. And he mentioned Uniswap as one of these common goods projects.
Starting point is 00:19:32 that was released that did not use a token model. And it was right as I was founding my company Blocklytics. And so it seemed kind of obvious to go and explore this project that Vitalik mentioned. As soon as I saw it and I saw the simplicity of it, I just got sucked in and went and did as much research as possible on the protocol and have been following along ever since. So the Uniswap without a token is something that caught your eye. What else about Uniswap caught your eye? and maybe also about Ethereum at large? Ethereum is fundamentally useful.
Starting point is 00:20:06 I mean, at this point, there are things that you can do on Ethereum with cryptocurrency that we've kind of been dreaming about for years. And one of those was swapping tokens really easily. And so getting into Uniswap and seeing this public good that was available that made token swaps easily accessible for individuals was kind of eye-opening. I think before that, before Uniswap, even the user, interfaces and the user experience of doing token swaps is really difficult. It would involve going on centralized exchanges, giving them personal information, personal details, waiting for 30, 40,
Starting point is 00:20:44 50 confirmations to make a deposit, and only then kind of dealing with order book layouts and order books. And then at the end of all of that, you know, the money that was on these centralized exchanges was a lot of the times out at risk. And so if you look at kind of when, you look at, kind of when Uniswalt came out how the market was for trading tokens and then this clean product with, you know, you have Ether and you want this other token, you know, just pick the amounts and hit swap. It was really eye-opening and refreshing. And that kind of got me into the rabbit hole of Uniswalk. It was just the simplicity behind it. And the fact that it was this public good, really helping users out accomplish this simple thing of swapping tokens.
Starting point is 00:21:29 This is cool. So Caleb, let's dive into those first two. So the first one you mentioned is exchanging and trading, right? So this is basically a function that in the more centralized exchange, the crypto bank world, a coinbase or a finance might do for you with some sort of an order book, right? And the second is actually providing liquidity. Let's dive into the first. So folks, you know, kind of understand how this works. So if let's let's, let's say I have a position in die. So that's a staple coin we talked about in episode nine with Mariano Conte. So let's say I have die and I want to exchange that for ether. How does it work? What are the fees for that process? Am I interacting with an order book of any kind? Is there like a peer-to-peer transfer going on or how do I tap into that liquidity? Sure. So Uniswap is a decentralized exchange where users can swap Ether and ERC20 tokens. The exchange itself is funded by its users. In many cases, it's funded by the same people who are swapping tokens. They become liquidity providers who make the whole thing run and provide liquidity for traders. So long story short, Uniswap is this decentralized exchange eco-eco. system where traders and liquidity providers kind of all work together to build financial
Starting point is 00:23:05 markets between different cryptocurrencies and different tokens on Ethereum. I definitely remember the day of 2018 when Uniswap came out where I had my Binance account and I'm pretty sure the last time I've logged into Binance was the day that Uniswap came out and I became immediately a little bit more bankless as a result. So I definitely resonate with that. So let's start with some definitions. And I think we have a kind of a fun game ahead of us. Can you explain Uniswap in 10 sentences? And then I'm going to ask you to explain it in one sentence. But let's start with 10 sentences or a paragraph if you can. So the first option with Uniswap, and the first thing that many people see on the page is that you can swap Ether for tokens.
Starting point is 00:23:48 And there's an extensive list of tokens, which we'll get into in a few minutes. This is kind of the most, At its core, this is the service that Uniswap is providing end users. You can swap any given token for Ether, and you can even swap any given token for any other given token. The second thing you can do with Uniswap is you can provide liquidity. And when you provide liquidity, you take ownership of a given exchange pair, and you share a portion of the fees that that exchange pair generates with all of the other owners. So in this case, liquidity providers are, are providing liquidity to facilitate trades and collecting fees as part of the protocol. Uniswap isn't just one thing. There's a bunch of different ways that you can use Uniswap.
Starting point is 00:24:39 So can you go through kind of the various options that Uniswap provides people? What can you actually do with the application? When you make a trade or when liquidity providers provide liquidity to Uniswap, in this case the ethth die pair, liquidity providers provide ether and die into a smart contract, and the smart contract holds those two assets in balance. Whenever a trader comes through and wants one of the assets from the pair, so in this case, die for ether, they provide the smart contract with die, and then they take back an amount of ether that the smart contract kind of just calculates on their behalf.
Starting point is 00:25:19 So this is called like a price curve or something like. that. You might have heard it called a bonding curve, which is like a, maybe a questionable term terminology for it. But the point is that the price is determined by the smart contract, and the price is determined by the ratio of assets that are inside of that smart contract. Whenever a trader does, whenever a trader makes the trade with a smart contract, they essentially give it a surplus of one of the assets, like die, and they take out some of the eth from the smart contract. And here two things happen. One is that the user pays a small fee, which sits, which goes back into the smart contract.
Starting point is 00:26:03 So the user pays at the moment 0.03% of a fee in ETH in this case. And then that addition, that ETH sits in the smart contract and is essentially distributed as a fee to all the liquidity providers of that smart contract balance. The second thing that happens is that the price changes for future trades. So because you've in this case traded Dye for ETH, you've changed the ratio of assets within the smart contract. And so the new price for whoever comes after you to trade is going to be based on that new ratio of what you kind of depending on your trade size. I think you were just about to tell us. So you're not really trading, Caleb, with an order book, right? You're almost trading with a smart contract, some kind of a like you called it a bonding curve.
Starting point is 00:26:55 Yeah, that's exactly right. You're trading with a smart contract. And the idea is that this ratio of assets always needs to be held in a constant, to a constant product in this case. So this pricing curve, it has a unique property in that as an asset is removed or added, the second asset or the asset pair increases. And the really unique property about kind of the model that Uniswl came out with is that this curve, you know, if you plot it on X and Y, you would see that it looks kind of like like a square root. But essentially this curve goes to infinity on the Y and goes to infinity without touching zero on the X. And the idea is that, you know, if you deposit one eth and 200 die today in the smart contract, that contract, no matter how many trades are made or what like size trades are made, the smart contract will never run out of those assets. It's just that what will happen over a bunch of trades in one direction is that the more popular asset will get more and more expensive. And so the idea is that, you know, this, this kind of promotes trades up to a certain point. And then the price shifts and then it supports trades back down to like that, that assets kind of market value or real value external to the system.
Starting point is 00:28:28 So to make this, so to make this really tangible, Caleb, right? So if if I am on the dye, ETH pair and I'm doing a small amount of dye, you know, say $100 worth of dye, you know, that that kind of curve that you described is not going to be impacted so much. So I'll probably get a pretty good price for that dye. So or for that, ETH. So the price might be comparable to something I could get on in exchange. Slipage is a word we might use for that. That would be pretty low.
Starting point is 00:29:03 It would cost me maybe, you know, 0.3%, so 30 basis points in uniswap fees. but my slippage would probably be comparable to that of an order book exchange like a coinbase. But if I really ramp up that volume and say I'm making a major purchase, I'm a large market maker and I'm purchasing a million dollars worth of eth with my dye, what happens in that case? What's my slippage like? Yeah, in this pool right now, the ethth die pool has about a little bit over $6 million of liquidity in it. And so the slippage on a $100 trade would be very negligible. And as you said, you would essentially just pay the exchange fee.
Starting point is 00:29:45 The slippage on a much larger trade would increase. And it increases at an increasing rate. So the bigger your trade is, the more slippage you would have. And in this case, you might have like 50% slippage or something like that. And so for these pools that, but that's not to say that this is not for big traders or it's only for tiny traders who want to trade $10 or $20 at a time. These pools are actually supporting trades of up to 100 grand with very, very low slippage. And the beauty of these pools is that those trades happen instantly.
Starting point is 00:30:17 They happen in one transaction. There's no making a deposit to an exchange and eating up the order book or any of that. So if you really look at the slippage on even big trades, uniswap in these deep markets are really, it is really, really competitive even with popular order-based markets. You know, I find that I'm just in awe that the system has gotten to that point where liquidity has grown to a point that Uniswap can be your only exchange. And that's one of the amazing things about watching this protocol grow in particular and get to the stage of, you know, being suitable for all kinds of traders. I would say that, you know,
Starting point is 00:31:01 if you're really sensitive to slippage and you want to avoid it at all costs, the way to do that is just spread your trades out over time. So take your $1 million trade and spread it out over a few days or a few weeks, doing a small fraction of it at once, and really watching the amount of slippage that is affecting you. But I think that you would be surprised at how much volume Uniswark can handle in terms of these deep pools. How has the liquidity in Uniswap changed over time?
Starting point is 00:31:36 Can you kind of illustrate that graph for our listeners? Sure. Being a Uniswap liquidity provider, it's not easy to understand what your returns will be. So it's based off of demand for a token that is hard to anticipate. and it's also based off the relative price of two assets. So if you're just looking at the Uniswap-Eth die pool, you're kind of the price of ETH external to Uniswap really matters and really affects you.
Starting point is 00:32:13 And essentially what liquidity providers are doing in order to collect this trading fee is they're depositing their liquidity in such a way and promising to make trades and fulfill trades in such a way, in such a way that it can actually kind of cost the money in the long term. So in other words, a uniswap liquidity provider does not get the option to not take a trade that looks bad compared to the current market rate. And so what may happen is that uniswap liquidity providers take a bunch of bad trades in a row, and the price ratio causes this phenomenon called impermanent loss.
Starting point is 00:32:51 But it is called impermanent loss because the price ratio can always return. and then the liquidity provider is not actually realizing that loss. It's just that on paper, the liquidity provider may take a few bad trades in a row and take some loss. So this is to say that anticipating returns as a liquidity provider is quite difficult. But what we've done at Blocklytics is kind of tried to say, okay, well, what have the historical returns been and what does demand look like today? And so we do provide that kind of historical, those historical returns on our role. website pools.fyi. But in general, this is kind of one of the difficulties of being a
Starting point is 00:33:34 liquidity provider and having people kind of choose whether or not to be a liquidity provider. It's a very hard question to answer. Despite that, over time, as people have watched liquidity grow in uniswap and as people have watched the returns on these uniswap pools, we have seen liquidity growing over time. And so there was a slight, in ETH terms, especially because each UNISWLQA pool is denomated in ETH. In ETH terms, we've just seen new more and more highs. And at one point, I was looking at an weekly basis, it just never dropped. Every single week was a new high for the amount of liquidity in UNISWF.
Starting point is 00:34:17 And now that there's a long history of looking at previous returns and what has, happens in different types of markets, I think that people are more comfortable with getting involved and accepting that there may be a little bit of impermanent loss, but in many, many markets, the trading fees have historically made up for them. And so right now we're kind of very close to an all-time high in terms of liquidity, even after a lot of liquidity was removed following Black Thursday. And then obviously in dollar terms, we would be very close to an all-time high at this point as well. Let's touch on impermanent loss a little bit more. And then also, every single uniswap pool has two assets in it, right?
Starting point is 00:35:01 And so each uniswap pool is its own characteristic. What types of uniswap pools would see impermanent loss more than others? Yeah, great question. I'll break this down into maybe three types of pools. And broadly speaking, everything more or less falls into one of the of these three types. So the first type is two assets like ETH and Dye, which are not necessarily inherently linked or inherently related. And you may have a personal opinion on where the price of ETH in terms of Dye is going in the future, but there's no kind of reason why it can't go up
Starting point is 00:35:46 and then come back to this price or whatever the case is. So in this type of pool where the two assets are kind of separate or non-correlated, the impermanent loss is kind of just that. Like, you may check your account balance one day and see that you've suffered a lot of impermanent loss and come back the next day and see that you have no impermanent loss anymore. And so the idea is that this loss, which is what you risk as a liquidity provider, it comes in and kind of goes away in pools like UniswapEath die. There's another type of pool, which is what I would refer to as kind of a stable pool, where it's an example of this is the uniswap eth and synthetics eth pool.
Starting point is 00:36:37 And the idea behind this is that you take two assets that should have the same value. And because they should have the same value or very, very close to the same value, by definition, there can really be no and permanent loss unless there's some catastrophic breaking of the peg. So in this case, Seth is loosely tied to ETH, but broadly speaking, you know, trades within a range that's very close to, within a range that's very close to one, one-to-one ratio. So in this case, you know, traders just collect trading fees and they don't really have too much risk of a permanent loss. And in these cases, you know, we see that the growth of this pool has kind of spoken for itself. So historically,
Starting point is 00:37:23 this has been one of the biggest pools ever. One of the other biggest pools ever is the uniswap-eath to raft-eath pool, which also is a pegged asset. And what we see is that traders are collecting reasonable returns in those pools, and so far not really feeling much in permanent loss at all, because the exchange rate has remained very, very steady and very, very close to one. The third type of pool that I'll just mention quickly is, is a pool where the token is designed to be inflationary or designed to be deflationary.
Starting point is 00:37:58 In this case, you know, there is a huge risk of impermanent loss. And so this would be things like interest-bearing tokens or certain deflationary tokens that have kind of shown up over the past year or so. And these tokens essentially are designed in their mechanics to, you know, gain value and against ETH. And so what that causes is, you know, these are much more at risk of, or the liquidity providers are much more at risk of an permanent loss if the token is designed to change in ratio, grow or decrease in ratio against ETH. So for example, in like compound tokens, you know, these make very poor pairs against ETH because ultimately, you know, the exchange rate of compound token only increases. and therefore, you know, it doesn't hold that same property of mitigating
Starting point is 00:38:55 impermanent loss the way that wrapped ether or synthetic teeth does. This is so super cool. I mean, I think we'll talk about this a lot, the idea of permissionlessness. So anyone can go in and make a trade. And just as everything you were talking about, about becoming a liquidity pool provider, anyone can do that. It's permissionless. There's no identity required.
Starting point is 00:39:19 you just have to have the assets, you know, 50% of each in a pool and deposit those assets. And then you are effectively a liquidity provider. And different pools give you various rates of return. So if someone wants to increase their eth-denominated returns, for example, maybe an eth-type pool might be for them, maybe an eth-dye pool. But you're in the data every day, Caleb. Can you tell us where the big opportunities are for being a uniswap liquidity provider? So if I want to take my ETH and I want to make more ETH, which pool should I deposit into?
Starting point is 00:40:01 If I want to take my dye and make more dye out of it, where should I go? For people who, let's say, like, want to stay. So I guess the best pools for brand new users to kind of try out and dip their toes in are definitely the ones with all. impermanent loss. You know, or with limited and permanent loss or mitigated and permanent loss. So the popular pools like ETH Seth and ETHRAPT ETH are great examples of this. Where it kind of starts to get tricky is let's say that if you care about your returns in terms of ETH and you want to stay exposed to ETH to join to be a liquidity provider in the
Starting point is 00:40:41 ETH die pool, it require that you trade in half of your ETH for die. And so you lose out on any upside on half of your liquidity pool deposit. I think that for a lot of people, that has been sort of a deal breaker. Now, that said, there are ways of, you know, using Maker, using some of these other systems to deposit ETH in order to generate the dye that you need, and then deposit ETH and the generated die against another, a different ETH deposit, into these pools and then stay completely exposed to eat. And one of the teams that's doing great work on making that process really straightforward
Starting point is 00:41:20 and simple is defy's app. That kind of takes all of these different money Legos and combines them in such a way to give users that end exposure that they want. But I'll just say the important thing to kind of figure out as a liquidity provider is what do you want to earn money in or what is your underlying kind of, how are you account your victory. And so if that's, if you're really concerned about just stacking ETH, that's one strategy. If you're really concerned about tracking wins in terms of die, that might be a different strategy. And so I think kind of internalizing that and figuring
Starting point is 00:41:58 that out as a liquidity provider is almost as important as, or even more important than picking out which pool to join or whatever the case is. Yeah. So we're definitely all about stacking of eith in the bankless program. It is the reserve currency of upside for this entire space for sure. But increasing die-denominated returns is also interesting. And I want to jump on that point that you mentioned with defy Zapp. So that gives you the ability to essentially supply liquidity to these pools in one-click, in one transaction. We'll include a tactic about defy's app and how that works.
Starting point is 00:42:39 in the show notes, but if you're just getting started, that's a really cool way to do it. It makes it incredibly easy. But like, what are you seeing lately? So what kind of returns are we talking about on ETH or with Dye? Caleb, so are we talking like, you know, one to two percent returns on ETH over, say, a 90-day period? And, you know, how about Dye? And how does that compare out there to other DFI-Pritical opportunities?
Starting point is 00:43:03 Yeah. In terms of high volatility, the ETH DIEPOL just outperforms everything. And it's not even close. And so kind of where it just outperforms kind of holding ETH in many, many cases. And you can look at the historical returns to see where this kind of breaks down. But ultimately, in some cases, it is possible that, you know, if you had held your deposit separately or if you had held your ETH separately, you would have done better than the pool. And like today, that's the case.
Starting point is 00:43:34 So over the past 30 days, you actually would have done better to just hold ETH than than be an eth-dye liquidity provider. But if you look back kind of historically, and over long periods of time, there's no question that Uniswap eth-di is a much better option for certain users. So the returns that we're talking about kind of vary, and over long periods of time, we're talking better returns than what's possible in lending protocols, for example. So over a long period of time, what you're essentially doing is you're taking a bet on the transaction volume of uniswap because every time there's a uniswap trade you earn a portion of the fees
Starting point is 00:44:15 you earn like 0.3% right so you're betting at some level on uniswap over the long run but over the short run it's sort of a gamble based on the volatility of eth right that's right and if you if you look at you know the we spoke about impermanent loss and it if you kind of look over uh the race that liquidity providers are looking at is, am I going to earn enough in fees to cover whatever impermanent loss happens to me over a certain period? And if you look over a long enough period, you know, in theory, you'll have like infinite trading fees that you collect and your impermanent loss will be, you know, reasonable.
Starting point is 00:44:56 And so over like an infinite period, you know, you could say that, okay, well, this is definitely going to outperform. But obviously, you know, infinite is a really long time. But even if you look at over the last 90 days, compared to ETH, so if you provided liquidity 90 days ago and you cashed it up today, you would have earned an equivalent APR of 60% on top of, or above ETH holding ETH. So in ETH terms, you know, these are very, very good returns. And I think like that's, you know, that's the underlying theme that's common in all of these pools, is that the longer you hold and the longer that you're a liquidity provider, the more fees you can
Starting point is 00:45:37 collect and kind of even out the short-term variance of the price ratio of the assets. So we've been talking about impermanent loss and using Uniswap as an investment tool, providing liquidity to various token pairs in order to, you know, collect that fee and get a passive return on your income. But there are other ways and other reasons to provide liquidity. And at realty, for example, every time we release, a property, we put it on uniswap, but then we also seed it with our own liquidity. And we don't really, we don't do that looking because we're looking for a return. We're looking to do that simply to provide liquidity.
Starting point is 00:46:18 And one of the really powerful things about uniswap is its permissionless ability to list an asset and then also it's permissionless ability to provide liquidity. Can you just comment on that? Oh, absolutely. Uniswap has over 2,000 liquidity pools. and that number on a daily basis is just growing. And the idea is that anybody can come through and list an asset. And what you guys have done with Realty is really amazing.
Starting point is 00:46:45 And even in your case, you know, that that's an asset that has a white list and has kind of a permission set up. And it just kind of works with Uniswap. And so, you know, you don't have to give up your permission logic in your token to make it work with Uniswap. And that's a really amazing thing. And so there are a number of tokens like that that just kind of work with Uniswap really well. And what we kind of see is that users have started to sell goods and services on the network. And one of the early examples of this was from the Uniswap team itself, who sold SOX in a token called SOX, in order to kind of raise a little bit of money for their company.
Starting point is 00:47:30 So what they did is they minted 500 SOX tokens, added a little bit of ETH, and then let this limited edition good go off and start trading. Of course, the token could always be redeemed for physical socks, but what's happened is maybe more amazing. The price here just kind of went up, and like at the moment, socks cost quite a bit. And so what started at $12 is now in the hundreds of dollars for a pair of socks. So the long, as initial liquidity providers, you know, the team is just earning fees on each of these trades. But what's amazing is more that, you know, they produced this limited edition good and then immediately went and found the market for it. And naturally, the price of a limited edition good just kind of went up and up and up with demand until some of the first buyers who maybe bought it at $12, decided to sell it at like $40, $40, $120 to other people who wanted to, to hold these limited edition goods. So if you're talking about something like price discovery on
Starting point is 00:48:34 the mid edition goods, this is an amazing tool to do it, because as there's more demand and as there's more purchases, the price goes up. And so you meet, you kind of, you kind of find out what the real price of this limited edition good should be or can be. Many teams have kind of followed in suit. And in fact, we've seen people selling their time or even things like retweets or legal advice or whatever the case is. And so there are many of these kind of goods and services now available in UNiswap. And I think that that's why we're seeing a lot of new markets created and quite a lot of innovation in the space. One of my favorites is the cafe token, which is a limited edition batch of coffee. That was pre-sold on Uniswap, and then the tokens themselves could be redeemed for bags of coffee beans.
Starting point is 00:49:31 And that type of coming up with the product, making a token for it, adding it on Uniswap, and instantly getting a market for your goods is really incredible and really amazing. And one of the key feature that makes this protocol work really well for maybe the long tail. of assets who otherwise maybe, you know, this could have been too much work to set up an online store or they didn't want to quite go through the process of signing up for like credit card payments or whatever the case is. Instead, they, you know, create tokenized assets, add them on uniswap and then collect their sales in ETH. And then the over the long term, you know, if that asset is really popular in trades a lot, they also just keep on collecting trading fees, which is, which is incredible.
Starting point is 00:50:23 So how does this compare to bootstrapping liquidity on something like Bang Nance or a centralized exchange and order book base exchange? If the UNISOX team, UNISWOP with their UNISOX wanted to get liquidity for their SOX token, how would they even do that? Was that even possible before UNISWAP? Very difficult. And I think at the time, you know, with that UNISWP is coming out, we were hearing stories of token listings costing hundreds of thousands of dollars. and compare that to maybe $2 worth of gas that you pay to create one of these markets, maybe a handful of ETH and tokens that you minted to get the market started. I mean, from that aspect, it's really amazing what's possible here.
Starting point is 00:51:08 I think that when it does come to bootstrapping networks, there have been a few teams that have done it really well. And to be honest, Maker and the Maker token and the Dye token used Uniswap as one of the primary kind of liquidity vehicles. So in a time before these tokens were listed everywhere, Uniswap had some of the deepest liquidity and still have some of the deepest liquidity for Dyan Maker. Do you know, I want to sort of test this thesis with you, Caleb,
Starting point is 00:51:39 and you too, David. So I was trying to think, I mean, Uniswap has really taken off like a rocket as a DFI protocol, like just growing massively. Its volume in March was, incredible. I think beyond what a lot of people expected. So like the question is why? Why was it so successful? Why is it, you know, kind of this 10x improvement from alternatives? And one reason I came up with, so at first I thought, well, maybe it's because it's more decentralized, more censorship
Starting point is 00:52:12 resistance. And those things are true. But the one thing that sticks out to me and everything that you were just talking about is it's permissionlessness. So the fact that anybody can list a token on the exchange, it's almost reminiscent of, you know, the early internet where you had closed platforms like AOL where you have to ask their permission to sort of list websites or, you know, in the Yahoo directory, someone kind of, you know, lists a website versus the open internet, which lets anyone publish a website anywhere at any time. And then, you know, the best websites essentially rise to the top. It creates this long tale of really interesting niche websites, but also this constant churn of, you know, the most successful websites rising to this top. This,
Starting point is 00:53:07 Uniswab almost does that with, with assets. And I think the key part about it is permission lessness. What do you think about that, Caleb? Yeah, I do agree. And I think what, what uniswap has done quite well has made it really simple to go through these steps of creating a permissionless market and permissionless doesn't just mean people i mean it does in a sense but the other aspect of having a permissionless market is that it's extremely easy to integrate uniswap into other products and so what we've seen is like one of the driving factors in uniswap's growth in terms of volume is is definitely it's um its ability for other projects to integrate it and facilitate and send trades to Uniswap in order
Starting point is 00:53:55 to make their own platforms better and improve their own user experiences. I think what you're saying, Caleb, is that Uniswap almost exists as this infrastructure for other money protocols. It's almost like we've talked in a couple of episodes about some of these money protocols, DeFi protocols being almost like emergent organisms. And uniswap is almost an emergent organism that eats assets like ETH and Die, for example, and spits out liquidity. And then it provides that liquidity as a pool for all of the other DFI protocols. So what you're saying is it's, you know, all the other DFI protocols can tap into them and then bootstrap their own liquidity, have a censorship-resistant, unstoppable way.
Starting point is 00:54:48 essentially to trade assets. And that's all been added into the Ethereum superstructure, as David would call it, like this kind of superorganism. Now not only do we have a store of value reserve asset like ether, we also have a liquidity machine, a liquidity robot on top of that, that is also unstoppable in the same way that Ethereum is. Now, I want to dig into that, though,
Starting point is 00:55:15 like censorship resistant and unstoppable, because we talked in an episode about the defy trust spectrum. And we talked about Uniswap being on sort of the far end of the most decentralized and the most autonomous side of the defy trust spectrum, because it really is kind of just code. And it doesn't require human intervention or human governance to run. But like I want to ask you, Caleb, is Uniswap really autonomous and really unstoppable?
Starting point is 00:55:51 And things like the user interface or the team or even the Uniswap. Dotio or dot exchange, excuse me, a domain name, are those vectors of centralization? And could those be stopped? The Uniswap smart contracts and the Uniswap factory cannot be stopped. There's nothing in it that, you know, there's no button that somebody can press to turn off those smart contracts. You know, we did see that the UNISWOP team restricted access to their website and their exchange system to a certain list of countries.
Starting point is 00:56:26 But, you know, what happened in the days following was really amazing to see. So different community members around published their own versions of UNIS on IPFS and made those available on IPFS. So the underlying smart contracts, there's no off button, there's no off switch or anything like that. It's just that, you know, the website in this case, uniswap.com exchange was restricting access to some countries. But then, of course, what happens is that, you know, the website was then made available on IPFS and where it's extremely redundant and essentially available for everybody. I think, you know, that's an amazing property. I probably disagree that, you know, there is some choice that users are making.
Starting point is 00:57:13 And so I would have to say that Uniswap only runs forever. if liquidity providers are there kind of accepting the deal of providing liquidity in exchange for trading fees. And so in some cases, there is this human element of deciding, you know, should I put my liquidity in this pool, in that pool, should I support this project by adding liquidity or whatever the case is? And so I wouldn't say that, you know, it's devoid of human decisions or something like that. I think that we see a lot of human decisions based on what pools are the deepest and winning kind of the liquidity race.
Starting point is 00:57:54 Because at the end of the day, if every liquidity provider withdrew their liquidity, then that would essentially stop a uniswap pool. But that is a decision that would be a collective one that everyone makes and not a forced decision like an administrator, withdrawing everybody's tokens or something like that. And it makes an extremely interesting thing to watch as Uniswalt version 2 comes out, which is that the team themselves cannot force people to upgrade. You know, they actually have to make, if they want people to move to a version 2, they have to make a more compelling product that people actually want to move away from version 1 to version 2.
Starting point is 00:58:34 And so they've actually kind of said themselves, you know, version 1 is going to live forever. It's always going to be there. And at the end of the day, it's up to use a version 1. to decide like, you know, will this thing live on as a public good or will they move their liquidity, attention, trading elsewhere? So you said that there is some human component to it because, you know, ultimately it's humans that are choosing to provide liquidity. But I'm actually going to push back on that and say that the rewards or the returns offered by uniswap turn people, it forces people's hand. And so while there is a human ultimately hitting the deposit button,
Starting point is 00:59:11 Uniswap actually creates incentives to, you know, force the hand of people. So at the end of the day, all blockchain systems are human systems, right? Like even with Bitcoin, you have to choose to run your own node. But with Uniswap, I want to get into both the topic of Uniswap as a Dow and also Uniswap as this perpetually growing feedback loop. And so the original definition of a DAO is something with humans at the periphery and code at the center. And the code at the center has this inherent feedback loop where some people decide to just come and deposit some liquidity, and that makes some people come and decide to trade, which gives those liquidity providers returns,
Starting point is 01:00:02 which those returns incentivize further liquidity. further liquidity deposits, which then allows for a wider participant pool of people to come and trade on uniswap without, you know, severe slippage, right? The more liquidity inside of uniswap, the more viable it is for larger and larger people. And then when larger and larger people come to uniswap, there's more trading fees going to uniswap, which incentivizes further liquidity deposits. And then that, in turn, feeds back into itself and allows for further people. to make more trades on uniswap.
Starting point is 01:00:40 And so while I think that, of course, everything has this human element, this internal mechanism, I think, forces people's hands and almost promises the growth of uniswap as an application. Do you agree with that? Yeah, I do. So I really buy into uniswap being some kind of a Dow-like structure. But ultimately, what you're describing is a virtuous circle where, as long as traders show up, liquidity providers will be there to accept their trading fees. And in this case, the parameters that UNISWP kind of guessed for trading fees and everything else,
Starting point is 01:01:18 you know, were suitable enough to actually grow these markets into really substantial infrastructure and really substantial liquidity pools and as a public good. So, you know, I think it's just been incredible to watch the growth of UNISWOP and watch these virtuous circles work themselves out and work themselves up for, you know, these, the most popular uniswap markets. It's really stunning to watch happen in kind of almost real time here. One thing we haven't talked about is how other experiments like this have been tried in the past. So maybe a couple to reflect on Caleb.
Starting point is 01:01:58 So the first was Bankor, which actually had a similar concept as Uniswap. Why was Uniswap more successful and why did its growth accelerate? Well, Bankers sort of stayed stagnant, do you think? Yeah, at some point very soon after launch, you know, this little project with a unicorn emoji logo started getting daily trading volumes, like above this massive ICO project, Bankor. ultimately the two technologies are quite similar and the two product offerings are quite similar. But for me, I think that the difference lies in how easy it was to start pools on Uniswap, how easy it was to start providing liquidity and getting to the point of the virtuous circle. Whereas on bank where everything was a little bit more difficult, a little bit more restrictive.
Starting point is 01:02:55 The code is more difficult to read and parse and integrate into smart contracts. And I think at the end of the day, if you're looking at the developer community who wants to integrate something, that's, you know, infrastructure should be simple so that it's secure. And I think like that that is like one, one of the key points of looking at UNISWOP. You can see it. You can read the contract in a few hours and figure out like, yeah, this thing is is going to run for a while. I think that that's kind of ultimately what made uniswap really popular initially and got its volumes and kick-started its volumes that has now allowed for this long tail of assets to live on its platform and be traded every day. I definitely like the uniswap approach too. I think you said when we were getting started with this that you were attracted to uniswap because it was a public good.
Starting point is 01:03:51 We'd just come out of the ICO craze and bank or, you know, I don't know what they raised, 50 million. And here's the little uniswap with a $100,000 grant from the Ethereum Foundation creating something that's better. Was it 10,000? It's just some some tiny amount, one developer. It's actually Hayden Adams, I believe it was his first actual software program that he ever built. And he did this and outcompeted a $150 million ICU. I think that just, This shows you that what you need is a good mechanism and simple is better. There are some other decentralized exchange approaches that have been tried on Ethereum that are still in progress and getting some uptake too. But how would you contrast uniswap and its success to something like the zero X protocol, which is more of a peer-to-peer type order book protocol?
Starting point is 01:04:54 what's the difference in your mind? I think order books have places. I'll just say when it comes to a product like uniswap where you do trade against a smart contract, it's frictionless. I mean, it really feels like magic the first time that you swap tokens on it. And when it comes to integrating token swaps
Starting point is 01:05:15 into smart contracts and into applications, that same frictionless experience exists for developers. So if you're saying like, well, you know, why can't we make a order book exchange that makes everything completely smooth for users? I just think that it's very difficult to compete with a protocol that's built to do one thing in one transaction. And so at the end of the day, this thing is the scope of uniswap is not huge. At least uniswap version one, the scope is just token swaps and liquidity provision.
Starting point is 01:05:50 And it's very good at what it does. It doesn't overreach or extend. It makes it really quick, simple for users. And I think that is very, very difficult to compete with and makes it extremely compelling infrastructure layer. Whereas with order books, they are just more difficult to use generally. Yeah, there's this concept, I think,
Starting point is 01:06:11 that we've seen repeated in the most successful money protocols, defy protocols so far. And that is their tendency to pool state together. And when I say state, I mean basically capital pools, asset pools together, so that you're actually as a user interacting with the contract itself, the capital pool itself, and drawing on that liquidity. You know, synthetics has done this fairly effectively. Maker has also done this effectively. And it's kind of a contrast to the more the peer-to-peer approach that zero-x is taking where, you know, for every cell you have to. to find another peer who's going to buy. With this, the liquidity is always there. So you're just
Starting point is 01:06:57 trading with the money robot. You're just trading with the pooled capital. And it seems like that is a much more scalable way to create these money protocols and maybe why we've seen them be so successful. But is there an upper limit to that? So I think maybe some of our Bitcoin or friends might say something like, but yeah, like Uniswop's great. It's a nice toy. But, I mean, the volume's happening on Bitmax, the volume's happening on Binance and Coinbase. And it'll never be able to compete against these centralized exchanges. What do you say to that, Caleb? Yeah, I mean, we're kind of celebrating that Uniswap hits 10 million average daily liquidity over, over like March.
Starting point is 01:07:47 But I think it's just a different system. It's just not comparing the same thing across both products. And so there is a lot more volume on other products. But for me personally, I don't feel
Starting point is 01:08:04 I don't feel as invested in whatever happens to BitMax and their liquidity or whatever the cases. I don't feel like Bitmex is doing something good for the Ethereum ecosystem the same way that I definitely feel that way about the uniswap liquidity pools. So Caleb, an article came out not too long ago talking about the core mechanism underlying uniswap, but not just uniswap, some other very integral DFI protocols like balancer and curve finance. And this mechanism has been called a constant function market
Starting point is 01:08:40 maker. Now, this isn't exactly a simple algorithm, at least to explain maybe through a podcast, but I hope you can do your best in explaining the role of a constant function market maker at large, not just through uniswap, and then kind of maybe explaining the pros and cons of that in comparison to the legacy alternatives. The constant product market makers are, you know, the fancy math behind the curves, the pricing curves that we were talking about earlier. And they they are what set the rules that liquidity providers have to trade for. So if you wanted to think about this as, you know, like the house, the house in a casino game or something like that.
Starting point is 01:09:19 Imagine that liquidity providers are that house where, you know, in the game of Blackjack, they abide by certain rules, hit on certain numbers, and so on and so forth. In these cases, the constant product market makers are the set of rules that liquidity providers play by in order to facilitate trades for the traders. And in exchange, of course, they get the trading fee, which is like the house edge for providing that liquidity. So in the case of Uniswap, the math behind the constant product market maker is quite simple. So it's X times Y equals K. And the idea is that this constant product of X times Y, which is asset A times the balance of asset B in the smart contract,
Starting point is 01:10:08 always equals some constant. And so whenever there's a trade, that constant needs to remain the same. And whenever liquidity is added or removed, that constant also needs to be the same. And so the idea is that, you know, these are the rules that everyone in the system plays by. In the case of uniswap,
Starting point is 01:10:26 it's a very, very simple calculation. It's designed for two assets and it's not really designed for more assets. And so now what we're seeing is a very high degree of innovation in terms of the types of pricing curves that are being provided. We're seeing things like multiple assets being batched together into liquidity pools and the price being some function of all of those assets, different price ratios. We're seeing things like the pricing curve being amplified at a specific at a specific
Starting point is 01:11:07 price. So in the case of kind of stable pools, where the two assets are pegged very closely together at a specific price ratio, the curve itself is designed to make better use of the underlying liquidity by kind of flattening itself out around that price target. And so the idea is that, you know, it, you know, who knows if Uniswap got the fee correctly. Who knows if they got the exact math right for this pricing curve? All that we know right now is that it was very simple. And what we're seeing now are alternatives coming along that are more complex and trying to tweak and tune the pricing curve a little bit to meet certain goals. So I think we're, we're just getting started in what I would probably consider, you know, Bankor and Uniswap have been kind of phase one, or year one even,
Starting point is 01:12:02 of liquidity pools. And I think we're just on the cusp of, you know, phase two, which are these more complex pricing curves and more bespoke pricing curves to specific sets of assets. As a kid, Caleb, I used to watch this show called Battlebots, right? And it's basically the idea of, like, you get to, like, people design two robots. And, like, one will have a hammer on top that swings and the other will have, like, a saw of some sort. You put them in a ring.
Starting point is 01:12:31 like the octagon and they fight and you see which one wins right this is kind of what this reminds me of because you're essentially you're taking these math formulas these constant functions or constant products as you call them and you're putting them in the ring that ring is the Ethereum economy essentially and you're they're fighting they're all fighting for liquidity right they're also helping each other but ultimately it's kind of a battle between these bots between these math functions for liquidity. And some might do better in some circumstances, say stable coins. And others might do better in more general purpose circumstances, say, you know,
Starting point is 01:13:14 like uniswap's very simple function for all assets. It kind of reminds me to that. Am I way off base here? Is that what's going on? I love that metaphor. And I think that's the perfect way of looking at it. you know, in some cases, you want the robot with the hammer, and in other cases, you want the robot with the wedge. And so I think, I think that what we'll see is depending on the asset and the types of assets that are being pulled together, certain protocols will win and certain robots will play well against another type of robot.
Starting point is 01:13:50 And then in other cases, we may see that a different protocol wins for a different class of assets. You know, this is one of the more exciting things going on in Ethereum from my point of view. These money robots, I really believe, have a chance of changing how we create markets everywhere for limited edition goods, for bootstrapping token network liquidity, even for initial token sales. And so we're even seeing teams offering their tokens for the first time in almost like like a uniswap initial coin offering type of situation. And so for me, I see that there will be a very bright future for these liquidity pools. And at the end of the day, it benefits traders to have a little bit of competition.
Starting point is 01:14:41 It benefits the people that are building on top of this infrastructure to have some of this competition. And ultimately, you know, the traders will go where they're getting the best prices at the cheapest gas. and the liquidity providers will follow, and then ultimately the developers may follow them, or they might just integrate whatever's easiest. So, you know, I think that it's going to be a really interesting next, like, six months watching these math functions battle it out in the Money Robot Wars, but, you know, that's kind of where we are right now.
Starting point is 01:15:16 And so this is like a particularly exciting point in the journey, and many, many protocols are kind of an hour. announcing their version two, including Uniswap. And we're kind of going, we're getting to see that next iteration of this financial product that I really believe can be mainstream, which is just incredibly exciting. It is super exciting. And I just want to emphasize, because we should zoom out for a minute. So what all of this is doing, essentially, is it is adding a permissionless liquidity source as a public good to the Ethereum network and the Ethereum economy. That's the net benefit to the system of Uniswap existing and Uniswap playing its scarcity game, as we've called it
Starting point is 01:16:05 in the past, because everyone has an opportunity to trade as a protocol. So no bank required, essentially. Anyone has an opportunity to list their asset. Again, no exchange, no bank required. Anyone has an opportunity to bootstrap their asset. And this is additive to the Ethereum economy in general. It creates a bankless way to complete all of those money verbs. And it does so as a public good. And I think we're just beginning to see the secondary effects of what a public good as a liquidity source can do to the Ethereum economy and for these other money protocols too. So we're just at the cusp. But there's one last thing I think we should talk about here on the subject of public goods. So we've talked about uniswap so far as being a public good for liquidity. But in uniswap v2,
Starting point is 01:17:05 it's doing something else. It can actually be used as a price oracle. And I want to discuss that with you, Caleb. So first, can you talk about what a price oracle is and maybe why it's important? Sure. So a price oracle is defining a price of the assets using some underlying data. And typically, you know, Ethereum knows about Ethereum. It doesn't really know anything else about Ethereum. And so typically these price workables may come from markets external to Ethereum with data that's brought on-chain by Oracle Services. But what Uniswap is proposing is they're saying, look, we have, we know every trade that goes on Uniswap.
Starting point is 01:17:53 They're all on-chain. So why don't we just look at the price? And then we'll have this on-chain price source where we don't have to worry about if an exchange misrepresents price of an asset or if we miss a transaction, bringing that API data on-chain or something like that. We don't have to worry about any of that. It's all sitting right here.
Starting point is 01:18:14 Now, teams have previously tried to use Uniswap as a price circle, and there's been some downsides to doing that or some potential attack vectors to doing that. So one of these attack vectors is essentially, if you make a really big trade on Uniswap, you can crash the price of an asset, and then use the crash price of an asset to carry out some other transactions elsewhere
Starting point is 01:18:40 on the network. And so what Uniswap is proposing in its next version is actually to add some time waiting to its price oracle. So in other words, it wouldn't just be a matter of making one trade, maybe using a flash loan or something like that, but it would actually require a sustained downward pressure on the price to manipulate its on-chain price circle, which is time-waded. So that's kind of the idea that they're proposing. I think it's great that they're branching out into using their trading data for another public good here.
Starting point is 01:19:16 And I'm very, very eager to kind of see what happens with this. I almost see this as, you know, they've created obviously this amazing public good that we're spending so much time on. But I think that this is another one that could ultimately be quite powerful for the network. So recently we discussed the mechanism of constant function market makers. And one of the many reasons why those things are cool is because every single constant function market maker produces an Oracle. And so not only Uniswap is an Oracle, but also Curve is also now an Oracle and balancers, also now an Oracle.
Starting point is 01:19:54 And then we also discussed the perpetual feedback loop of uniswap growth, where liquidity begets liquidity. You put in liquidity, you incentivize trading to incentivize more liquidity. and all of a sudden, uniswap can grow into this very large, high liquidity structure. And for things like a constant function market maker that has a large amount of liquidity, that produces censorship resistance in the Oracle. And so that same liquidity bootstrapping mechanism also applies to things like balancer, right? And so maybe if both of these applications, you know, grow and grow and grow in liquidity,
Starting point is 01:20:33 they're also growing and growing and growing in censorship resistance of that Oracle. Do you think that that is the long-term solution for the Oracle problem inside of the Ethereum ecosystem, or is there still a chink in the armor somewhere? That's kind of the question. And I'm not sure, to be honest. I think that time waiting adds some guarantees in theory, but we've seen some very clever attack vectors. And so if we're talking about kind of building, you know, using this as a, as a core piece of infrastructure or something like that, you know, I think that we're going to see,
Starting point is 01:21:09 you know, over the next year, two years, three years, if this is a suitable price feed mechanism. In terms of kind of the types of projects that, you know, might end up building on this, I think that what we could see are things like prediction markets and options, options, options protocols and things like that, where you really need a strong guarantee on the price of an asset over time. And this may provide it. However, I will say that it's just not, the security guarantees are just not quite clear to me. And I know that using Uniswap as an Oracle has kind of backfired in the past.
Starting point is 01:21:55 You know, whether or not that's, it's not really Uniswap's fault, but it hasn't, there have been issues with reliance. on kind of decentralized pricing from UNISWF, that kind of make me nervous for the first few applications. But I do think that as these initial applications roll out, we're going to see some new and cool uses from it. Ultimately, the main advantage of having it on chain and having it through UNISWF is that it is like unstoppable, sure, but it's also very cheap.
Starting point is 01:22:28 And I think that between being unstoppable and being very easy to query, you know, that's where the advantage will be for up-and-coming infrastructure projects. Yeah, absolutely. And the nice thing about oracles is, of course, they can be additive. So if you have a set of oracles and you add an additional oracle, then you can use that and take the average. You can medianize across all of those. So it can kind of add to the decentralization, even if it's not used exclusively.
Starting point is 01:22:58 So let's finish with this, Caleb. What's really the end game for Uniswap? How big could this thing really get? And what would it, what would the world look like if Uniswap, you know, won? Just in terms of asset trading on Ethereum, I think that that's a huge, you know, goal to ultimately bring in more volume than say centralized exchanges, I think are an easy target. In order to do that, you know, that there are definitely some challenges that need to be overcome. But I do think just, just, just, just, based on the user experience of Uniswap and the permissionless nature and really the trustworthiness of integrating it into projects because of its permissionless nature. It stands a very good chance
Starting point is 01:23:44 at growing quite large. As far as I understand, the end game is that there's obviously a team building this and I think that there will probably need to be raising money out of Uniswap so far there has been no money raised by the team off of the protocol itself, with the exception of selling limited addition goods. And so I think at some point there needs to be like some kind of share of these trading fees that go just a little bit beyond the liquidity providers to ensure that uniswap developers and community developers are motivated to continue growing the ecosystem. and innovating in the constant function market maker space.
Starting point is 01:24:31 So I believe that that's built in as like an option, but in Uniswold version two, but set kind of off by default. But imagine that, you know, a lot of the concerns around, I guess being able to make more transactions through these Uniswalt markets or being able to utilize liquidity better or being able to support new asset types for liquidity providers in more profitable ways.
Starting point is 01:24:56 These are all kind of easy targets for a well-funded team to kind of take on. And I think that that's kind of the intermediate steps towards taking over the world with liquidity pools. So maybe a token in the future to fund the public good itself could happen at some point. Caleb, this has been fantastic. Thank you for telling us all about Uniswap. is one of the three Defy King protocols that we are talking about in this series. Very exciting stuff. It could definitely grow quite large into the billions, maybe trillion someday.
Starting point is 01:25:40 You know, it's not another question. It's not crazy. Caleb, can you tell the listeners where to find you on socials, where to learn more about the analytics projects that you're working on? Yeah, you can find me at Caleb Sheridan on Twitter. And you can visit the website, pools. For more information and statistics about liquidity pools, including Uniswap. Those are definitely the two best places to find me online.
Starting point is 01:26:10 Thank you very much for having me on. It's really been a pleasure. I really enjoy being able to have the opportunity to speak about Uniswap with you. It's really, really an honor. Fantastic, Caleb. Thank you for joining us. So actions for our listeners today, we've got some fantastic articles. for you to read, one of which Caleb actually wrote that was published on bankless,
Starting point is 01:26:31 How to Make Money on Uniswap. David takes us through Uniswap as an emergent organism, the underlying infrastructure of it in another article. We also have some material about the rise of liquidity robots. So catch those articles if you're interested in learning more about Uniswap. Also, we encourage you to try it out. Go to the Uniswap website, actually exchange some eth for die, swap some tokens. If you're feeling particularly brave, research the liquidity returns on pools. FYI, that is the site that Caleb and his team put together. It's fantastic for kind of seeing the range of returns that you might expect in each pool.
Starting point is 01:27:20 Guys, risk and disclaimers, Ethereum is risky, crypto is risky. uniswap is a risky protocol as well. This is not for everybody. We've told you before. Of course, we are headed on the west. This is the frontier. You could lose what you put in, so be careful out there. But we're thankful you're with us on the journey. Thank you for joining us on Bankless, episode 10.

There aren't comments yet for this episode. Click on any sentence in the transcript to leave a comment.