Latency
Measured from the blocks, per action, from the swap that crossed the trigger to the callback that acted.
The method. For every action Reactive triggered, latency is the callback's block time minus the origin swap's block time, on the action chain. Base Sepolia stamps milliseconds (timestampMs, 200 ms blocks); Unichain Sepolia and Lasna stamp whole seconds, so loops that touch them read in seconds. The indexer computes it for every action, live at /latency; contracts/script/proof.py does the same for one action from the command line.
- median, Base swap → Base action (68 loops)
- 1.2 s
- p90, same loops
- 1.8 s
- Unichain swap → Unichain action
- ≈ 2 s
- a trigger on one chain acting on the other
- 1.2–1.4 s
| Loop | Loops | Median | p90 |
|---|---|---|---|
| Base Sepolia swap → Base Sepolia action | 65 | 1.2 s | 1.8 s |
| Unichain Sepolia swap → Unichain Sepolia action | 19 | ≈ 2 s | ≈ 3 s |
| A rule saved past its trigger → action (Unichain) | 3 | ≈ 2 s | ≈ 2 s |
| Base Sepolia swap → Unichain Sepolia action | 3 | 1.6 s | 2.6 s |
| Unichain Sepolia swap → Base Sepolia action | 1 | ≈ 1.4 s | — |
Every rule type, measured
Each loop opens a fresh position on a bench pool with one rule (openWithRules), moves the price past its trigger with the price mover, and times the swap to the Executor's callback. The rows are in testnet-loops.json; Unichain Sepolia stamps whole seconds.
| Rule | Swap on → action on | Loops | Each, swap to callback | One of them |
|---|---|---|---|---|
| Stop-loss | Base Sepolia → Base Sepolia | 2 | 1.4 s, 1.6 s | swap · reaction · callback |
| Stop-loss | Unichain Sepolia → Unichain Sepolia | 3 | 2.0 s, 2.0 s, 2.0 s | swap · reaction · callback |
| Take-profit | Base Sepolia → Base Sepolia | 3 | 1.2 s, 1.2 s, 1.4 s | swap · reaction · callback |
| Trailing close | Base Sepolia → Base Sepolia | 2 | 1.6 s, 3.0 s | swap · reaction · callback |
| Stop loss (an order, sell at a price) | Base Sepolia → Base Sepolia | 2 | 1.0 s, 1.2 s | swap · reaction · callback |
| Follow the price | Unichain Sepolia → Unichain Sepolia | 3 | 2.0 s, 3.0 s, 3.0 s | swap · reaction · callback |
| Stop-loss watching the other chain | Base Sepolia → Unichain Sepolia | 2 | 1.6 s, 2.6 s | swap · reaction · callback |
Fire one yourself
The landing's Run it now moves a test pool's price on Base Sepolia; the Watcher on Lasna reacts to that swap and calls back the Executor, which re-ranges a position in the demo wallet (its Keep-in-range rule moves to the new position and waits for the next press). The card lights each transaction as it lands and shows the time between the swap's block and the callback's, as Base stamps them. The first press took 800 ms.
The press is ours, sent from a server key; the rule it sets off runs on-chain. Each press costs the Watcher about 0.077 lREACT, so there's one at a time, a cooldown, a daily cap (never more than the rule's own 24 a day), a per-network cap, and it pauses itself when the Watcher's fuel runs low. Why the second matters.
Against a bot polling every second
The same five swaps each set off one Reactive order and one order on a bot's own Executor instance, from the same machine and RPC, with the same action code (apps/baseline).
| Samples | Median | p90 | Range | |
|---|---|---|---|---|
| Reactive | 5 | 1,200 ms | 1,800 ms | 1,000–1,800 ms |
| Bot, 1 s polling | 5 | 1,000 ms | 2,200 ms | 600–2,200 ms |
The full loop passes through another chain and back, and still lands within 200 ms of the most aggressive practical bot at the median, with a tighter tail (p90 1.8 s against 2.2 s) and no server to run, pay for or breach. A bot that polls faster spends more and still needs a server running.