LEEQUID
  • 👋 Welcome
  • Navigating LEEQUID
    • 🌱 Staking
      • The staking protocol
      • Matching stake to unstake requests
      • Potential wait times while staking
      • Deposited LYX lifecycle
      • Importing sLYX to your wallet
    • 🍇 Collecting rewards
      • Reward distribution in the LEEQUID protocol
      • Auto-compounding
      • Withdrawing rewards
      • Reward calculation in Proof of Stake
    • 🍂 Exiting the protocol
      • Option 1: swapping sLYX for LYX
      • Option 2: unstaking through the staking pool
      • Matching unstake to stake requests
      • Potential wait times while unstaking
    • 🍷 Claiming
      • Claim queued stake
      • Claim unstaked LYX
      • Claim rewards
    • 🔄 Swapping
      • LYX for sLYX: An instant alternative to staking
      • sLYX for LYX: an instant alternative to exiting
      • Providing liquidty
      • Providing Liquidity: a practical example
  • LEEQUID in depth
    • 🔐 Protocol security and risks
      • Security overview
      • Smart contract code correctness
      • Slashing and unexpected validator behaviour
      • sLYX token: economic balance
      • Validator key management
    • 📃 Smart contracts
      • Oracles
      • Merkle Distributor
      • Rewards
      • Pool
      • StakedLyxToken
      • FeesEscrow
    • 💧 The sLYX token
      • Acquiring sLYX
      • 1:1 ratio with LYX
      • Potential unpeg of sLYX from LYX
    • 💦 The liquidity pool (DEX)
      • Implementation
  • Incident Response
    • Contacts
    • Vulnerability Disclosure Policy
Powered by GitBook
On this page
  1. LEEQUID in depth
  2. 💦 The liquidity pool (DEX)

Implementation

0xA46d16FB9F228785cF1A7C20415bb5AfC193945A

Last updated 1 year ago

LEEQUID features a LYX/sLYX pair liquidity pool, alongside its main staking protocol. The liquidity pool logic is handled by the code of , directly deployed on the LUKSO blockchain with no modifications. This is the first decentralized exchange (DEX), deployed on LUKSO's mainnet and it serves the staking pool by adding an instant route to stake or unstake, granting the sLYX token maximum liquidity.

Uniswap V2 is an smart contract suite, which allows the creation of exchange markets between any two tokens. In these exchange markets, the presence of liquidity reserves and logic ensure instant swaps and settle the price.

On LUKSO, the ERC-20 standard is being replaced by the newer , which is, nonetheless, fully compatible with ERC-20. However, LUKSO's native coin, LYX, is neither an LSP7, nor an ERC-20 token. Instead, it is a native blockchain currency, and, technically, not a token run by a smart contract. Due to that constraint, LEEQUID also deploys a wrapper around the LYX coin, used internally by the liquidity pool, making LYX ERC-20 compatible. This wrapper uses the unmodified , the Ethereum wrapper, deployed on the LUKSO blockchain.

Uniswap V2
ERC-20
LSP7
code of WETH10