SpicyGun
TwitterTelegram
  • 🌶️SpicyGun Bot
  • 🔫Introduction
    • 🔭8x Scope For Rich Code
    • Guide for Beginners
      • Crypto Wallet
      • Blockchain Explorer
      • Transaction Fee
      • Dex & Liquidity Pool
      • Slippage
    • Wallet Setting
      • Create and Import
      • Check Assets
      • Export Key
      • Transfer or Withdrawal
    • Fee Structure
    • Important Links
  • 🎡Rewards
    • 👀Referral Program
      • 🤝Invite
      • 🥳Rewards
      • 💰Claim
    • 🚩SpicyGun Point System
    • Lucky Spin
  • 🤖SpicyGun SOL Bot
    • Search CA
    • Token Info
    • Make Order
      • Trade
      • Limit
      • Snipe
      • Settings
    • Activity
    • SOL Alert Group
    • FAQ
  • 💎SpicyGun Ton Bot
    • TON Bot Info
      • Trade
      • Monitor
      • Withdrawal
      • FAQ
        • Wallet Setting
        • Error Message
      • Copy Trading
      • Conditional Trading
  • SPICYGUN BLINKS
    • Create Blinks
      • Receive SOL
      • Receive SPL Token
      • Trade Token
Powered by GitBook
On this page
  • What is a Dex
  • What is a liquidity pool?
  1. Introduction
  2. Guide for Beginners

Dex & Liquidity Pool

PreviousTransaction FeeNextSlippage

Last updated 1 year ago

From

From

What is a Dex

In theory, any peer-to-peer swapping could constitute a decentralized trade (see, for instance, Atomic Swaps Explained). But in this article, we’re primarily interested in a platform that emulates the functions of centralized exchanges. The key difference is that their backend exists on a blockchain. No one takes custody of your funds, and you don’t need to trust the exchange to the extent that you do with centralized offerings, if at all.

DEXs are similar to their centralized counterparts in some ways but significantly different in others. Let’s first note that there are a few different types of decentralized exchanges available to users. The common theme among them is that orders are executed on-chain (with smart contracts) and that users do not sacrifice custody of their funds at any point.

Some work has been done on cross-chain DEXs, but the most popular ones revolve around assets on a single blockchain (such as Ethereum or Binance Chain).

What is a liquidity pool?

A liquidity pool is group of tokens that are locked in a smart contract and used for trading between assets on a decentralized exchange (DEX) like Uniswap.

These pooled tokens are provided by liquidity providers (LPs) who receive an LP token in exchange for providing liquidity.

The Uniswap Protocol AMM sets prices for liquidity pools using the mathematical formula x*y=k.

Prices are determined by the amount of each token in a pool, with x and y representing the two tokens in a liquidity pool.

🔫
What Is a Decentralized Exchange (DEX)?
Uniswap Labs / Liquidity