Skip to content
CryptoZephyrPublic

About

Your counterparty is the bridge. Cross-chain ETH/USDC swaps on Base and Unichain, settled by Reactive Network about 5 seconds after the bell

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Bell

Bell swaps ETH and USDC across Base and Unichain by pairing you with a trader on the other chain instead of a bridge, and pays both sides about 5 seconds after the bell.

It is for someone who holds USDC or ETH on one chain, wants the other asset, and doesn't want to bridge first. You pay on your own chain and are paid on whichever chain your match is on.

Measured on 31 rounds on the deployed contracts (18 to 19 Nov 2026): the median time from the bell to the last payout is 5 seconds (3 to 10), and 22 of the 31 landed within 6 seconds. How we measured it.

Built for the Reactive Omni Buildathon 2026, track Every Second Counts · Not affiliated with Reactive Network, Uniswap, Base, Unichain or Circle · App: https://bell-gold-six.vercel.app · Code: https://github.com/CryptoZephyr/bell · Video: https://youtu.be/AxQ6GApe3JI

Start here: watch the 2:28 video, a live round from two wallets to both payouts, or take the 2-minute tour, no wallet or signup needed. Full docs are in docs/.

Quick asks:

2 verbs

Verb What it is Try it without an account
Check Every bell on the deployed contracts, newest first, with the real seconds each one took from the bell to the last payout. It works at any hour and needs no wallet. Each round links to its transactions on the block explorers. One round is walked through in Proof it works and on its own page at https://bell-gold-six.vercel.app/#/round/8643401 https://bell-gold-six.vercel.app/#/rounds
Watch The live round: the countdown to the next bell, the Uniswap price, one book holding orders from both chains, and each chain's payout landing. If a round settled in the last 10 minutes or so, the page also shows it with its real timings and explorer links. Otherwise it reads "Market quiet", so start with Check https://bell-gold-six.vercel.app/#/bell

More to explore

Feature What it is Where
Trade Buy or sell ETH on either chain with a worst-price limit, placed by press and hold. Needs a wallet and test funds https://bell-gold-six.vercel.app/#/trade
Rounds The record behind Check: a speed summary, a seconds strip and one page per round with its split sheet and ledger. Seconds come from block timestamps, and a chain whose logs can't be read says so instead of showing a number https://bell-gold-six.vercel.app/#/rounds
Receipts Each order's result, the chain it was paid on, and every step linked to an explorer https://bell-gold-six.vercel.app/#/activity
Contracts and proof The three contract addresses with explorer links, and what the contracts promise https://bell-gold-six.vercel.app/#/contracts
Help Why you're paid on the other chain, what protection means, how to get test funds https://bell-gold-six.vercel.app/#/help
Live evidence Every testnet gate with its transaction hashes docs/EVIDENCE.md
Testing results Every test of the deployed build, with the defects found and fixed docs/TESTING_RESULTS.md
Device checklist Steps for testing on real phones, wallet apps and screen readers docs/DEVICE_TEST_CHECKLIST.md
Contract review Our own review of both contracts: what we fixed and what we accepted docs/SECURITY_REVIEW.md

Latency, measured across the full loop

Every Second Counts asks for latency numbers across the full loop. The loop is: a trader places an order on a desk, the referee on Lasna hears it, the bell rings, Reactive callbacks pull the funds on both chains, and then pay out. Every number below is read from block timestamps on the chains, for the 31 rounds on the current contracts whose payouts could be read (18 to 19 Nov 2026, many from our own wallets). The same data is live on the Rounds page.

Step Median Range Source
You move your funds away after placing an order, and the referee drops the order the same second one live test C-07 in docs/TESTING_RESULTS.md
Order placed on a desk, then in the referee's book 0 to 1 s R-10 in docs/TESTING_RESULTS.md
Bell, then the first pull confirmed on a desk 2 s 1 to 4 s 31 rounds
Bell, then Lasna settles the round 2 s 1 to 5 s 31 rounds
Bell, then the last payout 5 s 3 to 10 s 31 rounds

By size of the book, bell to last payout: 1 to 2 orders took a median of 4 s (3 to 6 s, 21 rounds), 3 to 4 orders 8 s (6 to 9 s, 6 rounds), and 5 to 6 orders 9 s (8 to 10 s, 4 rounds).

What the seconds are made of. Settlement takes two Reactive hops. At the bell, the referee on Lasna asks each desk to pull the trader's funds, and about 2 seconds later the pulls are confirmed. Only then, with every pull reported, does the referee pair the orders and ask the desks to pay, and the last payout lands 2 to 3 seconds after the first pull. The two steps are the price of safety: a desk only pays out money it holds, and one failed pull drops only that order while the others settle. More orders mean more callbacks, which is why a full book takes 8 to 10 seconds. Settling a full book of 6 orders used 577k gas of the 900k callback cap (docs/EVIDENCE.md).

What the seconds do not include. The bell itself. It rings every 100 Lasna blocks of the Cron100 timer, which is 105 to 108 seconds (median 106, over 18 consecutive bells), and only while orders exist. An order placed into a quiet market waits for the next bell, which comes at the next timer tick, so the wait depends on where in the cycle the order lands. Over the 34 first orders into an empty book on the current contracts it ran from 1 to 101 seconds, with a median of 46 seconds. From placing an order to being paid is therefore up to about two minutes. That is the design, not an accident: a bell collects buyers and sellers so they pair at one price, with no bridge and no solver. The latency we measure and claim is the reaction time after the bell. We have not measured other cross-chain swaps, so we make no comparison.

How we measured it. Base Sepolia blocks are about 200 ms apart, so Bell never counts blocks as time. Every figure is the difference between block timestamps, which are whole seconds, so each is good to about a second.

Why Reactive is essential

Moving value between chains today takes a bridge and then a swap, or a solver who fronts their own money on the other chain and charges for it. Bell needs neither, because Reactive is the exchange. Without Reactive there is no shared book, no bell and no settlement across two chains. There is no server, keeper or bot. Turn off every laptop and the rounds keep running, as long as the referee has REACT to pay for its reactions. We ran it out of REACT on purpose: the app showed the bell as paused, and Bell recovered after a top-up.

  • No Reactive, no shared book. The referee subscribes to both desks' OrderPlaced events and keeps one book across two chains. It also watches each trader's token transfers while their order is open, and removes the order if the funds move (contracts/BellReferee.sol: configure, _onOrderPlaced, _onTransfer).
  • No Reactive, no bell. The referee listens to Lasna's Cron100 timer only while orders exist, so a quiet market costs nothing (_onOrderPlaced, _bell, _finishRound).
  • No Reactive, no settlement. Every pull, payout and pool swap is a Reactive callback, and the desks refuse calls from anyone but the Reactive callback proxy acting for the referee (_settle and _callback in BellReferee.sol, onlyServiceProvider in contracts/BellDesk.sol).
  • No Reactive, no speed. Every step in the latency table is a Reactive reaction or callback, and none waits on a keeper, a poller or a person. The referee hears an order, a cancel, a pull report or a swap on the reference pool as the event happens on its own chain, and a callback it sends lands on a desk chain about 2 seconds later. A trader who moves their funds away after placing an order is dropped in the same second.

What the referee uses from Reactive: 9 standing event subscriptions (OrderPlaced, Collected, Swapped and OrderCancelled on each desk, and Swap on the Unichain reference pool), a Transfer watch for each open order, the Cron100 timer while orders exist, and callbacks to both desk chains. It pays for every reaction in REACT from its reserves, about 0.016 REACT each. The Reactive MCP reports it HEALTHY with 9 of 9 subscriptions active, and check_rc_source returns OK_SOURCE for both contracts.

Architecture

  • Desks: one contract on Base Sepolia and one on Unichain Sepolia. They record orders and move money only when the referee asks through Reactive.
  • Referee: one reactive contract on Reactive Lasna. It keeps the book, rings the bell, sets the price, pairs orders and settles the round.
  • Pools: a real Uniswap v4 USDC/WETH pool on each chain. The Unichain pool sets the price, and each pool takes the leftovers on its chain.
  • App: a static web app that reads all three chains directly, with no backend.
flowchart LR
  A["Desk on Base Sepolia"] <-->|"orders in, money moves out"| R["Referee on Reactive Lasna"]
  B["Desk on Unichain Sepolia"] <-->|"orders in, money moves out"| R
  P["Uniswap v4 pool<br/>(price reference)"] -->|"latest swap price"| R
  App["Web app, no backend"] -.->|"reads"| R
Loading

One round, end to end:

sequenceDiagram
  participant B as Buyer on Base
  participant DA as Base desk
  participant R as Referee on Lasna
  participant DB as Unichain desk
  participant S as Seller on Unichain
  B->>DA: place a buy (no money moves)
  S->>DB: place a sell (no money moves)
  DA-->>R: OrderPlaced
  DB-->>R: OrderPlaced
  Note over R: The bell rings. Price = last swap on the reference pool.<br/>Orders whose limits allow it are paired, first in, first out.
  R->>DA: pull the buyer's USDC
  R->>DB: pull the seller's WETH
  R->>DA: pay the seller USDC on Base
  R->>DB: pay the buyer WETH on Unichain
  Note over R,DB: A leftover fills on the trader's own pool, never past their limit.
Loading

Orders, and the funds of a round while it settles, sit on the desks. The book and the price sit on the referee. The one schedule is Lasna's Cron100 timer, every 100 Lasna blocks (about 106 seconds), and the referee only listens to it while orders exist. The app keeps nothing on a server. Your browser remembers only your theme and the wallet you last used.

Deployed contracts

All on testnets. The app and the scripts read these from deployments/bell.json.

Contract Network Address Deployed in
Referee Reactive Lasna 0x83546642aCC2B2419812367A90f537d68aabC857 0x1e9a6ce7…51bf58
Desk Base Sepolia 0x2f5666F3Db9fC20F527ABba6746001ab4DccB2b6 0x79064f54…f48d0
Desk Unichain Sepolia 0x0B22446b4637c06cF61BA446096BB99cFd139bb2 0x3ee2f651…246ec6

The referee was wired to the two desks and the reference pool once, in the configure transaction 0xbe599747…8b5b5233. After that call neither the desks nor the pool can be changed. The reference pool is the Uniswap v4 USDC/WETH pool with id 0x71fba4ef34765b317417131bb7cef92bd4c43405babf9386cacdd10cf8641422 on Unichain Sepolia.

Who holds which key (or permission)

Role Lives in Can Can never
Trader Their own wallet Approve a desk, place an order, cancel it until the desk pulls the funds Move another trader's funds, or set the price
Desk A contract on each desk chain Pull, pay, swap, refund and close, only when the Reactive callback proxy calls for the referee Pull more than an order committed to, or obey anyone else
Referee A reactive contract on Reactive Lasna Keep the book, set the price, pair orders, ask the desks to move money Touch funds itself, or change its desks or pool after the one-time configure
Reactive callback proxy Reactive Network, on each desk chain Deliver the referee's callbacks Make a desk act for any contract other than the referee
Deployer key BELL_PRIVATE_KEY, on the deployer's machine Deploy, run configure once, withdraw REACT from the referee Call a desk's money functions. The desks have no owner and no admin

Safety

Every limit below is enforced in the contracts or the app and covered by a test.

Rule Enforced in Proven by
A desk never pulls more than the order committed to BellDesk.collect "rejects a buyer pull above the cost at the order's own limit"
A leftover fills only inside the trader's limit, after the pool fee. The rest comes back in the same transaction BellDesk.swapBuy, swapSell "a buyer remainder stops at the cap", and the seller version
An order the trader can't pay for, or under 0.00001 ETH, is refused before it costs anything BellDesk.place "needs approval and balance", "rejects dust orders"
At most 6 orders in the book and 2 per wallet. An order expires after 15 minutes MAX_BOOK, MAX_ORDERS_PER_TRADER, ORDER_TTL live drops in docs/EVIDENCE.md
A price jump over 10% inside one bell skips the round, and no money moves DRIFT_BPS "skips the round when the pool price drifts more than 10%"
One failed pull drops only that order. Everyone else settles in the same round _resolvePulls live round C-11 in docs/TESTING_RESULTS.md
A lost delivery expires after 300 s, and every desk refunds from its own records PULL_TIMEOUT, refundOrder "a lost delivery: survivors settle on the expiry bell"
A finished order is frozen and can never be pulled again closeOrder, refundOrder "a settled order is frozen"
The app shows Paid only after the payout is confirmed on the chain frontend/src/chain/payouts.ts frontend/tests/paid-truth.mjs, 31 checks
Random books across both chains keep every desk balanced both contracts "random books keep the books balanced", 40 books

Two risks remain open, and docs/SECURITY_REVIEW.md explains both. A funded wallet can place and cancel in a loop and drain the referee's REACT. And the price is the last swap of one thin pool.

What's real and what's simulated

Real Simulated
Circle's testnet USDC and canonical WETH on both chains Nothing in the app or the demo
Uniswap v4 pools and swaps on both chains The pools' liquidity is ours, added for testing. It is not market depth
Reactive Lasna subscriptions, timer and callbacks, paid in REACT A stand-in for the Reactive system contract, used only by the local unit tests in contracts/test/
Every number in the app, read from the chains, and every claim in docs/, backed by a transaction

Tech stack

Solidity · Hardhat · reactive-lib-omni · Uniswap v4 · React · Vite · viem · TypeScript · Playwright · axe-core · Vercel.

Run it locally

git clone --recurse-submodules https://github.com/CryptoZephyr/bell.git
cd bell/frontend && npm ci
npm run dev

This runs the app at http://localhost:5173 against the live testnet contracts, with zero keys. Everything works, including trading from your own wallet. The contract tests need no keys either: run npm install and npx hardhat test at the repo root (79 tests).

Variable What it enables
BELL_PRIVATE_KEY Deploying the contracts and running the live scripts in scripts/. A funded testnet key, kept in your shell and never committed
AMOUNT How much REACT scripts/fund-reserves.js deposits for the referee

Deploying

The app is a static Vite build on Vercel, with frontend as the root directory. Each push to the default branch goes to production, and every other branch gets a preview.

The contracts go out in this order, because each side needs the other's address:

STAGE=referee npx hardhat run scripts/deploy.js --network lasna
STAGE=desk:baseSepolia npx hardhat run scripts/deploy.js --network baseSepolia
STAGE=desk:unichainSepolia npx hardhat run scripts/deploy.js --network unichainSepolia
STAGE=configure npx hardhat run scripts/deploy.js --network lasna
AMOUNT=1.0 npx hardhat run scripts/fund-reserves.js --network lasna

Keep at least 1 REACT in the referee's reserves. A reactive contract in debt stops hearing events. scripts/watch-reserves.js exits with an error when reserves run low, so a cron job can raise the alarm, and scripts/align-pools.js brings both pools to the same price before a demo. The addresses live in deployments/bell.json, and the app reads them from there.

Proof it works

One round on the deployed contracts, 18 Nov 2026. A seller on Base and a buyer on Unichain were paired at 799.90 USDC per ETH. Bell to last payout: 5 seconds. The first four rows are the origin events, the orders placed on the two desks, and the referee's reactions to them. Each reaction carries the origin transaction hash and block, so the loop can be followed from the origin event to the callbacks. The chains' clocks differ by about a second, so the seller's reaction shows a second before its origin block. The same round on the Rounds page, with its split sheet and every transaction: https://bell-gold-six.vercel.app/#/round/8643401

Time (UTC) Chain What happened Transaction
09:57:01 Unichain Sepolia The buyer placed an order for 0.0004 ETH, the origin event (OrderPlaced) 0x226eeec4…53ce92
09:57:01 Reactive Lasna The referee reacted and put the buyer's order in the book 0x68c6c391…2e2ddc
09:57:05 Base Sepolia The seller placed an order for 0.0003 ETH, the origin event (OrderPlaced) 0x43b7b5d1…33638e
09:57:04 Reactive Lasna The referee reacted and put the seller's order in the book 0xe35a2b28…cd39e9
09:58:30 Reactive Lasna The bell rang: 2 orders in, 1 pair 0x5aec5411…d34a8d
09:58:32 Base Sepolia Pulled the seller's 0.0003 WETH 0x38b88ed9…2aa8ad
09:58:33 Unichain Sepolia Pulled the buyer's 0.319961 USDC 0x448f4007…ba90cb
09:58:34 Base Sepolia Paid the buyer 0.0003 WETH on Base 0x563a6c5a…632d06
09:58:35 Unichain Sepolia Paid the seller 0.239970 USDC on Unichain 0x16937232…033064
09:58:35 Unichain Sepolia Filled the buyer's leftover 0.079991 USDC on the pool 0x2e8dade3…e43c76

Every round since, with its seconds, is on the Rounds page. Rounds with one or two orders paid out in a median of 4 seconds, and a full book of 5 to 6 orders in 9 seconds (8 to 10). The three demo runs and every other test are in docs/TESTING_RESULTS.md.

It also works for someone outside the build. On 18 Nov 2026 the project owner placed a buy of 0.0001 ETH on Base from their own wallet in the hosted app. The bell rang 13 seconds later (0xc41d840c…eff800), the desk collected 0.078519 USDC, and the Base pool paid out 0.0000986726 WETH 4 seconds after the bell.

The owner ran it again that evening from the Mises browser with the Rabby wallet: two buys on Base, 0.005 and 0.002 ETH. No seller was waiting on Unichain, so both went to the Base pool, each capped at its own limit. The bell rang at 21:35:04 UTC (0xd721b2a5…35d75c) and Lasna settled 2 seconds later (0x79a6f795…591fa5). The pool paid out 0.000647 WETH (0xaf0ffa4a…a9ce50) and 0.001944 WETH (0x38e37a2f…847234) 4 seconds after the bell. The first order filled only 0.52 of its 3.93 USDC inside its limit, and the other 3.41 USDC went straight back to the wallet in the same transaction. The whole round is at https://bell-gold-six.vercel.app/#/round/8682801.

Next steps

Price averaging is not built. The bell prices a round at the last swap on the reference Uniswap pool and skips the round if that price moved more than 10 percent inside one window. A time-weighted average over a short window would make the price harder to move with one trade. It is the first thing to add before this goes beyond testnets.

Repository map

contracts/BellDesk.sol       one desk per chain: orders, pulls, payouts, pool swaps
contracts/BellReferee.sol    the reactive contract: book, bell, price, pairing, settlement
contracts/test/              stand-ins for the local tests only
test/                        contract tests (79)
deployments/                 address records, bell.json is current
scripts/                     deploy, fund reserves, align pools, live rounds, reserve watch
frontend/src/chain/          reads the three chains: rounds, orders, payouts, receipts
frontend/src/screens/        Landing, Bell, Trade, Activity, Receipt, Rounds, Round, Contracts and proof, Help
frontend/src/ui/             the living mark, bell card, tickets, buttons, sheets
frontend/tests/              accessibility, keyboard, end-to-end, paid-truth and Rounds tests
docs/                        evidence, security review, frontend audit, testing results
vendor/reactive-lib-omni/    the Reactive library, pinned as a git submodule

Pre-existing work and credits

Everything here was built during the buildathon, from 17 Nov 2026: both contracts, the app, the scripts, the tests, the design system and the logo. A private spike repository from the same week proved each mechanism first. No code was copied from it. Single-price clearing comes from Cleara (Colosseum, Solana) as an idea, with no code reused.

Library Use License
reactive-lib-omni Base contracts for the referee and desks, unmodified, pinned at 3ade0dc Marked UNLICENSED in its source headers
Uniswap v4 core Pool interfaces, plus swap and liquidity helpers used only by our scripts BUSL-1.1
viem, React, Vite, Hardhat, ethers The app, the build and the tests MIT
Schibsted Grotesk, Spline Sans Mono Typefaces, self-hosted SIL Open Font License
Playwright, axe-core Browser and accessibility tests Apache-2.0, MPL-2.0

License and disclaimers

MIT. See LICENSE. Each library keeps its own license.

Testnet only. Bell holds no real money and hasn't been audited, so don't deploy it to mainnet as it stands. Bell isn't affiliated with or endorsed by Reactive Network, Uniswap Labs, Base, Unichain or Circle. Their names describe only what Bell runs on.

About

Your counterparty is the bridge. Cross-chain ETH/USDC swaps on Base and Unichain, settled by Reactive Network about 5 seconds after the bell

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages