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

# How the Aggregator Works

> The Soroswap Aggregator splits swaps across supported Soroban AMMs on chain to reach the best price.

**The** [**Soroswap Aggregator**](/aggregator) is a smart contract that optimally resolves each swap by finding **the best available price at the moment**, using **an intelligent distribution** across the [supported AMMs](/aggregator/supported-amms).

### How It Works

* **Optimal Execution**: The Aggregator calculates and executes swaps across different AMMs to always find the best price.
* **Intelligent Routing**: Each swap is automatically distributed across one or more protocols according to available liquidity and exchange rates.
* **Fully On-Chain**: No intermediaries, no off-chain steps — the entire process is handled by smart contracts on Soroban.

<img src="https://mintcdn.com/soroswap/1xzCGA5zGx88_Gb9/images/captura-de-pantalla-2025-04-28-a-las-15-23-18.png?fit=max&auto=format&n=1xzCGA5zGx88_Gb9&q=85&s=8953ff21a21ccadd5983da9f180787c8" alt="" width="1122" height="504" data-path="images/captura-de-pantalla-2025-04-28-a-las-15-23-18.png" />

### Supported AMMs

Currently, the Soroswap Aggregator sources liquidity from:

| AMM                      | Status  | Description                                                                             |
| ------------------------ | ------- | --------------------------------------------------------------------------------------- |
| **Soroswap.Finance AMM** | Mainnet | Soroswap's primary protocol on Soroban, offering fast, secure, and low-cost swaps.      |
| **Phoenix Protocol AMM** | Mainnet | Providing additional liquidity and expanding swap route options.                        |
| **Aqua AMM**             | Mainnet | Currently in testing. Will add more depth and route diversity to Soroban once deployed. |

> **Note**:\
> [Stellar SDEX ](/concepts/sdex)is not integrated as it is incompatible with Soroban smart contracts.\
> The Aggregator works exclusively with Soroban-based protocols.
