Skip to main content

Protocol Overview

Kroko DEX is a decentralized exchange on the Kasplex blockchain that combines two proven AMM models — V2 (constant product) and V3 (concentrated liquidity) — under a unified routing layer.

Architecture

Components

How a Swap Works

  1. Approve — User approves their token to the Permit2 contract (one-time per token)
  2. Permit — User grants the Universal Router permission via Permit2 (one-time per token)
  3. Quote — Frontend requests an optimal route from the Swap API
  4. Calldata — Frontend requests encoded transaction data from the Swap API
  5. Execute — User sends the transaction to the Universal Router
The routing engine automatically selects the best path — single-hop or multi-hop, V2 or V3 or mixed — based on available liquidity and price impact.

V2 vs V3

Native Token

Kasplex’s native currency is KAS (18 decimals). Since AMM contracts require ERC-20 tokens, KAS is wrapped as WKAS for on-chain operations. The Universal Router handles wrapping and unwrapping automatically — users interact with native KAS directly. See Native Token Handling for details.