How it works

The loop

A swap, a Reactive reaction, a callback: three contracts and no server between your rule and your position.

System: you save rules on the Executor on Base Sepolia and Unichain Sepolia; the Watcher on Reactive Lasna mirrors every rule and gets every Swap from the Uniswap v4 pools; it calls the Executor back in about a second; the Executor re-ranges, exits, collects or trades on the position NFT in your wallet, or moves it through Across; an indexer and the web app read events, never in the loop
The system. The indexer and the app only read; if both were down, rules would still fire.
PartWhereWhat it does
ExecutorOne on Base Sepolia, one on Unichain SepoliaHolds your rules and your gas budget. Announces every rule change. Receives the callback, re-checks everything against the live pool, acts in one atomic self-call, acknowledges the outcome and charges your budget.
WatcherOne reactive contract on Reactive Lasna, for both chainsMirrors every rule from the Executors' events, subscribes to the Swap events of every pool a rule depends on, and decides in react() whether a trigger holds. If it does, it requests the callback.
Your positionYour walletMinted to you, never to the Executor. The Executor holds only approve-for-all on the PositionManager.

One rule firing

Sequence: a swap crosses the rule's edge on a Uniswap v4 pool on Base Sepolia; the Watcher's react() requests a callback; the Reactive callback proxy calls the Executor's execute; the Executor re-checks and acts, minting the new range to your wallet; it emits an Ack the Watcher reads; the proxy calls pay(), charged to your gas budget
Origin swap → callback in about a second on Base (median 1.0 s over 22 loops; the fastest 600 ms), ≈ 2 s on Unichain.

The swap. Someone swaps in the pool. Its Swap event carries the new tick.

The reaction. Reactive delivers the event to the Watcher's react(). Each pool keeps a quiet band between its nearest triggers, so most swaps end there. When a trigger holds, the Watcher requests a callback with the rule's id, version and the tick it saw, and a gas limit for that action.

The callback. Reactive's proxy calls the Executor's execute. The Executor checks every condition again (the checks), acts, and emits an Ack with the outcome and its reason.

The payment. The proxy calls pay(); the Executor charges the rule's owner (payment). The Watcher reads the Ack and clears the request.

On this page