JasperVault
JasperVault WebsiteLaunch APP
  • Welcome
    • Official Website
    • What is Jasper Vault?
      • Fees Structure
      • Platform Statistics
    • Referrals
    • Brand Logo & Guidelines
    • Fractal Jasper NFT
  • Degen Options
    • Overview
    • Advantage
    • For Traders
      • User Guide
      • Rewards
      • Leaderboard
      • FAQ
    • For Liquidity Provider
      • Fees Structure
    • Smart Contracts
  • development
    • Github
    • Release-Notes
    • Architecture
      • Option Orders Issuance and Exercise
        • EVM Scenario
        • BTC Scenario
      • Option Offering and Buying Flow
      • Trade Settlement
      • Oracle - Pyth
    • Building Blocks
      • Account Abstraction (EVM)
      • Program Derived Addresses (Solana)
      • Jasper Chain (BTC)
    • Deployed Smart Contracts
      • Arbitrum
      • BASE
      • Bitlayer
      • Sei EVM
    • Interfaces & ABI
    • JasperVault SDK
      • Overview
      • Vault Management
      • Option Trading
    • Order Process and Signature Steps
  • SUPPORT
    • Tutorials
      • 💹 Jasper Vault Explained: How to Profit with Options
      • ↕️ Degen Options: A Step-by-Step Guide
      • 🌐 0DTE Options: A Step-by-Step Guide
      • 📚 BitStone: A Step-by-Step Guide
      • 🖥️ Jasper Pro (Leverage): A Step-by-Step Guide to Buying Options
      • ↖️↗️ Long Straddle Guide: Combo Trading on Jasper Pro (Leverage)
      • ✍️ Jasper Pro (Limit) — Introduction & Use Cases
      • 🔄 Moonlight Box Guide: DApp Trading Tool
      • 🟣 Power Stone Guide: BitStone Trading Tool
      • 🔴 Reality Stone Guide: BitStone Trading Tool
    • Tutorials (CN) 教程
      • 💹 Jasper Vault 期權如何盈利
      • ↕️ Degen Options 分步交易指南
      • 🌐 0DTE Options 分步交易指南
      • 📚 BitStone 分步交易指南
      • 🖥️ Jasper Pro (槓桿版) 买入期权分步指南
      • ↖️↗️ Straddle 策略教學 – Jasper Pro(槓桿版)
      • ✍️ Jasper Pro(限價版)— 功能簡介與應用策略
      • ⏪月光寶盒指南:DApp 交易工具
      • 🟣 力量宝石指南:BitStone 交易工具
      • 🔴 现实宝石指南:BitStone 交易工具
    • Video Guide
      • 📚 Jasper Vault DEGEN Options: Step-by-Step DApp Video Tutorial
      • ⏪ How to Use Moonlight Box - DApp Video Tutorial
  • Community
    • Social Media & Communities
  • About Us
    • Terms of Service
    • Vision & Mission
    • Roadmap
  • Security
    • Audit Reports
Powered by GitBook
On this page
  1. development
  2. Architecture

Trade Settlement

PreviousOption Offering and Buying FlowNextOracle - Pyth

Last updated 11 months ago

In Jasper Vault, options trading settlement involves three scenarios for settling funds and profits: Cash Exercise, Asset Exercise, and Not Exercising.

  1. Cash Exercise

When the current price exceeds the strike price, buyers can choose cash exercise settlement. The relayer monitors EVM transactions and submits the transaction logs to Jasper Nodes. Jasper Nodes verify these logs and sign the BTC unlock transaction using PSBT. The relayer then monitors the Jasper signatures and submits the unlock BTC signature on the Bitcoin blockchain. The profit is sent to the buyers, and the remaining BTC is returned to the sellers.

  1. Asset Exercise

When the current price exceeds the strike price, buyers can choose asset exercise settlement. Unlike cash exercise, asset exercise requires buyers to pay USDT for BTC. The relayer monitors EVM transactions and submits the transaction logs to Jasper Nodes. Jasper Nodes verify these logs and sign the BTC unlock transaction using PSBT. The relayer then monitors the Jasper signatures and submits the unlock BTC signature on the Bitcoin blockchain. The BTC is then sent to the buyers.

  1. Not Exercising

When the current price is below the strike price and the BTC lock period has expired, the sellers' BTC will be unlocked. The relayer monitors the Bitcoin transaction logs. Jasper Nodes verify the BTC transactions and sign the non-exercising BTC using EIP-712 when the relayer submits the BTC transaction logs and monitors the Jasper signature transactions. The relayer then submits the non-exercising signature to the EVM chain, where it is verified to close the order.