In this video, we are going to cover Liquidity Pools using stories, examples, and analogies so the concept is broken down so much your grandpa could understand it. At least, that’s what we keep saying.
If you don’t know what Liquidity Pools are, you should be excited to learn about them. Liquidity Pools are not imaginary pools filled with water, they are pools filled with money. In fact, they are actually smart contracts that allow traders to trade tokens and coins even if there are no buyers or sellers out there.
Traditional Stock Market
First, let me explain how the traditional stock market works. It uses what is called an “Order Book Model”. This means all the buyers and sellers write down and submit orders for how much of a stock they want to buy and at what price. When two buyers and sellers meet at the same price, the trade is transacted. The buyer gets the stock and the seller gets the cash.
For example, an order book might look like this:
[use this image? https://www.investopedia.com/thmb/vowWnvuSOlE2ZZ8xIi0l7UV8uvg=/1500×1000/filters:no_upscale():max_bytes(150000):strip_icc()/RobinhoodLevel2-9fc2600afd384175b8b6a9af7e37df62.png – keep on screen for the next part so they can look at it)
See here, where someone is asking to buy 16 stocks for 13.45, and here where someone is asking to sell 20 stocks for 13.80. Essentially, when you want to buy a stock on robinhood at “market price” you are just submitting an order to buy all the stocks at the current price that sellers are willing to sell for. If you look on this graph (the left one) you can see how many buyers and sellers there are at different prices.
This is very inefficient because you have to set a price that someone else is willing to buy – at least if you want to sell your stock or buy a stock immediately.
Liquidity Pools
So what’s the solution? It’s a liquidity pool that uses an algorithm. With this algorithm, we will ALWAYS be able to buy and sell an asset, no matter how high or low the price is, no matter what time of day it is, no matter if there is a buyer or seller to meet our needs.
A liquidity pool is a pool of money that contains both assets you are wanting to trade. For this example, we are going to be using Ethereum and Basic Attention Token.
Before we continue, you highly recommend watching our video on Smart Contracts, because they are the technology that allows a liquidity pool to exist. A liquidity pool is nothing more than code. It is a smart contract written in a way that will hold funds, do math, and allow you to trade based on that math.
The pool starts off with an exact ratio of 50:50. This means if you wanted to give the pool $500 to trade with, you must give it $250 of Ethereum and $250 of BAT.
Why? Well, you’ll see in a minute.
Most Liquidity Pools use an algorithm called “a Constant Product Automated Market Maker” and if you have no idea what that is – we HIGHLY recommend you watch our video on it – we recently just posted a video that explains it super simply using apple and potato farmers – it breaks down the math using examples and the algorithm using an analogy. We think it’d be super helpful!
Anyways, as you buy more and more Basic Attention Token from the pool, by giving it Ethereum, it will slowly raise the price that you are paying for each BAT. For example, the first one might be $1.20. The next one might be 1.20 and 1/10 of a penny, then the next one might be 1.20 and 3/10 of a penny…. and after you buy 100 BAT, the price might be $1.50.
So think about it like this: as you buy more and more BAT, the liquidity pool charges you more for each one. This is because it wants to keep a perfect 50:50 ratio of Ethereum and BAT. Well, as you’re buying more BAT, you are giving it Ethereum, so it thinks the price of Ethereum is dropping, and to keep the 50:50 value ratio, it will raise the price of BAT.
If you’ve made it this far without watching our AMM video, congrats, but if you’re confused… go watch that video and this one will make almost perfect sense.
Something to keep in mind with liquidity pools is that every transaction has a tax, it will cost a very small percentage of each trade to make the trade… and we will go over where that money goes in a minute.
Routing
One thing I want to mention, is what if we have a bunch of Basic Attention Token and want to trade it for some of the Graph Token? Well, most decentralized exchanges will just hook up two liquidity pools to allow you to perform that trade. For example, you tell it you have BAT and want to buy GRT… it’ll do two swaps. The first one… it will do BAT to ETH, then it’ll do ETH to GRT… essentially swapping out BAT for GRT for you. The technical term for this is Routing. The decentralized exchange will route some trades for you so that you can essentially trade any token on their platform for any other token.
Liquidity Providers
So now that you know roughly how a liquidity pool works, let’s go over why you would want to put money into one. When you do this… when you put money into a liquidity pool – you are called a Liquidity Provider.
Remember how I said every trade takes a very very small fee? Well, as more and more people trade, those fees add up. Where do those fees go? They go to the liquidity provider. So let’s say you put in $500 of Ethereum and $500 of BAT into a pool. Your friend decides to join you, so now there is $2000 total in the liquidity pool. As people are trading in and out all day long, let’s say you rack up $150 in fees. Well, since you owned 50% of that pool (because your friend owned the other half) you earn $75 for providing that liquidity.
Yes, these fees can add up to a substantial amount in the current atmosphere – some Dexes offering up to 500% APR – this is because they are making a boatload of money from the fees and since this technology is new, there aren’t very many investors.
As more people join the pool, your cut gets less and less, but it also makes the price more stable. As the pool grows in liquidity, it takes much more money to move the price of both assets.
For example, if someone came to your $2000 liquidity pool and dropped in $500 to trade ETH for BAT, they could raise the price of BAT a whole bunch because they essentially bought a ton of it up. Now there’s not much in the pool, but there’s a ton of ETH, and because of how the AMM algorithm works, BAT will cost more, and ETH will be cheaper. Well, if there was $5,000,000 of liquidity in the pool, that same $500 buy wouldn’t move the price much because it would barely take any BAT out, and barely give any ETH, in proportion of how big the pool is.
Price Impact
A term you need to know is Price Impact. This means “How much can I affect the price by buying from this liquidity pool”. If the pool is small, there will be a high price impact – you will affect the price a lot… and in some cases you can double or triple the price of an asset very easily. However, as the pool gets larger and larger, the price impact gets smaller, and large buy ins affect the price less.
Arbitrage Traders
Another thing worth mentioning is something called “Artbitrage traders”. Remember how I said if someone buys a bunch of BAT, that the price of Ethereum would drop? Well, at least in that pool. Ethereum might be $450 for each Ethereum in that pool after someone gave it a ton of Ethereum to buy BAT. Well, what if you could sell Ethereum to coinbase for $500? You could go buy a bunch of ethereum from that pool and sell it to Coinbase and make $50 off every Ethereum you sell. This is called Arbitrage Traders. And you might be like “Why are they going to trade if all they are going to do is scoop up the profits?” Well, that is exactly what they are doing, but they are also paying that .3% fee, AND they are helping to keep the pool prices the same as other exchange prices – they are essentially helping to keep a stable price of that token by ensuring it’s the same price among all exchanges. If it’s not, they can buy at a place that sell it cheap, and sell at a place that buys it at a higher price.
One more thing about the power of liquidity pools. They can get very complicated very quickly, for example Balancer is a platform that currently allows up to 8 assets in a single liquidity pool – the math on that is crazy, but it shows the limitless possibilities of defi.
There are also risks involved with investing in Liquidity pools – for example two big ones are Impermanent Loss and Rug Pulls. Those are both topics for another video, but you should keep them in mind when investing in these highly profitable liquidity pools. If you’ve enjoyed this video, please reward our hard work by clicking that thumbs up below and consider subscribing to get notified when we post a video about Impermanent Loss and Rug Pull – we promise to make the topic so simple your grandpa could understand it! Thanks so much for watching, we hope you learned something, and we’ll see you in the next video!