# Overview

> What Tirio is, which chain it serves, where it finds liquidity, what a swap costs and how a quote becomes a settled transaction.

Source: https://tirio.io/docs/overview · Updated 2026-10-02

Tirio is a DEX aggregator for BNB Chain, in public beta. Instead of trading in one pool, it routes your order across the pools of many venues, splits it where that pays more after gas and settles the whole route in a single transaction sent from your wallet. Besides swaps it runs limit, stop and DCA [orders](/docs/orders).

## Chains

| Chain | Chain id | Status |
| --- | --- | --- |
| BNB Chain | 56 | Live. Router (`0x9B1c368F5d33a8D051587c7576b150132680ADC0`), Executor, Orders (`0x06360a557290f64aeC55B7a06b788eD8723e71f9`), the Oracle and OrdersLens; see [Contracts](/docs/contracts). |
| Robinhood Chain | 4663 | Planned. The contracts are not deployed there and there is no launch date. |

No other chain is live. The contract addresses were chosen with CREATE3 so that they will be the same on other chains, but today the contracts exist only on BNB Chain. The API reports the Router it targets in `/health`.

## What a swap costs

- **Tirio fee: 3 bps (0.03 %) on tirio.io.** The app adds it to every swap and takes it from the token you pay. The Router's own protocol fee is 0 (`feeBps` in `/health`); the app charges its 3 bps as the Router's partner fee, paid to the Tirio treasury inside the swap transaction.
- **API: no Tirio fee.** Quotes you request from the [REST API](/docs/api) yourself carry no Tirio fee unless you add a partner fee of your own.
- **Partner links.** A link with `?partner=&partnerFeeBps=` replaces the 3 bps Tirio fee with the partner's fee. The Router keeps 10 % of any partner fee; the owner can raise that share to at most 20 %.
- **Positive slippage.** On every exact-in swap whose output token has no transfer tax, the output passes through the Router, which compares it with the quoted output. If the swap delivers more than the quote, Tirio keeps the excess up to 1 % of the quoted output (with a partner, 20 % of what is kept goes to the partner) and anything above that reaches you. If the swap delivers less than the quote, the difference is yours to bear down to your minimum received; below the minimum the swap reverts. This applies to swaps made through the API as well. It does not apply to buy (exact-out) swaps, to tokens with a transfer tax or to order fills.
- **Orders** cost 10 bps (0.10 %) of what each fill receives, 3 bps between stablecoins.

You also pay network gas and the fees of the pools on your route, as you would trading on those DEXes directly. The quote's `fees` block names the token each fee is taken in and its amount.

## Where Tirio finds liquidity

A quote considers:

- the pools of the pair you ask for, on the venues Tirio routes through
- the pools between the chain's hub tokens (WBNB, USDT, USDC and the other hubs)
- for a long-tail token without a good hub pool, routes through intermediate tokens (bridge tokens)

The liquidity sources are listed by [`/bsc/protocols`](https://api.tirio.io/bsc/protocols): classic and concentrated-liquidity AMMs, singleton pool managers, stable pools, on-chain market makers, launchpad bonding curves and Tirio's own order book. On four.meme, Tirio only buys on the bonding curve: a token that has not graduated cannot be sold through Tirio, because it cannot be transferred outside four.meme's contract before graduation.

## Non-custodial, one transaction

A swap is one call to the Router from your wallet. The Router pulls only the token you sell and the Executor runs the route. The output either goes straight from the pools to the recipient or, for an exact-in swap without transfer tax or a native output, arrives at the Router, which takes any output-side fee and the capped positive slippage and forwards the rest in the same transaction. If the recipient would receive less than the minimum you accepted, the whole transaction reverts: nothing is swapped and only gas is spent.

The Router keeps no funds between transactions. The allowance you give it, a direct approval or a Permit2 allowance, is used only inside a swap you send, only for your token and at most for that swap's budget. The Executor holds no allowances and ends every swap with a zero balance.

## Quotes and simulation

Every route is first computed locally with the same math the pools use.

- **The price you see while typing** (`/price`, marked **Indicative price** in the app) is routed the same way but not simulated.
- **The quote you sign** (`/quote`, the app's **Review** step) is simulated as the complete `Router.swap` transaction with `eth_call` at the latest block before it is returned. The simulated output and gas replace the estimates, and a route that fails in simulation is never returned. Such a quote carries `simulated: true` and the app shows a **Simulated** badge.
- If the simulation cannot run, which is rare and happens when the RPC does not answer it, the quote comes back with `simulated: false` and the app marks it **Not simulated** with a warning. The app still runs the exact transaction through `eth_call` itself before your wallet opens.

## MEV

The slippage setting (0.5 % by default) is your guard against front-running: the swap reverts if the recipient would receive less than the minimum. Wallets and RPC endpoints that send transactions privately add another layer.

## Transfer-tax detection

Tokens that are not hub tokens are probed for buy and sell transfer taxes. A detected tax is applied inside the quote, so `amountOut` and the minimum received already account for it, and the app tells you which side is taxed. When the tax could not be measured, the quote says so (`taxInKnown` or `taxOutKnown` is `false`) and the app warns that you may receive less than quoted.

## Split and multi-hop routing

A route can pass through hub and bridge tokens on its way to the token you want, and the order can be split across several paths when that pays more after gas. Every leg is computed with the exact integer amounts the contract will see on chain. The response lists each path with its share in parts per million and each hop with its DEX, pool, fee and amounts. The API's `maxHops` and `maxPaths` parameters limit the length of a path and the number of paths per request.

## Beta and infrastructure

Tirio is in public beta. When the API cannot serve quotes it answers 503 and the app pauses swaps instead of showing stale prices. See [Security](/docs/security).

## Where to go next

- [Swapping with the app](/docs/swapping): wallets, tokens, slippage, approvals and the route card.
- [Orders](/docs/orders): limit, stop and DCA orders.
- [REST API](/docs/api): the same quotes and transactions from your own code.
- [Contracts](/docs/contracts): Router, Executor, Orders, addresses and the fee model.
- [Security](/docs/security): what the app, the API and the contracts verify, and who controls the contracts.
- [FAQ](/docs/faq), [Terms of Use](/terms), [Privacy Policy](/privacy) and [Risk Disclosure](/risk).
