Tessel
  • Pools
  • Positions
  • Swap
  • Docs
Tessel

Liquidity, tile by tile.

App
  • Pools
  • Create pool
  • Positions
  • Swap
More
  • Docs
  • Contracts
  • Explorer
  • X

This site never holds your funds.

How Tessel works

Pools, fees, tools and contracts, in short.

  • Provide liquidityHow bins and ranges hold your tokens.
  • SwapHow a route is found and checked.
  • Build a botPay per request, no API key.
  • VerifyEvery contract and its address.
  • Bin pools
  • Limit orders
  • Range pools
  • Fees
  • Router
  • Data for bots (x402)
  • Contracts
Pools
  • Bin pools
  • Limit orders
  • Range pools
  • Fees
  • Router
Build
  • Data for bots (x402)
Trust
  • Contracts
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.

  1. 1Put one token in a single bin away from the active bin.
  2. 2When the price crosses that bin, swaps convert it fully into the other token at the bin's price.
  3. 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
lowhigh

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
basevariable (market moving)
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
binrangeABC
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.
Build

Data for bots (x402)

Pool data and quotes over HTTP 402, paid per request in USDG.

Diagram, not live data
→GET /api/x402/quote
←402 Payment Required · USDG
→X-PAYMENT: signed EIP-3009
←200 OK · settled on chain

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.

EndpointPriceReturns
GET /api/x402FreeDiscovery: asset, payee, prices
GET /api/x402/pools0.005 USDGEvery 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 USDGExact-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 null
Trust

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.
Contractschain 4663
  • Core
    TesselHub

    Pool factory and registry. Sets fee presets; cannot move or pause pools.

    0x75F5Cc…66f38c
  • Routing
    TesselRouter

    Exact-input swaps across bin and range pools in one transaction.

    0x546848…41b58a
  • Pools
    Bin pool · WETH/USDG

    25 bps bins, dynamic fee.

    0xAC3D55…330f43