---
description: Overview of Kriya Router
---

# Router Mechanism

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 -&#x20;

1. Kriya CLMM, AMM pools
2. Deepbook
3. Other protocols integrated via Hop and AF Routers

<figure><img src="https://content.gitbook.com/content/u43c2UesZXfkrsmDTs4T/blobs/Mc8F64u0gmZ6fN6r0mPf/Screenshot%202023-07-18%20at%2011.59.29%20AM.png" alt=""><figcaption><p>Kriya Router HLD</p></figcaption></figure>

The GetRoute function uses the [Pyth](https://pyth.network/) Oracle to determine the deviation of each source from the benchmark. Sources with high deviation are excluded from the route.
