> For the complete documentation index, see [llms.txt](https://venzofinance.gitbook.io/venzofinance-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://venzofinance.gitbook.io/venzofinance-docs/venzo-swap/smart-routing-and-execution.md).

# Smart Routing and Execution

### Route Optimization

When a user initiates a swap, the routing engine evaluates all possible execution paths and selects the one that maximizes the user's output. This includes:

* **Split Routing:** For large orders, the engine may split the swap across multiple venues to minimize price impact. For example, a $100,000 USDC-to-ETH swap might be split 60/40 between Uniswap V3 and Curve to achieve better overall execution than routing through a single venue.&#x20;
* **Multi-Hop Routing:** In some cases, the optimal path involves intermediate assets. For example, swapping Token A to Token C might be more efficient as Token A to Token B to Token C if the A/B and B/C pools have deeper liquidity than the A/C pool.
* **Cross-Chain Routing:** When the source and destination assets are on different chains, the engine selects the most cost-effective and secure bridge protocol. Bridge selection criteria include historical reliability, settlement speed, fee structure, and current congestion levels.

***

### Execution Guarantees

Venzo Swap provides users with clear execution guarantees before they confirm a transaction:

* **Guaranteed Minimum Output:** The minimum amount of the destination asset the user will receive, accounting for maximum slippage tolerance.
* **Price Impact Estimate:** The estimated price impact of the swap on the underlying liquidity pool.
* **Gas Cost Estimate:** The estimated gas cost in the user's preferred denomination.
* **Execution Time Estimate:** The expected time for the swap to complete, including any bridge settlement delays.

If market conditions change between the time the user reviews the quote and confirms the transaction, the swap will revert if the output falls below the guaranteed minimum, protecting users from front-running and sandwich attacks.

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://venzofinance.gitbook.io/venzofinance-docs/venzo-swap/smart-routing-and-execution.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
