Uniswap

Uniswap

What is Uniswap?
  • First Automated Market Maker featuring liquidity pools (having first movers advantage)
  • Decentralized exchange
  • One of the most forked projects, meaning people use its code to build different applications
  • Allows trading ERC-20 tokens without an exchange directly
Uses an Automated Market Maker (AMM) to determine price of coin on an exchange
  • Called “Constant Product Market Maker Model”
  • X*Y=K
  • Ex 1: 10ETH (Pool A) * 10,000DAI (Pool B) = 100,000 (Constant)
    • If I bought 1ETH, Pool A would now be 9TH
    • You find the amount of DAI left by doing Constant/Pool A (100,000/9ETH)
      • Therefore, 11,111 DAI = 1ETH
  • Ex 2: 10ETH (Pool A) * 10,000DAI (Pool B) = 100,000 (Constant)
    • If I bought 9ETH, Pool A would now be 1TH
    • You find the amount of DAI left by doing Constant/Pool A (100,000/1ETH)
      • Therefore, 10,000 DAI = 1ETH
How Uniswap Works (In-Depth)
Versions of Uniswap
Uniswap V1 (November 2018)
  • Allowed trading ETH to ERC-20 tokens only
Uniswap V2 (May 2020)
  • Trading to ERC-20 to ERC-20 tokens added
Uniswap V3 (May 2021)
  • More effective use of capital and efficient trading
How to use Uniswap
  1. Get Metamask
  2. Go to Uniswap.org
  3. Connect Uniswap to Metamask
  4. Begin trading
    1. Be aware of a price slippage
      1. Usually because Uniswap has to broadcast transactions onto Ethereum
    2. It’s possible to cap your slippage if needed
Uniswap’s Native UNI token
  • Airdropped in September 2020
  • A governance token
    • Allows Uniswap users to decide on future development