Kriya Docs
  • Overview
    • What is Kriya?
      • Kriya Suite : HLD
    • Why Sui?
    • FAQs
    • Legal Disclaimer
  • Get funds on SUI
    • Bridge
    • Withdraw from CEX (Cede Store)
    • Buy SUI with Fiat (Transak)
    • P2P escrow from Eth (Heroswap)
  • Kriya x Sui Wallet Campaign
  • Migrating liquidity to v3
  • Kriya Swap
    • Swap Tutorial
      • Trade
        • Market Order
        • Limit Order
        • Dollar Cost Averaging (Coming Soon)
      • Provide Liquidity
    • Swap Architecture
      • Router Mechanism
      • Supported Pool Types
    • Swap Fee Structure
  • Kriya Strategy Vaults
    • Leverage Lending Vaults
      • Concept - Leverage Lending
      • Vault Tutorial
    • CLMM LP Optimizer Vaults
      • Vault Strategy - Auto Rebalancing and Compounding
      • Vault Tutorial
    • Deepbook MM Vaults (Coming Soon)
    • KLP Vaults (Coming Soon)
    • 1-click Automation Strats (Deprecated)
      • Concept - Leverage Lending
      • Strat Tutorial
  • Kriya Degen Corner
    • Sui Sniffer
    • No Code Token Launch on Sui
      • Tutorial to launch a coin
    • Airdrop to Sui Communities
  • Kriya Perpetuals
    • Perpetual Tutorial
      • Place Trade
      • Understanding Open Orders
      • Understanding Open Positions
    • How to get Early Access
    • Protocol Configs and Fees
      • Trading Limits
      • Listed Markets
      • Maker / Taker Fee
    • Perpetual Architecture
      • Margining and Liquidation
        • Custom Mark Price Oracle
      • Matching and Settlement
        • Order Types
        • Orderbook Tech Design
      • Funding Rate
      • Insurance Fund
    • Market Maker Program
  • Kriya OTC (Coming Soon)
    • Introduction and Use Case
    • User Guide
      • Creating an RFQ
        • Option RFQ example
      • Escrow Assets for RFQ
      • Respond to RFQ
      • Settlement
    • Protocol Architecture
      • Privacy
      • On-chain negotiation
    • MMs Get Access
  • Reward Programs
    • Suinami LP Campaign
    • Chakra Season 1 🧘‍♂️
    • Chakra Season 2 🧘‍♀️
    • Chakra Season 3 (Coming Soon)
    • Partner Campaigns
    • Galxe and Zealy
    • DoubleUp
    • Referral Program (Coming Soon)
    • Sui Overflow Hackathon
  • For Developers
    • Smart Contracts
    • Kriya Swap SDK
    • Kriya Perps
      • Run your own MM Bot
      • Run your own Liquidator Bot
      • Public Functions for Liveness
  • About
    • Audit Reports
    • Socials and Community
      • Discord
      • Blog
      • Twitter
    • Brand Assets
    • Careers
Powered by GitBook
On this page
  1. Kriya Swap
  2. Swap Architecture

Router Mechanism

Overview of Kriya Router

PreviousSwap ArchitectureNextSupported Pool Types

Last updated 9 months ago

Kriya router is a multi-protocol, multi-path router that leverages Sui's PTB (programmable txn blocks) to aggregate liquidity from all sources to execute trades and find the best price for traders.

These sources are -

  1. Kriya CLMM, AMM pools

  2. Deepbook

  3. Other protocols integrated via Hop and AF Routers

The GetRoute function uses the Oracle to determine the deviation of each source from the benchmark. Sources with high deviation are excluded from the route.

Pyth
Kriya Router HLD