Understanding Returns | Uniswap (2024)

Uniswap incentivizes users to add liquidity to trading pools by rewarding providers with the fees generated when other users trade with those pools. Market making, in general, is a complex activity. There is a risk of losing money during large and sustained movement in the underlying asset price compared to simply holding an asset.

Consider the case where a liquidity provider adds 10,000 DAI and 100 WETH to a pool (for a total value of $20,000), the liquidity pool is now 100,000 DAI and 1,000 ETH in total. Because the amount supplied is equal to 10% of the total liquidity, the contract mints and sends the market maker “liquidity tokens” which entitle them to 10% of the liquidity available in the pool. These are not speculative tokens to be traded. They are merely an accounting or bookkeeping tool to keep track of how much the liquidity providers are owed. If others subsequently add/withdraw coins, new liquidity tokens are minted/burned such that everyone’s relative percentage share of the liquidity pool remains the same.

Now let’s assume the price trades on Coinbase from $100 to $150. The Uniswap contract should reflect this change as well after some arbitrage. Traders will add DAI and remove ETH until the new ratio is now 150:1.

What happens to the liquidity provider? The contract reflects something closer to 122,400 DAI and 817 ETH (to check these numbers are accurate, 122,400 * 817 = 100,000,000 (our constant product) and 122,400 / 817 = 150, our new price). Withdrawing the 10% that we are entitled to would now yield 12,240 DAI and 81.7 ETH. The total market value here is $24,500. Roughly $500 worth of profit was missed out on as a result of the market making.

Obviously no one wants to provide liquidity out of charitable means, and the revenue isn’t dependent on the ability to flip out of good trades (there is no flipping). Instead, 0.3% of all trade volume is distributed proportionally to all liquidity providers. By default, these fees are put back into the liquidity pool, but can be collected any time. It’s difficult to know what the trade-off is between revenues from fees and losses from directional movements without knowing the amount of in-between trades. The more chop and back and forth, the better.

Why is my liquidity worth less than I put in?

To understand why the value of a liquidity provider’s stake can go down despite income from fees, we need to look a bit more closely at the formula used by Uniswap to govern trading. The formula really is very simple. If we neglect trading fees, we have the following:

  • eth_liquidity_pool * token_liquidity_pool = constant_product

In other words, the number of tokens a trader receives for their ETH and vice versa is calculated such that after the trade, the product of the two liquidity pools is the same as it was before the trade. The consequence of this formula is that for trades which are very small in value compared to the size of the liquidity pool we have:

  • eth_price = token_liquidity_pool / eth_liquidity_pool

Combining these two equations, we can work out the size of each liquidity pool at any given price, assuming constant total liquidity:

  • eth_liquidity_pool = sqrt(constant_product / eth_price)
  • token_liquidity_pool = sqrt(constant_product * eth_price)

So let’s look at the impact of a price change on a liquidity provider. To keep things simple, let’s imagine our liquidity provider supplies 1 ETH and 100 DAI to the Uniswap DAI exchange, giving them 1% of a liquidity pool which contains 100 ETH and 10,000 DAI. This implies a price of 1 ETH = 100 DAI. Still neglecting fees, let’s imagine that after some trading, the price has changed; 1 ETH is now worth 120 DAI. What is the new value of the liquidity provider’s stake? Plugging the numbers into the formulae above, we have:

  • eth_liquidity_pool = 91.2871
  • dai_liquidity_pool = 10954.4511

"Since our liquidity provider has 1% of the liquidity tokens, this means they can now claim 0.9129 ETH and 109.54 DAI from the liquidity pool. But since DAI is approximately equivalent to USD, we might prefer to convert the entire amount into DAI to understand the overall impact of the price change. At the current price then, our liquidity is worth a total of 219.09 DAI. What if the liquidity provider had just held onto their original 1 ETH and 100 DAI? Well, now we can easily see that, at the new price, the total value would be 220 DAI. So our liquidity provider lost out by 0.91 DAI by providing liquidity to Uniswap instead of just holding onto their initial ETH and DAI."

"Of course, if the price were to return to the same value as when the liquidity provider added their liquidity, this loss would disappear. For this reason, we can call it animpermanent loss. Using the equations above, we can derive a formula for the size of the impermanent loss in terms of the price ratio between when liquidity was supplied and now. We get the following:"

  • "impermanent_loss = 2 * sqrt(price_ratio) / (1+price_ratio) — 1"

  • "Which we can plot out to get a general sense of the scale of the impermanent loss at different price ratios:"Understanding Returns | Uniswap (1)

  • "Or to put it another way:"

    • "a 1.25x price change results in a 0.6% loss relative to HODL"
    • "a 1.50x price change results in a 2.0% loss relative to HODL"
    • "a 1.75x price change results in a 3.8% loss relative to HODL"
    • "a 2x price change results in a 5.7% loss relative to HODL"
    • "a 3x price change results in a 13.4% loss relative to HODL"
    • "a 4x price change results in a 20.0% loss relative to HODL"
    • "a 5x price change results in a 25.5% loss relative to HODL"
  • "N.B. The loss is the same whichever direction the price change occurs in (i.e. a doubling in price results in the same loss as a halving)." -->

Understanding Returns | Uniswap (2024)

FAQs

Why is my transaction expected to fail on Uniswap? ›

The Uniswap interface sets a default slippage limit of 0.5%. This slippage limit is the difference between your expected output and the real output at the time of your swap. If the real output changes by more than your set slippage, the transaction will fail. At your own risk, you can adjust the slippage limits.

Why won't Uniswap let me swap? ›

In this case simple troubleshooting steps may clear the issue. Start by disconnecting and then reconnecting your wallet. Then clear the cookies and the cache of app.uniswap.org in your browser or use a different browser. Try to reload the Uniswap web app by doing a hard refresh.

How to fix insufficient liquidity for this trade on Uniswap? ›

Try reducing the size of your trade and see if that resolves the issue. Check the market: It's possible that there is simply not enough liquidity available for the specific token pair you're trying to trade. Check the current market conditions and consider trading a different pair that has more liquidity.

Is Uniswap liquidity pool worth it? ›

When you provide liquidity to a certain token pool on Uniswap you receive a share of the trading fees generated by the pool. Despite the possibility of added income from LP'ing, it does not come without risks and the value of your LP position can ultimately be worth less than you put in.

Why do I keep getting transaction failed? ›

Insufficient Funds: Usually, payments fail simply because the customer does not have the required funds available in their account to cover the transaction – or because they have exceeded their credit limit. In either case, their bank will typically reject the payment.

Why does my swap keep failing? ›

Failed swap

A swap can fail because of a sudden shift in the exchange price between the cryptocurrencies you're trying to swap. We recommend waiting at least 60 seconds before retrying the transaction.

How to approve a transaction in Uniswap? ›

Here a guide on how to complete an approval transaction:
  1. Enter your swap details.
  2. Select “Approve and swap”.
  3. In your wallet, approve Uniswap to access the token you are swapping. ...
  4. In your wallet, allow the token to be used for swapping. ...
  5. In your wallet, confirm the swap.
Apr 29, 2024

Which swap is better than Uniswap? ›

Pancake Swap offers users the ability to trade BEP-20 tokens, which are native to the Binance Smart Chain. One of the main advantages of Pancake Swap is its significantly lower transaction fees compared to Uniswap. This is primarily due to the Binance Smart Chain's lower congestion and higher scalability.

Why can't I sell my coins on Uniswap? ›

This is most likely due to a scam token, where the token owner has maliciously disabled the transfer function in a way that allows users to buy the token, but not sell them.

What does not enough liquidity mean? ›

Low Liquidity

When you see a message like this, it means that there aren't enough of the tokens you want available in a liquidity pool. In other words, no one on the market is willing to give you the token in exchange for what you are offering.

Why does Uniswap say insufficient funds? ›

Insufficient Funds:

If you do not have enough of your network's native token to cover the network fees, you will not be able to execute a transaction.

How do I increase my Uniswap liquidity? ›

To add liquidity on Uniswap V3:
  1. Open the Uniswap web app. ...
  2. Select “New position”.
  3. Select the token drop-down.
  4. Select the token you want to add liquidity for. ...
  5. After selecting the first token, now select the second token. ...
  6. Select the second token you want to add liquidity for.
  7. Select the fee tier for your pool.
Feb 27, 2024

What is better staking or liquidity pool? ›

Liquidity pools offer potentially higher rewards but require advanced knowledge, understanding of market dynamics, and active participation. Liquid staking is a simpler and more accessible strategy, suitable for beginners or individuals seeking a conservative and consistent approach to earning passive income.

What is the disadvantage of Uniswap? ›

Cons of Uniswap

One of the main drawbacks of being a liquidity provider on Uniswap is the risk of impermanent loss. Impermanent loss occurs when the price of the assets in a liquidity pool diverge, resulting in lower returns for liquidity providers compared to holding the assets themselves.

How much do liquidity providers make on Uniswap? ›

Liquidity provider fees​

There is a 0.3% fee for swapping tokens. This fee is split by liquidity providers proportional to their contribution to liquidity reserves.

Why is my crypto transaction failing? ›

The most prevalent cause of transaction rejection is utilizing an insufficient fee or omitting the fee entirely. During periods of network congestion, low fees become more likely to hinder successful transaction completion.

What does transaction failed mean? ›

The label “transaction failed” has two primary grounds behind it: soft declines and hard declines. Hard decline occurs when the customer's issuing bank rejects the payment due to non-negotiable reasons such as card expiration, invalid card number, or a reported stolen card.

How do I fix a failed ETH transaction? ›

You will need to reinitiate the transaction with an appropriate gas limit. Wallet services will usually suggest a gas limit for your transactions. Alternatively, you can also look at similar/past transactions/contracts which have been successfully processed to find out the gas limit required.

Why can't i sell my crypto on Uniswap? ›

This is most likely due to a scam token, where the token owner has maliciously disabled the transfer function in a way that allows users to buy the token, but not sell them.

Top Articles
7 Types of Pre-Employment Tests | CPS HR Consulting
Read/Write JSON Files with Node.js
Foxy Roxxie Coomer
Ymca Sammamish Class Schedule
Air Canada bullish about its prospects as recovery gains steam
Beds From Rent-A-Center
Hay day: Top 6 tips, tricks, and cheats to save cash and grow your farm fast!
41 annonces BMW Z3 occasion - ParuVendu.fr
Scentsy Dashboard Log In
Pollen Count Central Islip
All Obituaries | Ashley's J H Williams & Sons, Inc. | Selma AL funeral home and cremation
How To Delete Bravodate Account
Unit 1 Lesson 5 Practice Problems Answer Key
Little Rock Arkansas Craigslist
Oppenheimer Showtimes Near Cinemark Denton
Troy Athens Cheer Weebly
Bjork & Zhulkie Funeral Home Obituaries
Busted Newspaper S Randolph County Dirt The Press As Pawns
24 Hour Walmart Detroit Mi
Nhl Wikia
Craigslistjaxfl
Silive Obituary
Is The Yankees Game Postponed Tonight
Beverage Lyons Funeral Home Obituaries
Amazing Lash Studio Casa Linda
Yonkers Results For Tonight
Dark Entreaty Ffxiv
Meta Carevr
Publix Christmas Dinner 2022
Mobile crane from the Netherlands, used mobile crane for sale from the Netherlands
Tu Housing Portal
Inmate Search Disclaimer – Sheriff
Napa Autocare Locator
Eaccess Kankakee
Strange World Showtimes Near Atlas Cinemas Great Lakes Stadium 16
Marine Forecast Sandy Hook To Manasquan Inlet
Joe's Truck Accessories Summerville South Carolina
Scanning the Airwaves
Instafeet Login
Cherry Spa Madison
10 games with New Game Plus modes so good you simply have to play them twice
Craigslist Florida Trucks
Mid America Irish Dance Voy
Brandon Spikes Career Earnings
Anthem Bcbs Otc Catalog 2022
Mynord
Matt Brickman Wikipedia
Mega Millions Lottery - Winning Numbers & Results
Www Ventusky
Latest Posts
Article information

Author: Aron Pacocha

Last Updated:

Views: 5803

Rating: 4.8 / 5 (68 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Aron Pacocha

Birthday: 1999-08-12

Address: 3808 Moen Corner, Gorczanyport, FL 67364-2074

Phone: +393457723392

Job: Retail Consultant

Hobby: Jewelry making, Cooking, Gaming, Reading, Juggling, Cabaret, Origami

Introduction: My name is Aron Pacocha, I am a happy, tasty, innocent, proud, talented, courageous, magnificent person who loves writing and wants to share my knowledge and understanding with you.