How Tessel works
Pools, fees, tools and contracts, in short.
Bin pools
Liquidity in price bins. No slippage inside a bin.
Each bin holds one price. Inside a bin a swap trades at exactly that price, so there is no slippage until the bin runs out and the swap moves to the next one. Only the active bin holds both tokens: bins above it hold the X token, bins below hold the Y token.
You choose which bins to fill and how much goes in each: spot, curve or bid-ask shape.
- Deposit into a bin
- Proportional to what the bin already holds, so a deposit can never be used as a free swap.
- First deposit in a bin
- 1,000 shares are locked forever, so a bin can never be emptied to a broken share price.
- Withdraw
- Any time, any bins, in any share amount.
Limit orders
One bin on one side of the price fills like an order.
- 1Put one token in a single bin away from the active bin.
- 2When the price crosses that bin, swaps convert it fully into the other token at the bin's price.
- 3Withdraw the bin to take the filled side. Before it fills, withdrawing it cancels the order.
Range pools
One fixed range for everyone. LP shares are ERC-20 tokens.
One fixed price range for the whole pool, with concentrated-liquidity math. Every LP holds the same range, so a position is a plain ERC-20 share of the pool. Good for new tokens that need one simple market.
A launch fee starts high when the first liquidity arrives and falls in a straight line to the base fee. Early buyers who rush in pay more, and that fee goes to the LPs.
Fees
Bin fees follow the market. Range fees start high and settle.
The base comes from the bin step. The variable part grows with the number of bins the price crossed recently and decays when the market is quiet, so LPs earn more when prices move fast. Range pools use the launch fee, then the base fee.
- Bin pool fee cap
- 10% per swap (contract constant).
- Range launch fee cap
- 10% at launch (contract constant).
- Protocol share
- A set part of each fee goes to the protocol fee recipient; the rest stays with LPs. Capped at 50% in the contracts.
- Fee now
- Each pool page shows its current fee read from the chain.
- Uniswap routes
- When a Uniswap v3 pool pays more, Swap can route through Uniswap's own router. Its pool fee goes to Uniswap LPs; Tessel takes 0.1% of the output in the same transaction, shown before you sign.
Router
One swap across bin and range pools, checked after the last hop.
- Routes
- Found off chain: direct and two-hop, best output first.
- Pools it calls
- Only pools registered in the hub.
- Your minimum
- Checked after the last hop; the swap reverts below it.
- Balances
- The router never keeps tokens between transactions.
Data for bots (x402)
Pool data and quotes over HTTP 402, paid per request in USDG.
Your bot signs a USDG transfer authorization (EIP-3009); the server sends it on chain and returns the data only after it settles. USDG goes straight from your wallet to the fee recipient. A signed payment is charged once at most.
| Endpoint | Price | Returns |
|---|---|---|
| GET /api/x402 | Free | Discovery: asset, payee, prices |
| GET /api/x402/pools | 0.005 USDG | Every Tessel pool: tokens, kind, price, fee now, and for bin pools the bins around the active bin |
| GET /api/x402/quote tokenIn, tokenOut (addresses), amountIn (atomic units) | 0.01 USDG | Exact-input quotes for every direct and two-hop route, best first, with the hops to pass to TesselRouter |
- Headers
- x402 v2 (PAYMENT-SIGNATURE) or v1 (X-PAYMENT); scheme "exact".
- Nothing charged when
- Parameters are wrong, the chain cannot be read, the payment is invalid, or a quote finds no route.
With the SDK, a bot pays in a few lines. It never signs above your price limit and checks its balance first.
npm install tessel-sdk ethers
import { Wallet } from "ethers";
import { X402Payer } from "tessel-sdk/payer";
import { createProvider } from "tessel-sdk/relayer";
const provider = createProvider(RPC_URL, CHAIN_ID);
const payer = new X402Payer({
signer: new Wallet(PAYER_KEY, provider),
provider,
chainId: CHAIN_ID,
usdg: USDG_ADDRESS, // "asset" from GET /api/x402
maxPrice: 10_000n, // 0.01 USDG per request at most
});
const quote = await payer.pay(`${API}/api/x402/quote?tokenIn=…&tokenOut=…&amountIn=…`);
const { data, payment } = await quote.response.json(); // no route: data.routes is [], payment is nullContracts
Pools are not upgradeable. Every address is listed below.
- Pools
- Not upgradeable. No proxy, no pause, no admin withdraw.
- This site
- Never holds your funds. Every action is a transaction you sign in your own wallet.
- Source
- Verified on Sourcify; open any address below on the explorer.
- CoreTesselHub
Pool factory and registry. Sets fee presets; cannot move or pause pools.
0x75F5Cc…66f38c - RoutingTesselRouter
Exact-input swaps across bin and range pools in one transaction.
0x546848…41b58a - PoolsBin pool · WETH/USDG
25 bps bins, dynamic fee.
0xAC3D55…330f43