# General Concept

The aggregator acts as a smart router, finding the most efficient way to swap one token for another.

<mark style="color:$info;">For example, to swap token A for token B, the aggregator:</mark>

* Searches for all possible swap paths
* Calculates which yields the most token B
* Can split the amount across multiple paths for maximum efficiency

### Example:

*<mark style="color:$info;">You want to swap 100 USDT for ETH:</mark>*

* **Option 1:** All via Uniswap
* **Option 2:** 70% Uniswap + 30% SushiSwap
* **Option 3:** USDT → WBTC → ETH

**The aggregator picks the path with the highest ETH output.**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dirolprotocols-organization.gitbook.io/dirol/general-concept.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
