Menu
My Site LogoMy Site LogoGliaswapDocs
GitHub
🌜
🌞
My Site LogoMy Site LogoGliaswap
  • Docs
  • GitHub
  • Start
    • Introduction
  • Run Gliaswap
    • Run Gliaswap
  • Product
    • Gliaswap Overview
    • Fee Structure
  • Protocol
    • Swap sUDT/CKB
      • Cell Structure
      • Transaction Structure
        • Swap
        • Pool
      • Script
        • Info Cell Type Script
        • Info Cell Lock Script
        • Swap Request Cell Lock Script
        • Liquidity Request Cell Lock Script
    • Swap sUDT/sUDT
      • Cell Structure
      • Transaction Structure
        • Swap
        • Pool
      • Script
        • Info Cell Type Script
        • Info Cell Lock Script
        • Swap Request Cell Lock Script
        • Liquidity Request Cell Lock Script
  • Reference
    • FAQ

Swap Request Cell Lock Script

The script code stays same with sUDT/CKB swap request cell lock script.

1. Rule 1 - verifity if the actual pay amount and receive amount satisfy the request amount in swap request cell.#

2. Rule2 - If one of input cell in the transaction use user's lock specified in liquidity request cell args and the corresponding witness is not 0, unlock the request cell directly.#

Edit this page
Previous
« Info Cell Lock Script
Next
Liquidity Request Cell Lock Script »
Copyright © 2021 GliaTeam.