> ## Documentation Index
> Fetch the complete documentation index at: https://docs.krokoswap.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Contract Addresses

> Deployed contract addresses on Kasplex Mainnet and Testnet

# Contract Addresses

All Kroko DEX smart contracts are deployed on both Kasplex Mainnet and Testnet.

<Tabs>
  <Tab title="Mainnet (Chain ID: 202555)">
    | Contract                | Address                                      |
    | ----------------------- | -------------------------------------------- |
    | **Permit2**             | `0x2E1987F680FD7Bc8B33d3Bf94f12B988A0B50034` |
    | **Universal Router**    | `0xefeCc1c2dE3BfE4C6D43030F2AcDD5C3cE279024` |
    | **WKAS**                | `0x2c2Ae87Ba178F48637acAe54B87c3924F544a83e` |
    | **V2 Factory**          | `0x4373b7Fcf5059A785843cD224129e01d243Aef71` |
    | **V2 Router**           | `0xC7ca845B8302346e1C7227f03bb9EFb35ecD51fe` |
    | **V3 Factory**          | `0x0dfb1Bb755d872EA1fa4d95E4ad0c2E6317Ce9B9` |
    | **V3 Position Manager** | `0x343b244bEDF133D57C61b241557bF29AA32ea4F9` |
    | **V3 Router**           | `0x1F896179244C2675b6a1F36376cDF3B125d72B63` |
    | **V3 QuoterV2**         | `0xC3D66b70F3BA12c1D1Ec5A20b0feB855b147812e` |

    ### Network Configuration

    ```json theme={null}
    {
      "chainId": 202555,
      "chainName": "Kasplex Mainnet",
      "rpcUrl": "https://evmrpc.kasplex.org",
      "blockExplorer": "https://explorer.kasplex.org",
      "nativeCurrency": {
        "name": "KAS",
        "symbol": "KAS",
        "decimals": 18
      }
    }
    ```
  </Tab>

  <Tab title="Testnet (Chain ID: 167012)">
    | Contract                | Address                                      |
    | ----------------------- | -------------------------------------------- |
    | **Permit2**             | `0xc320bc492Bb56169aBE18D3C0a2048c45febC897` |
    | **Universal Router**    | `0x440d7f5FE865eFCcfdCB1ee9a000C114163689ba` |
    | **WKAS**                | `0xC065C62a10fB363fD31CA394D632C4Df106566df` |
    | **V2 Factory**          | `0x497152FfC1FEa1Ff31cc7cEeca4f4b9495b606fB` |
    | **V2 Router**           | `0xf2ece243a0EFC0Cd1fcd3386b2f73f16D1378689` |
    | **V3 Factory**          | `0x6ea7b69cDB0Af4DE7DF60DA08edE2F7E2b8d5924` |
    | **V3 Position Manager** | `0xDAF3700A7D80B26d5DD971C3C0e2fB93Ad73219f` |
    | **V3 Router**           | `0xe3DC728050962343922A8E7b3E0cC158C94A1448` |
    | **V3 QuoterV2**         | `0xfd0e09944444338Ab33b5b5eF66cd741331121e0` |

    ### Network Configuration

    ```json theme={null}
    {
      "chainId": 167012,
      "chainName": "Kasplex Testnet",
      "rpcUrl": "https://rpc.kasplextest.xyz",
      "blockExplorer": "https://explorer.testnet.kasplextest.xyz",
      "nativeCurrency": {
        "name": "KAS",
        "symbol": "KAS",
        "decimals": 18
      }
    }
    ```
  </Tab>
</Tabs>

## Contract Roles

| Contract                | Role                                                                  |
| ----------------------- | --------------------------------------------------------------------- |
| **Permit2**             | Token approval manager with expiration and per-spender scoping        |
| **Universal Router**    | Unified swap execution across V2 and V3                               |
| **WKAS**                | ERC-20 wrapper for native KAS                                         |
| **V2 Factory**          | Creates and indexes V2 trading pairs                                  |
| **V2 Router**           | Handles V2 liquidity operations (add/remove)                          |
| **V3 Factory**          | Creates and indexes V3 pools                                          |
| **V3 Position Manager** | Manages V3 liquidity positions (mint/burn/collect NFTs)               |
| **V3 Router**           | Handles V3 swap routing                                               |
| **V3 QuoterV2**         | On-chain quote estimation for V3 swaps (read-only, not gas efficient) |
