A summary of the how liquidity pools work
In order for liquidity pools to function in the way that leads to the outcomes laid out in the previous page, i.e. greater decentralisation of projects and increasing liquidity, there are a number of key aspects worth understanding:
token weighting;
pricing;
market-making functions;
LP tokens.
(much of the following is taken from the official documentation from Osmosis Labs).
Liquidity pools are simply clusters of tokens with pre-determined weights. A token's weight is how much its value accounts for the total value within the pool.
For example, Uniswap pools involve two tokens with 50-50 weights. The total value of Asset A must remain equal to the total value of Asset B. Other token weights are possible, such as 90-10.
With fixed predetermined token weights, it is possible for AMMs to achieve deterministic pricing, i.e. outcomes are precisely determined through known relationships among states and events, without any room for random variation. As a result, tokens in LPs maintain their value relative to one another, even as the number of tokens within the pool changes. Prices adjust so that the relative value between tokens remains equal.
For example, in a pool with 50-50 weights between Asset A and Asset B, a large buy of Asset A results in fewer Asset A tokens in the pool. There are now more Asset B tokens in the pool than before. The price of Asset A increases so that the remaining Asset A tokens remain equal in value to the total number of Asset B tokens in the pool.
Consequently, the cost of each trade is based on how much it disrupts the ratio of assets within the pool. Traders prefer deep liquid pools because each order tends to involve only a small percentage of assets within the pool. In small pools, a single order can cause dramatic price swings; it is much more difficult to purchase say 1,000 ATOMs from a liquidity pool with 2,000 ATOMs than a pool with 2,000,000 ATOMs.
AMMs leverage a formula that decides how assets will be priced in the pool. Many AMMs utilise the Constant Product Market Maker model (x * y = k). This design requires that the total amount of liquidity (k) within the pool remains constant. Liquidity equals the total value of Asset A (x) multiplied by the value of Asset B (y).
Other market-making functions also exist, you can find out more about these here.
When a user deposits assets into a Liquidity Pool, they receive LP tokens. These represent their share of the total pool.
For example, if Pool #1 is the OSMO<>ATOM pool, users can deposit OSMO and ATOM tokens into the pool and receive back Pool1 share tokens. These tokens do not correspond to an exact quantity of tokens, but rather the proportional ownership of the pool. When users remove their liquidity from the pool, they get back the percentage of liquidity that their LP tokens represent.
The collection of the mechanisms above is used to ensure liquidity pools are able to maintain a stable price and ultimately work as a traditional market maker would do.
However, in order to achieve their ultimate goals, encouraging token holders to provide liquidity to pools is required.
The aspects in place to do so is what is known as ‘liquidity mining’ or ‘yield farming’. Contributing to a pool makes an individual a liquidity provider (LPs).
Liquidity providers earn through fees and special pool rewards. LP rewards come from swaps that occur in the pool and are distributed among the LPs in proportion to their shares of the pool’s total liquidity. So where do the rewards themselves come from?
Liquidity rewards are derived from the parameters laid out in the genesis of the AMM, in the case of the Cosmos Ecosystem this is Osmosis. For Osmosis, each day, 45% of released tokens go towards liquidity mining incentives.
When a liquidity provider bonds their tokens they become eligible for the OSMO rewards. On top of this, the Osmosis community decides on the allocation of rewards to a specific bonded liquidity gauge through a governance vote.
Bonded Liquidity Gauges are mechanisms for distributing liquidity incentives to LP tokens that have been bonded for a minimum amount of time. For instance, a Pool 1 LP share, 1-week gauge would distribute rewards to users who have bonded Pool1 LP tokens for one week or longer. The amount that each user receives is in proportion to the number of their bonded tokens.
The rewards earned from liquidity mining are not subject to unbonding. Rewards are liquid and transferable immediately. Only the principal bonded shares are subject to the unbonding period.
However, as with any opportunity for gain, there is of course some degree of risk; i.e. an individual could be better off holding the tokens rather than supplying them.
This outcome is called impermanent loss and essentially describes the difference in net worth between HODLing and LPing (more here). Liquidity mining mentioned above helps to offset impermanent loss for LPs. There are also other initiatives within the Osmosis ecosystem and beyond exploring other mechanisms to reduce impermanent loss.
At the time of writing CHEQ is currently only available for liquidity providing on the Osmosis DEX.
The CHEQ token is available in two pools:
First, head to Osmosis and click enter the lab.
Once you’ve agreed to terms and you’re ‘in the lab’ you’ll see some trading pairs and a button to connect your wallet (bottom left of the dashboard).
You can then select Keplr wallet which will automatically connect to your Keplr wallet if you’ve already set it up as a Browser extension.
Next, you’ll need to deposit the assets you would like to contribute towards a Liquidity Pool. You can see the available Liquidity Pools under ‘Pools’. For example, if you would like to contribute to the Pool #602 : CHEQ / OSMO, you will need to deposit both of these tokens.
To do so, select ‘Assets’ and find the tokens you would like to deposit to contribute to the pool.
Note: if you already hold OSMO in your Keplr wallet you won’t be required to deposit.
Once you have deposited enough tokens for both sides of the pools (i.e. ensure that if the pool is setup as 50:50, you must have the equivalent amount is USD on both sides)
Next, find your pool and select ‘Add/ Remove Liquidity’.
Here you’ll be able to add tokens on both sides of the pool.
On selecting ‘Add Liquidity’ you’ll then be directed back to Keplr to approve the transaction (a small fee is required).
Once you have added liquidity to the pool, you’ll receive your LP tokens (a token representing your share of the total pool). Now it’s time to start ‘Liquidity Mining’.
You’ll now be able to see your total Available LP tokens. Below this you’ll see an option to Start Earning.
Once here you’ll see a few options for your unbonding period (i.e. the amount of days it takes to remove your tokens from the pool if you decide to withdraw). The longer you choose to bond your tokens, the higher the rewards you’ll be eligible to earn.
Next select the amount of your LP tokens you’d like to contribute to the pool and finally hit ‘Bond’ (this will kick off another approval through a Keplr pop-up).
You’ll now see your total bonded tokens. Each day rewards will then be distributed. When you decide to withdraw from the pool you’ll simply need to select ‘Remove Liquidity’ and select the amount you’d like to withdraw.
Overall, Liquidity Pools are an incredibly exciting and equalising tool, which represent the true nature of the DeFi and Web3.0 movement. Where for many years engaging in and benefiting from such financial systems was reserved solely for the wealthiest individuals and large organisations, now anyone can gain access and start contributing to their favourite projects, voting on their future direction and earning from the part they play.
An overview of Automated Market Markers & Liquidity Pools
Liquidity pools are an innovative solution within DeFi to create the mechanics of a market maker in a decentralised fashion. Although often met with confusion, they are simply clusters of tokens with pre-determined weights. A token's weight is how much its value accounts for the total value within the pool. Liquidity Pools are an exciting and equalising tool, which represent the true nature of the Decentralised Finance (DeFi) and Web3.0 movement.
This blog will offer some insight into Liquidity Pools.
Here we’ll explain what a liquidity pool is and why they are needed in decentralised finance (DeFi) but first, like many things in the Web 3.0 and DeFi space, it’s important to understand the existing world of trade finance.
Traditional exchanges, i.e. Nasdaq, London Stock Exchange, STAR, work through an order book model which records the average of the current bid and ask prices being quoted. In this model buyers and sellers come together to trade; buyers simply try to buy at the lowest price possible, and sellers try to sell for the highest price.
For a trade to be completed both parties must agree on a fair price meaning either the buyer comes up or the seller goes down. However, it’s not that simple because finding someone who wants to both buy that specific amount and for the price they are looking to sell for is unlikely.
Let’s use an example.
You’ve just picked 100 apples on a farm but suddenly you have to leave town and need to sell every single one of them. You have to sell them at the market price of $1 in order to have enough to pay the farm their fee. You can’t find anyone willing to pay at this price and you can’t take them with you. You’re stuck. This is where market makers come in handy.
In this example, the market maker would be an individual or company who is permanently on hand to purchase the apples at the market price of $1. When you place a market order to sell your apples, the market maker will buy them from you even if it doesn’t have a buyer lined up. Likewise, the reverse is also true; a buyer can purchase the apples even if a seller isn’t lined up.
Market makers in return earn a profit through the spread between the bid and offer price as they bear the risk of covering the apple which may drop below the market price. Without them, it would take considerably longer for buyers and sellers to be matched up, which in turn would reduce liquidity, making it more difficult to enter or exit positions (or leave town). They also track the current price of assets by changing their prices — hence they ‘make’ the market. This is the same method that Centralised Exchanges, such as Coinbase and Binance, work, however, it is not truly decentralised whilst you have a market maker acting as an intermediary to exchange.
That said, although it is valuable to buyers and sellers alike, as market makers perform this delicate balancing act, they command a disproportionate amount of power over the market and ultimately act as an intermediary… a big no in the decentralised vision.
Where traditional finance requires expensive and centralised intermediaries which have a level of power to manipulate prices, AMMs allow digital assets to be traded in a permissionless and automatic way.
This both embodies the ideals of blockchain and decentralisation generally and offers users and companies unique opportunities to trade more efficiently and cheaply whilst having total trust in the system makes it so. Before they arrived on the scene, liquidity, i.e. how easy it is for one asset to be converted into another, often fiat currency without affecting its market price, was difficult for DEXs.
Photo credit:
AMMs offer a solution to scarce liquidity through liquidity pools; a shared pot of tokens that users can trade against. Users can create a liquidity pool and others can supply tokens to it. In return, like with traditional market makers, those that are willing to take on the risk of providing liquidity to the pool earn fees and other rewards. An explanation specific to . At the time of writing Osmosis’ liquidity pools contain about $544 million in total value locked (TVL).