Codex Finance
  • πŸ“’Introduction
  • πŸš€Launch
  • βœ‰οΈContact Us
    • Social Accounts
    • User Support
  • πŸ› οΈGet Started
    • πŸ—ΊοΈCore Guide
      • Wallet Creation
      • Connect Wallet to Core
      • Bridge tokens to Core
      • Import tokens to Wallet
    • πŸͺœCodex Tutorials
      • Step-By-Step
        • Overview
        • Swap
        • Liquidity
  • πŸ“ˆProtocol
    • AMM
      • Basics
      • Dual-Liquidity Pairs
      • Dynamic Directional Fees
      • Swap Referral
  • πŸ“ƒContracts
    • Factory
    • Pair
    • Router
    • Subgraph
  • πŸ“šReferences
    • GitHub
Powered by GitBook
On this page
  • Volatile pairs
  • Stable pairs
  1. Protocol
  2. AMM

Dual-Liquidity Pairs

Each Codex LP can have its own type, depending on the expected price correlation level between the two tokens of the pair.

Volatile pairs

Volatile pairs are traditional Uniswap V2 pairs that are using the standard constant product formula:

xβˆ—y=kx * y = kxβˆ—y=k

Stable pairs

We’ve adopted the Solidly stableswap algorithm whose innovative price curve formula supports swaps of pegged assets with minimum slippage:

x3βˆ—y+y3βˆ—x=kx^3 * y + y^3 * x = kx3βˆ—y+y3βˆ—x=k
PreviousBasicsNextDynamic Directional Fees

Last updated 1 year ago

πŸ“ˆ