Web3 Learning Notes
  • Web3 Learning Notes
  • 📖Crypto Basis 101
    • Blockchain & Cryptocurrency
    • Start dealing with Crypto
    • To invest safe
    • Risk Management
    • Web 3.0: User Ownership
    • Rethinking 'Why Crypto?'
  • 💰DeFi
    • What is DeFi
    • Stablecoin 101
    • Journey of a transaction
    • MEV (Miner Extractable Value)
    • Crypto Derivatives
    • To play safe in DeFi
    • DeFi Tools
  • 🧠DEFI Innovations
    • Lending & Borrowing
      • AAVE V3
      • Morpho - APY Optimiser
      • SILO - Risk Isolator
    • Automated Market Maker
      • Uniswap V3 - Concentrated Liquidity
      • Trader Joe V2 - Liquidity Book
      • 1Inch V2 - AMM Aggregator
    • Low Slippage Swapping
      • Curve V2
      • Bebop
      • Platypus Finance
    • Yield Aggregator
      • Yearn V2
      • Instaapp
      • Alpaca Finance
    • Perpetual Exchange
      • GMX
  • 🎇Techs of Chains
    • ETH - Ethereum
    • BNB - Binance Coin
    • AVAX - Avalanche
    • DOT - Polkadot
    • SOL - Solana
    • NEAR - Near Protocol
    • XTZ - Tezos
    • MINA - Mina Protocol
  • 🖼️NFT
    • What is NFT
    • Token standard 721 & 1155
    • How to get your first NFT
    • How to mint like a pro
    • To play safe in NFT
    • NFT tools
Powered by GitBook
On this page
  • How AMM works
  • Advantage vs. traditional financial services
  1. DEFI Innovations

Automated Market Maker

  • automated Market Maker, namely AMM

  • not relying on order book, using algorithm on smart contract to exchange token automatically where maintaining x * y = k constant between 2 tokens x & y

  • the higher the liquidity (i.e. more tokens in the pool), the low slippage (i.e. impact to the token price in the pool)

  • AMM users - enjoy on-chain buy/sell activities without having to match buy/sell counter-parties

  • liquidity providers - deposit assets to liquidity pools & incentivised by sharing transaction fee when

How AMM works

Trader
Liquidity Provider
AMM Smart Contract
Liquidity Pool

0

deposits equal values of USDC(x) & ETH (y) into liquidity pool, get LP tokens based on provider's share of total liquidity pool

maintains x * y = k, if price of 1 ETH is 1000, 1000 USDC (x) pairs with 1 ETH (y) to keep the constant

1

intends to swap USDC into ETH, approves contract to use his USDC

smart contract is permitted to interact with the USDC token in trader's wallet

2

confirms swapping USDC into ETH

algorithm calculates impacts to the liquidity pool. (k / total USDC) / total ETH = price of ETH

deposits USDC into the ETH-USDC pool

3

sends corresponding ETH to trader

removes ETH from the ETH-USDC pool

4

receives ETH

receives portions of transaction fee based on provider's share of total liquidity pool

ETH price increased

Advantage vs. traditional financial services

  • Decentralised - no centralised entity, transactions executed by predefined smart contract agreement

  • Instant - transactions are immediately processed without requiring others' approval

  • Transparent - all pools' interactions are visible on chain explorer

  • Non-custodial - directly interact with users' wallet, users retain full assets ownership

  • Token accessibility - everyone can provide liquidity to any token, no listing required by any platform owner

PreviousSILO - Risk IsolatorNextUniswap V3 - Concentrated Liquidity

Last updated 2 years ago

🧠