# Garuda Smart Route

## Smart Route

<figure><img src="/files/UXL4Hju8vveYQgqA6BM0" alt=""><figcaption></figcaption></figure>

Garuda Smart Route is an optional routing engine designed to optimize trade execution by dynamically searching for the most efficient execution path across available liquidity sources within the Garuda DeFi ecosystem and supported external DEXs.

When it activated, Smart Route will evaluate and compare execution outcomes from multiple liquidity sources, including:

#### 1. Internal Pair Routing (Multi-Hop)

Smart Route can search across available trading pairs on Garuda DeFi using multi-hop routing, supporting different route paths.

Examples:

* Direct Pair: `TOKENA → TOKENB`
* Multi-Hop: `TOKENA → TOKENX → TOKENB`

The routing engine automatically selects the route estimated to provide the most favorable execution outcome.

#### 2. Orderbook Matching

Smart Route can source liquidity from the Garuda Orderbook by estimating available matching orders to improve execution pricing when sufficient liquidity exists.

#### 3. External DEX Aggregation

Smart Route can aggregate liquidity from supported external DEXs, including:

* Terraswap
* Terraport

This allows traders to access a broader liquidity landscape beyond Garuda native pools.

### External Aggregation Fee

Transactions utilizing external DEX aggregation incur a 0.1% fee based on the offer asset amount.

Fee distribution:

* 50% → Protocol Fees (distributed to GDEX Shares)
* 50% → Garuda Development Fund

## ⚠️ Important Notes & Disclaimer

#### Trading Tax Disclaimer

* Quoted results may not always represent the final best execution price.
* Certain CW20 tokens implement transfer taxes or trading taxes, which may not be fully reflected within routing estimations.
* Traders are strongly encouraged to review and verify swap outcomes before confirming transactions.

#### Orderbook Estimation Behavior

* Orderbook estimates may not appear when the requested ask amount exceeds available orderbook liquidity.
* However, transactions can still be successfully executed if Smart Route determines that a direct liquidity pair route provides a viable execution path.
* In such cases, execution may utilize Garuda’s [Shared Price Improvement](/products/on-chain-order-book.md#shared-price-improvement) mechanism to optimize trade outcome.


---

# 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://docs.garuda-defi.org/products/garuda-smart-route.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.
