> For the complete documentation index, see [llms.txt](https://docs.zestprotocol.com/start/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zestprotocol.com/start/stacks-swap/introducing-stacks-swap.md).

# Introducing Stacks Swap

Zest Protocol Stacks Swap is the ultimate swap experience for the Stacks ecosystem.&#x20;

It compares prices across every major DEX on Stacks and executes each swap through the route with the best available output.\
\
Stacks swap is built with more routes, faster backend and UX than any DEx product previously built on Stacks.

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

## Key Features

**Best Price Across Stacks DeFi**

Zest Protocol Stacks Swap continuously tracks hundreds of liquidity pools across Bitflow, Velar, ALEX, and Arkadiko, as well as direct protocol conversion through Stacking DAO for stSTX and stSTXbtc. Every quote compares all available routes and returns the one with the best output for the trade.

**Smart Order Routing**

Large swaps are not limited to a single pool. The router can split a swap across multiple pools and multiple DEXes at once, and can chain hops through intermediate tokens when no direct pool exists. The full route executes as a single transaction.

**One Transaction, All or Nothing**

Every swap executes as one atomic Stacks transaction. Either the full route completes and the user receives at least the guaranteed minimum, or the entire transaction reverts and no tokens leave the wallet.

**Non-Custodial by Design**

Zest Protocol Stacks Swap never holds user funds. Tokens move from the user's wallet, through the liquidity pools, and back to the user's wallet within a single transaction. There are no deposits, no balances to withdraw, and no accounts to manage.

**On-Chain Price Protection**

Every swap carries a minimum-received amount (as specified in the post condition in the wallet interface before broadcasting) that is enforced by the smart contract itself, not by an app or a server. If the market moves before the transaction confirms, the swap reverts instead of filling at a worse price.

## Built by Zest Protocol

Zest Protocol Stacks Swap is built by Zest Protocol, the leading Bitcoin lending protocol, developed by one of the longest-running teams in Bitcoin DeFi, building on Bitcoin since 2020.
