Uniswap

Uniswap is one of the leading decentralised cryptocurrency exchanges in existence. Uniswap V1 was launched on the Ethereum Mainnet on Nov 2, 2018.

What is Uniswap?

Uniswap is a decentralised application (dApp)

Uniswap is a protocol for creating liquidity and trading ERC-20 tokens on Ethereum. It eliminates trusted intermediaries and unnecessary forms of rent extraction, allowing for fast, efficient trading.

Uniswap is a DEX that allows users to trade cryptocurrencies without an intermediary. It’s one of the most popular and largest DEXs in the market.

DEX Aggregators

DEX aggregators play a critical role in the cryptocurrency market. These platforms provide a consolidated and simplified interface for users to access the liquidity pools of various exchanges. The primary function of these aggregators is to help users find optimal trading conditions, especially in terms of pricing and liquidity.

Centralised Cryptocurrency Exchanges (“CEX”)

Centralised cryptocurrency exchanges act as an intermediary between a buyer and a seller and make money through commissions and transaction fees. You can imagine a CEX to be similar to a stock exchange but for digital assets.

Decentralised Cryptocurrency Exchanges (“DEX”)

A decentralised exchange is another type of exchange that allows peer-to-peer transactions directly from your digital wallet without going through an intermediary. Examples of DEXs include Uniswap, PancakeSwap, dYdX, and Kyber.

Uniswap is a decentralised exchange (DEX) that allows users to trade and swap cryptocurrencies without the need for intermediaries. It’s built on the Ethereum blockchain and uses smart contracts to create liquidity pools and automated market makers (AMMs). 

Below are the top 10 decentralised cryptocurrency exchanges:

uniswap
  1. Uniswap (v3)
  2. dYdX
  3. Curve Finance
  4. Kine Protocol
  5. PancakeSwap (v2)
  6. DODO (Ethereum)
  7. Sun.io
  8. ApolloX DEX
  9. Uniswap (V2)
  10. Perpetual Protocol

Key features of Uniswap:

  • Trustless: Users can trade directly from their own wallets, without giving up control of their private keys. 
  • Permissionless: Anyone can list any ERC-20 token on Uniswap by creating a liquidity pool. 
  • Open source: The Uniswap blockchain’s code is public and can be viewed and contributed to by anyone. 
  • No listing fees: Uniswap doesn’t charge fees to list new coins, unlike centralised exchanges. 
  • Self-custody: Users always retain control of their assets. 
  • Constant product formula: Uniswap uses a formula that ensures that the total liquidity in a pool remains stable. 
  • Trading fees: Traders pay trading fees to liquidity providers, who receive 100% of the fees. 

Uniswap was created in 2018 by Hayden Adams, a former mechanical engineer at Siemens.

In May 2021, Uniswap went through a significant revamp by launching V3.

Uniswap is based on Automated Market Making (AMM) protocol. The trades are against smart contracts or liquidity pools, and a mathematical formula determines the price of assets. The liquidity providers add liquidity to the pools that help to make a market.

In Uniswap liquidity pools, the ratio of the trading asset pairs should be constant. The mathematical expression is

Where,

X — Reserve of the first asset.

Y — Reserve of the second asset

The liquidity providers should add liquidity in such a way that K experiences no change.

Uniswap V1

Uniswap V1 only supports the swapping of ETH-ERC 20 pairs.

If the user wishes to swap USDC for DAI, the first step would be swapping USDC for ETH, succeeded by the swapping of ETH-DAI to get DAI. Uniswap V1 also facilitates the concept of LP tokens.

When the Liquidity Providers (LPs) add liquidity to any pool, they receive LP tokens representing the added liquidity. These LP tokens can then be staked or burned to redeem rewards. A 0.3% trading fee is incurred to reward the liquidity providers.

Uniswap V2

The Uniswap V1’s Proof-of-Concept was a great hit, and this boosted the network to launch an updated version of Uniswap v2 in May 2020. The major drawback with the Uniswap V1 was the “ETH bridging” problem, i.e., the absence of ERC20-ERC20 token pools.

This resulted in escalated costs and high slippage when a user wants to swap one ERC20 token.

Uniswap V2 is way better than V1 in user interface and experience. Also, it eliminated the ETH bridging problem by letting in the concept of ERC20-ERC20 pools.

Another significant difference is the usage of wrapped ETH in the core contracts instead of native ETH. However, the traders can use ETH through helper contracts.

Uniswap V2 Flash Swap

Uniswap V2’s concept of Flash Swap allows users to withdraw any amount of ERC20 tokens without having to pay upfront.

But they could either pay for the tokens withdrawn or pay for a portion and return the rest or return all the withdrawn tokens. These things can be done at the end of the transaction execution.

Uniswap V2 also introduced a protocol fee.

Community governance plays a vital role in turning this fee on or off. A protocol fee of 0.05% of the total 0.3% trading fee will be reserved for the development of the Uniswap platform that shapes the roadmap of the network.

Uniswap V3 — The Latest Version

Uniswap V3, when compared to V1 and V2, has better capital efficiency and accuracy. Furthermore, the fee structure is very flexible.

The Liquidity providers can get high returns on their capital and provide liquidity. The main aim of Uniswap V3 is to surpass stablecoin-based AMMs and centralized exchanges by facilitating low-slippage trade execution.

Features of Uniswap V3

Concentrated Liquidity

The liquidity providers can estimate the shape of the AMM as they can build unique price curves based on their preferences. LPs’ capital can be centralized within custom price ranges, enhancing the liquidity at desired prices.

Liquidity is Active

When the market experiences price change and goes beyond the LP’s specified price range, the liquidity is automatically removed from the pool and will no longer earn rewards.

The liquidity will be shifted to the less valuable asset while waiting for the market to arrive at the specified price range. It ensures the wellbeing of the liquidity providers in the Uniswap trading ecosystem. At the same time, LPs can update their price range to meet the current market price range to start getting rewards again.

Flexible Fee

Uniswap V1 had a flat fee of 0.3%, and the entire fee was allocated for rewarding LPs. In Uniswap V2, 0.05% of the total fee was reserved for the development of the network.

Uniswap V3 arrives at community governed flexibility through three various fee tiers:

⦁ Stablecoins like DAI/USDC has a fee of 0.05%

⦁ Standard non-correlated pools like ETH/DAI incurs a fee of 0.3%

⦁ And 1.00% for the non-correlated pairs.

By default, the protocol fee is off. But it can be turned on through governance for particular pools, and the fee can be set between 10%-25% of LP fees.

1 thought on “Uniswap”

  1. Pingback: dApp - Decentralised Applications - pinkpolygon.site

Comments are closed.

Scroll to Top