Stop splitting your coins across exchanges.
Tenbin lets Uniswap and 1inch trade one wallet at one price. Your coins stay put, both venues quote the same number, and nobody sees you watching.
- ✓ 0 wei apart on both venues
- ✓ Arbitrage loops lose money
- ✓ 59 contract tests, all green
The idea, in a shop
Raju keeps mangoes, rice and cash in one stockroom and opens two stalls in two markets. That's Tenbin.
Today, two stalls means two stockrooms
To sell in two markets, you split your stock. Each pile gets its own price, the prices drift, and arbitrageurs live off the gap.
- Coins split into a pile per venue
- Two prices drift apart
- Arbitrage drains the gap from you
- One wallet; your coins never move to a pool
- One price on both venues: 0 wei apart
- Any arbitrage loop loses (−0.8%)
./scripts/demo.sh).With Tenbin, both stalls sell from one shelf
Your wallet is the stockroom. Uniswap and 1inch are the stalls. A sale at either one changes the shelf, so both price tags move together. Nothing to sync.
See the live book →What actually happens on a trade
A Uniswap v4 hook and a 1inch SwapVM instruction ask the same price function. Coins move straight from your wallet through 1inch Aqua, your only approval.
The whole idea, step by step →- 1Trader swapsthrough any Uniswap router
- 2Hook prices itquote() over your wallet; the pool's curve is switched off
- 3Aqua pays outthe coins bought leave your wallet, within Uniswap's limit
- 4Input comes homeheld as claims, then flushed into your wallet
- 1Taker fillsyour shipped 1inch order
- 2Opcode 0xd0 prices itthe same quote() over the same wallet
- 3Aqua pays outthe coins bought leave your wallet, within 1inch's limit
- 4Input comes homepushed straight into your wallet
Don't trust us. Run it.
One command forks Base Sepolia with the real Uniswap v4 contracts, deploys Tenbin, trades on both venues and prints this:
$ ./scripts/demo.sh
DeployTenbin ok · LaunchIndex ok · DemoTrades ok
Same trade, both venues
sell 0.1 ETH Uniswap 413.769069 USDC 1inch 413.769069 USDC difference 0 wei
sell 300 USDC Uniswap 0.002736 BTC 1inch 0.002736 BTC difference 0 wei
sell 0.001 BTC Uniswap 0.025639 ETH 1inch 0.025639 ETH difference 0 wei
Arbitrage check: ETH -> USDC -> BTC -> ETH across both venues
1 ETH in -> 0.991924 ETH out (-0.808%)
Real fills on chain
Uniswap v4 fills: 2 1inch Aqua fills: 2What you get
Every line links to the test that proves it.
Honest about it
Testnet only, not externally audited. Here is what we checked, and what Tenbin does not do.
What we checked
- Our own review found a critical cross-venue bug (a $752 proof of concept). A fail-closed fill lock fixes it.
- Fuzzed invariants: same price on both venues, claims always backed, loops always lose.
- Fork tests against the real Uniswap v4 PoolManager, V4Quoter and Universal Router on Base Sepolia.
What it doesn't do
- It doesn't remove LVR: when markets move, the traders who rebalance you capture the move; you earn the fee.
- One trade moves at most 30% of a balance; each venue sells only up to its limit.
- Use a dedicated wallet: prices read its live balances.
Build on it
Clone it and run everything locally in one command. Then launch an index, quote both venues, or route trades from your own app.
git clone --recursive https://github.com/Abhist17/tenbin
cd tenbin
(cd contracts && npm ci) && (cd web && npm ci)
./scripts/demo.shQuestions
No. You approve one contract, 1inch Aqua, which gives each venue a selling limit. Coins move only when a trade fills.
Both call one pricing function over your real balances: a Uniswap v4 hook and a 1inch SwapVM instruction (opcode 0xd0).
No. There is no gap between them, and any loop through your wallet loses money.
No. Prices come only from your balances, and traders do the rebalancing.
On Base Sepolia (testnet) with test tokens that have no value.
Tenbin (天秤) is the Japanese balance scale. A balanced index, and two venues held perfectly level: one price.