Docs / How Tessel works
How Tessel works
Pools, fees, tools and contracts, in short.
Pools
Bin pools
Liquidity in price bins. No slippage inside a bin.
Diagram, not live data
Bin priceprice = (1 + binStep) ^ (id − 2²³)
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.
It earns while it waits
The bin earns swap fees while it fills, like any other liquidity.
Range pools
One fixed range for everyone. LP shares are ERC-20 tokens.
Diagram, not live data
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.
Diagram, not live data
Bin pool feefee = base + variable
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.
Diagram, not live data
- 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.
LP tools
Private withdraw
Deposit a fixed amount, withdraw to any address with a ZK proof.
Diagram, not live data
Deposit a fixed amount of USDG and get a secret note. Later, the note withdraws the same amount to any address, and a zero-knowledge proof made in your browser shows the chain that the note is valid without showing which deposit it came from.
- Amounts
- Each pool takes one amount only, so all deposits in it look the same.
- Proofs
- PLONK over the public Perpetual Powers of Tau, so there is no circuit-specific setup. Notes sit in a Poseidon Merkle tree of depth 16.
- Relayer
- A new address with no ETH can withdraw through the relayer, which pays the gas for a 0.5% fee taken from the amount. The proof fixes the recipient and fee, so the relayer cannot change them.
Save your note
Keep it in a password manager or a file only you can open. You paste it in to withdraw. This site never sees or stores it.
Privacy grows with time
It grows with the number of deposits in the pool and the time between your deposit and your withdraw.
Build
Data for bots (x402)
Pool data and quotes over HTTP 402, paid per request in USDG.
Diagram, not live data
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.
shell
npm install tessel-sdk ethers
bot.ts
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 nullTrust
Contracts
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.
Robinhood Chainchain 4663
- 0x75F5Cc…66f38cTesselHubCore
Pool factory and registry. Sets fee presets; cannot move or pause pools.
- 0x546848…41b58aTesselRouterRouting
Exact-input swaps across bin and range pools in one transaction.
- 0x07E606…e495f9TesselEthRouterRouting
Swaps native ETH in and out in one transaction.
- 0x9eE0cc…e3Bb3ETESSELToken
The Tessel token.
- 0xD41F68…F9066EDark PoolPrivate
Private balances, swaps and positions, sent by a relayer.
- 0xfd4F5c…e7d994Private pool · 10 USDGPrivate
Fixed-amount deposits, withdrawn with a ZK proof.
- 0xcB6620…dB9637Private pool · 100 USDGPrivate
Fixed-amount deposits, withdrawn with a ZK proof.
- 0xd35373…312C3APrivate pool · 1000 USDGPrivate
Fixed-amount deposits, withdrawn with a ZK proof.
- 0xAC3D55…330f43Bin pool · WETH/USDGPools
25 bps bins, dynamic fee.
Also deployed on Arbitrum One, Base, Ethereum, BNB Chain+
Arbitrum Onechain 42161
- 0x75F5Cc…66f38cTesselHubCore
Pool factory and registry. Sets fee presets; cannot move or pause pools.
- 0x546848…41b58aTesselRouterRouting
Exact-input swaps across bin and range pools in one transaction.
- 0x3443aD…90bA91TesselEthRouterRouting
Swaps native ETH in and out in one transaction.
Basechain 8453
- 0x75F5Cc…66f38cTesselHubCore
Pool factory and registry. Sets fee presets; cannot move or pause pools.
- 0x546848…41b58aTesselRouterRouting
Exact-input swaps across bin and range pools in one transaction.
- 0x3443aD…90bA91TesselEthRouterRouting
Swaps native ETH in and out in one transaction.
Ethereumchain 1
- 0x75F5Cc…66f38cTesselHubCore
Pool factory and registry. Sets fee presets; cannot move or pause pools.
- 0x546848…41b58aTesselRouterRouting
Exact-input swaps across bin and range pools in one transaction.
- 0x3443aD…90bA91TesselEthRouterRouting
Swaps native ETH in and out in one transaction.
BNB Chainchain 56
- 0x75F5Cc…66f38cTesselHubCore
Pool factory and registry. Sets fee presets; cannot move or pause pools.
- 0x546848…41b58aTesselRouterRouting
Exact-input swaps across bin and range pools in one transaction.
- 0x3443aD…90bA91TesselEthRouterRouting
Swaps native ETH in and out in one transaction.