How Tenbin works

One wallet. One price. Every venue.

The whole idea in 11 lines. Tap any one for more.

The long version, with diagrams ↗

Uniswap v4same price1inch Aquasame priceyour wallet
One stockroom, two stalls. One shelf, so one price.
0

The idea in plain words

One stockroom, two stalls, one price board that keeps the stock at 40/30/30.

Raju owns a shop with mangoes, rice and cash in one stockroom. He opens two stalls in two different markets: Uniswap and 1inch. Both stalls sell from the same stockroom and read prices off the same board, which follows one simple rule:

  • Raju wants his stockroom to stay 40% mangoes, 30% rice, 30% cash.
  • If he has too many mangoes, the board makes mangoes cheaper, so customers buy them and the stock goes back to 40%.
  • If mangoes run low, the board makes them dearer, so customers sell him mangoes.

Because both stalls read one stockroom, a sale at one stall changes the price at the other immediately. Nobody can buy cheap at one stall and sell dear at the other against Raju, and no loop through his three products makes free money. And while Raju checks his stock all day, those checks go through an anonymous channel, so whoever supplies the information never learns who is asking.

In one sentence: your wallet becomes a self-rebalancing index fund that earns trading fees on two exchanges at once, without your money ever leaving your wallet, and without anyone watching you run it.

1

The problem today

Two venues means two piles, two prices, and rebalancing by hand.
To make markets on two venues you split your coins into two piles. Each pile quotes its own price, drifts on its own, and needs its own rebalancing. Your capital is fragmented and your prices disagree. If you just hold an index, keeping it at 40/30/30 means rebalancing by hand and paying fees to do it. And a dashboard that watches all this polls the same wallet all day through an RPC that sees your IP.
2

One price, from what the wallet actually holds

price = (weight A ÷ weight B) × (balance B ÷ balance A). No oracle.

Every quote, on both venues, comes from one formula over your wallet's real balances:

price of A in B = (weight A ÷ weight B) × (balance B ÷ balance A)

Example: the wallet holds 10 ETH and 30,000 USDC with weights 40% and 30%. The price of ETH is (0.4 ÷ 0.3) × (30,000 ÷ 10) = 4,000 USDC. No oracle: the price is whatever keeps your wallet on its weights. A trade moves the balances, so it moves the price, on both venues at once. Each trade also pays a flat 0.30% fee that stays in your wallet.

3

What happens when someone trades

Both venues pay out of your wallet through Aqua, your only approval.
Uniswap v4
  1. 1Trader swapsthrough any Uniswap router
  2. 2Hook prices itquote() over your wallet; the pool's curve is switched off
  3. 3Aqua pays outthe coins bought leave your wallet, within Uniswap's limit
  4. 4Input comes homeheld as claims, then flushed into your wallet
1inch Aqua
  1. 1Taker fillsyour shipped 1inch order
  2. 2Opcode 0xd0 prices itthe same quote() over the same wallet
  3. 3Aqua pays outthe coins bought leave your wallet, within 1inch's limit
  4. 4Input comes homepushed straight into your wallet
Both rows read and change one wallet, so a trade on either venue moves the next quote on both.

Your wallet approves exactly one contract, Aqua, which gives each venue its own selling limit. Neither venue can touch your coins directly.

4

It can't be gamed

Every loop loses money: −0.88% across both venues in tests.
Without fees, every trade keeps the weighted product of the wallet's balances constant, so a loop back to where you started returns exactly what went in. Fees only add to the wallet, and every rounding step favours you, so any loop, on one venue or bouncing between both, loses money. In the tests a 0.1 ETH loop ETH → USDC (Uniswap) → BTC (1inch) → ETH (Uniswap) loses 0.88%. Try it yourself →
5

It rebalances itself

ETH $4k → $5k: traders alone bring you back to 40/30/30, paying you fees.
When ETH rises outside, your ETH is briefly cheap at Tenbin. Traders buy it from you until your price matches the market, and that is exactly when each holding is back to its target share. In the tests, after ETH moved from $4,000 to $5,000, arbitrage alone brought the wallet back to 40.0 / 30.0 / 30.0. You earn the fee on every one of those trades.
6

Change your mind, cheaply

Glide to new weights: $25 instead of $1,991 on a $100k index.

Want 50/25/25 instead of 40/30/30? Flip the weights instantly and the whole price gap opens at once: arbitrageurs take it in one go. Or let Tenbin glide the weights on both venues over an hour, a day, or three days. Each moment's gap stays near the fee, so the market walks your wallet to the new allocation through ordinary, fee-paying trades.

In the tests, moving a $100,000 index from 40/30/30 to 50/25/25 at constant prices cost $1,991 instantly and $25 gradually. Both ended at 50% ETH. Doing it yourself on a DEX would cost about $30 in fees plus slippage, plus the work.

And you stay in control: pause both stalls in one click, top them up, or change how much each may sell, from My index.

7

Nobody watching

Every read via Anon-RPC, with a separate key per strategy, maker and trader.
Every chain read the app makes goes through the Ethereum Foundation's Anon-RPC (over Tor, or the Nym mixnet), with a separate isolation key for each strategy, each maker and each trader, so the RPC sees an exit node, not you, and can't stitch your activity together. Two things are honestly excluded: one bootstrap read that locates the anonymous client, and your transactions, which your wallet sends. Watch every read →
8

Honest limits

LVR stays, per-trade caps, testnet only, not externally audited.
  • Tenbin doesn't remove LVR: the traders who rebalance you capture the move; you earn the fee.
  • One trade can move at most 30% of a balance, and each venue sells only up to its limit.
  • Uniswap input waits as claims until the next swap or a flush. It's priced in at once, but 1inch can only sell what's already in the wallet.
  • Use a dedicated maker wallet. Prices come from what the wallet holds, so spending the index tokens elsewhere moves the price (and gifting tokens to it only enriches the maker).
  • Every round trip loses, but not always a full 0.30% fee: the proven floor is a little lower for some sizes.
  • Raising a venue limit starts a new epoch: both venues are docked and re-shipped, so old 1inch orders stop filling.
  • This is a testnet demo with test tokens. Not externally audited; our own review found and fixed one critical bug (see AUDIT.md).
9

Glossary

Index, hook, Aqua, LVR and more, in one line each.
Index
A wallet that holds several assets at fixed target shares by value, for example 40% ETH, 30% BTC, 30% USDC.
Weight
An asset's target share of the index. The weights are the whole strategy: every price Tenbin quotes keeps the wallet on them.
Venue
A place traders can buy from you. Tenbin has two: Uniswap v4 and 1inch Aqua.
Venue limit
The most each venue may sell of each coin, tracked by 1inch Aqua (at launch: Uniswap 50% of each coin, 1inch 25% per pair). The wallet keeps the rest; Top up on My index changes it.
1inch Aqua
A registry that lets one wallet back many strategies without moving coins. It is the only contract your wallet approves.
Hook
A small contract Uniswap v4 calls during a swap. Tenbin's hook replaces the pool's own pricing with your wallet's price.
Opcode 0xd0
A custom instruction added to 1inch's SwapVM. It asks the same hook for the price, so 1inch quotes exactly what Uniswap quotes.
Claims
Uniswap pays traders' input to the hook a moment after the swap. The hook holds it as ERC-6909 claims for you, counts it as yours immediately, and moves it into your wallet on the next swap (a flush).
LVR
Loss-versus-rebalancing: what an index gives up to the traders who move it back on target after a price change. Tenbin earns fees on those trades but does not remove LVR.
Isolation key
A label passed to Anon-RPC so reads about different things travel separately and can't be linked to one person.
10

Why “Tenbin”

A balance scale: two pans, one beam, held level.
Tenbin (天秤) is the Japanese balance scale: one beam, two pans, held perfectly level. Tenbin keeps your index balanced at its target weights and holds Uniswap and 1inch level: the same price, at the same moment, from the same wallet.