# Contracts (/docs/build/contracts) Testnet, where the judged loop runs: Reactive Lasna with Base Sepolia and Unichain Sepolia. Mainnet's contracts (the same generation, live since 4 December) and every transaction that deployed them are on [Mainnet](/docs/build/mainnet). Generation 5: one Watcher runs every rule on both action chains, and one Copier runs copy trading beside it, each with its own fuel. | Contract | Chain | Address | |---|---|---| | **Watcher** (rules' reactive contract) | Reactive Lasna (5318007) | [`0x4B6f791d3CC1EAe892e590DE09A568562FF4966e`](https://lasna.reactscan.net/address/0x4B6f791d3CC1EAe892e590DE09A568562FF4966e) | | **Copier** (copy trading's reactive contract) | Reactive Lasna | [`0x134d8E9d822A527b07427cb3fFE86951628bA5d3`](https://lasna.reactscan.net/address/0x134d8E9d822A527b07427cb3fFE86951628bA5d3) | | **Executor** | Base Sepolia (84532) | [`0x44C58e6C289012a319fDF1679bc02fD2B1270791`](https://base-sepolia.blockscout.com/address/0x44C58e6C289012a319fDF1679bc02fD2B1270791) | | **Executor** | Unichain Sepolia (1301) | [`0x81748de9FAecEb981DC37611a649924787dD3D62`](https://unichain-sepolia.blockscout.com/address/0x81748de9FAecEb981DC37611a649924787dD3D62) | | **CopyExecutor** | Base Sepolia | [`0xD12782c17fdcBc1720EBCf5b8E745936814697F0`](https://base-sepolia.blockscout.com/address/0xD12782c17fdcBc1720EBCf5b8E745936814697F0) | | **CopyExecutor** | Unichain Sepolia | [`0x2e7FbC0EbA3e47235eC4DA3BCf9884FCEB96838E`](https://unichain-sepolia.blockscout.com/address/0x2e7FbC0EbA3e47235eC4DA3BCf9884FCEB96838E) | | RuleBook (linked library, same on both chains) | Base · Unichain Sepolia | `0x56f2FD9DA342014776130EB5B976EeD4f1f7593d` | | ActionBook | Base · Unichain Sepolia | `0xFBBaE9348374e00149eb8aE904CcF45Bf30C0dc7` | | MoveBook | Base · Unichain Sepolia | `0xaBcAf919d3BB1Ef2fe75f49084F76573f248d20f` | | CopyBook (the CopyExecutor's library) | Base · Unichain Sepolia | `0xB3d02D877659169555CA0cfb028DAbCC5D7A21b5` | | PriceMover ("Move the price") | Base · Unichain Sepolia | [`0x9D69…9777`](https://base-sepolia.blockscout.com/address/0x9D69777eeFb0156E2Cc7FA989a3E22436A879777) · [`0x7F6F…Fe36`](https://unichain-sepolia.blockscout.com/address/0x7F6F3B0fB8A0F49bC33d2064f185036d1b89Fe36) | | TestnetFunder (Try) | Base · Unichain Sepolia | [`0x04c8…719e`](https://base-sepolia.blockscout.com/address/0x04c89888F628174fBA6eFa8cF8F95ABC4998719e) · [`0x61eC…05fA`](https://unichain-sepolia.blockscout.com/address/0x61eC4263De7A7bFED39b48f795f80322D3E205fA) | | DemoMover (can move the demo pool on a cron; off) | Reactive Lasna | [`0x4173…FcF1`](https://lasna.reactscan.net/address/0x41733F33f00527Ffcb45F8C79185aDECF8d3FcF1) | **Uniswap v4** (theirs): PoolManager `0x05E7…3408` and PositionManager `0x4B2C…ca80` on Base Sepolia; `0x00B0…62AC` and `0xf969…d664` on Unichain Sepolia. Swap copies trade through the **Universal Router** (2.1.2): `0x8702…2650` (Base Sepolia), `0xDf38…7E95` (Unichain Sepolia). **Across** SpokePools: `0x82B5…0F8F` (Base Sepolia), `0x6999…A874` (Unichain Sepolia). ## What generation 5 added [#what-generation-5-added] | | | |---|---| | **Copy trading** | The Copier subscribes to followed wallets' token transfers and position NFTs on both chains; a leader's swap is read from its first two token legs (one out to the pool or router, one in), a position from its mint or its leaving. It calls the CopyExecutor on the chain each copy lands on, which sizes it by the follow's share, caps and daily limits, checks the pool's price against the leader's fill, and swaps through the Universal Router or mints through the PositionManager. [Copy a wallet](/docs/guide/follow) | | **Exit in steps** | An exit rule takes a share of what's left (`shareBps`); the last step takes the rest | | **A second pool's agreement** | Any price rule can name a second pool of the same pair (`checkKey`, `agreeTicks`); outside the band it skips and stays armed (reason 33) | | **Move when it earns more** | A timed Move compares two pools' fee growth per unit of liquidity (`feeEdgeBps`), on a run of checks | | **No-fill orders stay armed** | A token order or Rebalance that meets no liquidity within its slippage undoes itself and stays armed (reason 32), instead of completing with nothing sold | **Earlier generations,** which fired the older proofs: Executors `0x149F1d59…8258` (Base) and `0xA683B48F…eFF0` (Unichain) with Watcher `0xfF2Cf14B…343A`; Executors `0x221a99AA…4c91` and `0xa2085438…69B8` with Watcher `0x7350d6a5…0cb3`; Executors `0x87C4aA23…0945` and `0x681165Ef…4672` with Watcher `0x562997F3…3ec4`. Their budgets, permissions and any payout held for you still show in Settings, with their way out (Withdraw, Revoke, Claim). # The code (/docs/build) **Read first:** `contracts/src/Watcher.sol` (`react`), `contracts/src/Executor.sol` (`execute`), `contracts/src/libraries/ActionBook.sol`, `contracts/test/Engine.t.sol`, `apps/web/src/features/position/position-screen.tsx`, `apps/web/src/features/proof/proof-sheet.tsx`. All 100 pass, 84 of them on a Base Sepolia fork. **48 run the whole loop through Reactive's metered harness** (`reactive-test-lib`, `FeeMode.Metered`): a swap, the Watcher's `react()`, the callback and `pay()`, for every rule type except Compound and Rebalance, plus skips charged without debt, wait times on cron and a chained pair. The rest call the Executor or the Watcher directly: Compound and Rebalance through the callback proxy, a rule edited mid-flight, a revoked permission, a short float that never spends another user's budget, a v3 → v4 move, Try's funder, and a full pool under a reaction's gas. # The indexer API (/docs/build/indexer-api) Ponder 0.18.9 indexes both Executors and CopyExecutors, the Watcher and the Copier, the PriceMovers, the funders and our test pools into Postgres. It's read-only and never in the loop. Live at [indexer-testnet.tsuneni…](https://indexer.tsuneni.xyz/latency). | Route | Returns | |---|---| | `GET /latency` | Median, p90, min, max and the loops per half second (`buckets`, 0–5 s, the last bucket slower) per chain pair from completed proofs, and the bot comparison | | `GET /proof/:chainId/:requestId` | One action's three legs with explorer links | | `GET /account/:address` | An address's rules, mirrors, positions, recent actions with proofs, budgets and moves; whom it follows, who follows it, and its latest copies with counts per follow; `held`, the position NFTs it holds in our pools, each with its pool | | `GET /position/:chainId/:tokenId` | A position's lineage, rules, actions and cash flows | | `GET /action/:id` | One action with its proof, its rule and the positions before and after | | `GET /flows/:chainId?ids=` | Cash flows per position across its lineage (for PnL) | | `GET /pool/:chainId/:poolId/prices` | A pool's price history | | `GET /account/:address/copies?before=` | Older copies for a follower, newest first (a cursor `ms:id`) | | `GET /copy/:id` | One copy with its follow, the leader's event, the three legs and any protection rule it armed | | `GET /leader/:address` | A wallet as a leader: its copiers (`followers`) by chain and kind, whether the Copier watches it (or capped it today), its recent events and how their copies went | | `GET /leaders?kind=lp\|trader&window=&chain=&me=` | The board, up to 100 rows: LPs by PnL to date (open positions at today's price, uncollected fees and withdrawals, minus deposits, each flow valued at its own block; a re-range's withdraw and re-deposit netted), or traders by a window's swaps (`24h`, `7d`, `30d`, `all`) marked at today's price, a copy counted for its follower and a token order for its owner. With `me`, that wallet's own row even past the top 100. Cached a minute | | `GET /wallet/:address/pnl?kind=&window=` | A wallet's PnL over time, sampled at round times from the window's start (or the index's first swap, if later), each valued at that moment's pool price (an LP's last point adds the fees waiting): the wallet page's chart | | `GET /wallet/:address/trades` | A wallet's latest 50 trades in our pools, newest first, attributed as the traders board attributes them: side, USDC and ETH, price, and whether it was its own swap, a copy or a token order | | `GET /activity?chain=&limit=&before=` | Every action a rule took, anyone's, newest first: up to 100 a page (default 30) with a cursor `next` (`ms:id`), each with its proof, its rule and its three explorer links. The first page adds `stats`: wallets with a rule watching, rules watching, actions in the last 24 hours and in all, the median and p90 loop over every chain, and (Testnet) the polling bot's run. Explore's Activity tab and the header's Live chip read it | | `GET /recent-copies` | The latest copies that reached their callback, anyone's (the Telegram bot's copy alerts) | | `GET /watcher` | The Watcher's and the Copier's lREACT balance, debt and paused state, read from Lasna | | `GET /summary` | Counts of actions by outcome, positions and rules, and the move rows themselves | | `GET /status` | Ponder's own: the latest block indexed on each chain | | `/sql/*` | Ponder's read-only SQL over HTTP (what `@ponder/client` uses) | ```bash curl https://indexer.tsuneni.xyz/latency ``` Latency per action is the callback's block time minus the origin swap's, where the origin is read from the Watcher's reactive transaction; Base Sepolia gives milliseconds, the other chains whole seconds. # Honest limits (/docs/build/limits) - **Mainnet is a beta.** The judged loop is Reactive Lasna with Base Sepolia and Unichain Sepolia. The [Mainnet](/docs/build/mainnet) contracts are the same code, unaudited; the app says so on every page and asks for small amounts, and its Watcher reacts only to three ETH/USDC pools. Try, Move the price and the demo trader are Testnet only. - **Rebalance** runs on a schedule, so while one exists it keeps the Watcher's slow cron (about every 3 hours) alive, and each check that's due is a callback paid from your gas budget. - **Move from the app hasn't fired live yet.** The Move dialog builds the same calls as the scripted cross-chain proof, checked against the current contracts by simulation; the proof itself is from the previous generation. - **Test pools have their own price.** They hold test tokens, so nothing ties them to the market: a pool's price moves only when someone trades in it (on 5 December the Base Sepolia pool read 4,479 USDC while ETH traded near 1,390). Rules act on the pool's own price, so they behave exactly as they would on Mainnet. Every Testnet price is marked **Test price**; its card shows ETH's market price beside it. Mainnet reads the real pools. - **Test pools are thin.** Your own position can be most of a test pool's liquidity, so a re-centre's or a one-token payout's price-limited swap can fill only part; the rest comes back to your wallet, and the app says so. - **The bot comparison is five pairs,** from the previous generation's contracts. - **The Watcher's fuel is ours.** Each reaction cost about 0.05 lREACT in our testing; Status shows the balance. Rules on a schedule keep a cron subscription alive while they exist; it ticks about every 3 hours (Cron10000), and a schedule is also checked on every swap in its pool. - **The app has helpers:** Try's funding route and the indexer. Neither is in a rule's loop: if both are down, rules still fire. - **A test wallet's key lives unencrypted** in the browser that made it, for Testnet funds only. - **The Watcher counts its ack timeout and backoff in Lasna blocks;** every timer on Base and Unichain uses timestamps. - **One swap triggers at most four callbacks.** If a single swap crosses more rules than that, the rest act on the pool's next swap; they aren't queued. - **The house float must stay funded.** A callback no user can pay for is paid from the Executor's float; with both a user's budget and the float empty, the Executor would fall into debt at Reactive's proxy and its callbacks would stop until `coverDebt`. We fund the float and watch it. - **A top-up doesn't re-check rules already past their trigger:** a rule skipped for an empty budget acts on the pool's next swap after you top up. - **PnL is reconstructed from indexed liquidity changes,** each valued at its block's price, so a re-centre within one transaction makes it approximate. # Mainnet (/docs/build/mainnet) Tsuneni runs on **Base** and **Unichain** with its Watcher and Copier on **Reactive mainnet**, deployed on 4 December 2026. The contracts are Testnet's generation 5, byte for byte, each verified on Sourcify. Mainnet is a live beta: unaudited, so the app asks for small amounts on every page. The judged loop stays on [Testnet](/docs/build/contracts) (Reactive keeps mainnet and testnet chains apart). | | | |---|---| | **App** | [mainnet.tsuneni…](https://mainnet.tsuneni.xyz): its own build; **Mainnet · Testnet** in the top bar opens the same page in the other app | | **Indexer** | [indexer-mainnet.tsuneni…](https://indexer-mainnet.tsuneni.xyz/status), the same [API](/docs/build/indexer-api) over its own database | | **Pools** | Rules watch three ETH/USDC pools: Base 0.05%, Base 0.30% and Unichain 0.30% | | **On Testnet only** | Try's test wallet and funds, Move the price, the live loop on the landing, and the demo trader | ## Contracts [#contracts] | Contract | Chain | Address | |---|---|---| | **Watcher** (rules' reactive contract) | Reactive mainnet (1597) | [`0x4d42871Fa0b3b300E0712e9701249375E1FE95C8`](https://reactscan.net/address/0x4d42871Fa0b3b300E0712e9701249375E1FE95C8) | | **Copier** (copy trading's reactive contract) | Reactive mainnet | [`0xE9D4E12Ce5031AAAb68Df67061DF7FB8Bc469a2b`](https://reactscan.net/address/0xE9D4E12Ce5031AAAb68Df67061DF7FB8Bc469a2b) | | **Executor** | Base (8453) · Unichain (130) | [`0x8c2816781B883aDdF46399fca45A9B2A2e3848d5`](https://base.blockscout.com/address/0x8c2816781B883aDdF46399fca45A9B2A2e3848d5) · [Unichain](https://unichain.blockscout.com/address/0x8c2816781B883aDdF46399fca45A9B2A2e3848d5) | | **CopyExecutor** | Base · Unichain | [`0xf139CcC14C23c9CD1eeCaAAeF797C3d80B6cB8D8`](https://base.blockscout.com/address/0xf139CcC14C23c9CD1eeCaAAeF797C3d80B6cB8D8) · [Unichain](https://unichain.blockscout.com/address/0xf139CcC14C23c9CD1eeCaAAeF797C3d80B6cB8D8) | | RuleBook · ActionBook · MoveBook · CopyBook | Base · Unichain | `0x56f2…593d` · `0xFBBa…0Dc7` · `0xaBcA…d20f` · `0xB3d0…21b5` | One deployer sent both chains' deploys in the same order, so each contract has one address on both. Every one is verified on Sourcify (`repo.sourcify.dev//
`) with its creation and runtime bytecode matching. ## How it's wired [#how-its-wired] | Setting | Value | |---|---| | Each Executor's Watcher, each CopyExecutor's Copier | The two reactive contracts above (the only callers a callback accepts, through Reactive's callback proxy) | | Peers | Base's and Unichain's Executors, each other's, for cross-chain [Move](/docs/guide/move) | | Across routes | WETH 0.0005–0.5 and USDC 1–1,000, both ways | | The Watcher's pools | Base ETH/USDC 0.05% (`0x96d4…0c0a`), Base ETH/USDC 0.30% (`0xe070…7eb9`), Unichain ETH/USDC 0.30% (`0x2593…b37c`) | | A gas budget's minimum | 0.000015 ETH a chain for rules, 0.00002 ETH for follows | On Testnet the Watcher subscribes to any pool a rule names. On Mainnet it subscribes only to pools on its list, so nobody can make it spend REACT on reactions to a pool no one here uses. ## Every transaction [#every-transaction] 33 transactions, all successful, on 4 December 2026 (UTC). Each fee is read from its receipt, with Base's and Unichain's L1 data fee. | # | Time | Chain | What | Transaction | Block | Fee | |---|---|---|---|---|---|---| | 1 | 07:41:08 | Base | CopyBook library | [`0x512e…4957`](https://base.blockscout.com/tx/0x512ea44393e0077e33c4d7cc8d2978a6cd00dea75f0f6bc80f6c5f29a9254957) | 65,898,465 | 0.00002227 ETH | | 2 | 07:41:10 | Base | RuleBook library | [`0x563e…4b45`](https://base.blockscout.com/tx/0x563ed76ea2b75e5e64d06cf17aea5a5d6b9ef3615e665fd624052c2e5e264b45) | 65,898,474 | 0.00002739 ETH | | 3 | 07:41:11 | Base | ActionBook library | [`0x4c80…eaef`](https://base.blockscout.com/tx/0x4c80265d33a9739408352bee93f95cbba8218fcab94989bbf89fcac0888feaef) | 65,898,480 | 0.00002663 ETH | | 4 | 07:41:13 | Base | MoveBook library | [`0x8788…b11b`](https://base.blockscout.com/tx/0x8788117cbf109955a2902c5782ce06f8b31af97cf7b6e4508568ab038c99b11b) | 65,898,487 | 0.00002994 ETH | | 5 | 07:41:14 | Base | Executor | [`0xcd66…6d6e`](https://base.blockscout.com/tx/0xcd66955f33773fbb56427881a59cb1af888692236b278b33b949591ad6a16d6e) | 65,898,493 | 0.00003019 ETH | | 6 | 07:41:15 | Base | CopyExecutor | [`0x2e5d…41f5`](https://base.blockscout.com/tx/0x2e5d95b764e46fd34787c0b7ea6e4f31b5f3c1c17ed1fab72c03674792a341f5) | 65,898,500 | 0.00002537 ETH | | 7 | 07:41:17 | Base | Executor.setCopyExecutor | [`0x3b62…f705`](https://base.blockscout.com/tx/0x3b62cfc7b72e37f66f2a382e077e38d62f107d6e73026bd188cd480070b7f705) | 65,898,507 | 0.00000029 ETH | | 8 | 07:47:49 | Unichain | CopyBook library | [`0xea8f…c30b`](https://unichain.blockscout.com/tx/0xea8f02da4ab63da05fd62ce9f15df3cd72cb7d36c721d072495db9e94e12c30b) | 65,622,110 | 0.00000219 ETH | | 9 | 07:47:51 | Unichain | RuleBook library | [`0x60cf…2dfd`](https://unichain.blockscout.com/tx/0x60cf24ba7ee43f64095c8907fb29cd5f1fbe41ddbcfd5bad29b0e608a1ea2dfd) | 65,622,112 | 0.00000268 ETH | | 10 | 07:47:53 | Unichain | ActionBook library | [`0xdb38…287e`](https://unichain.blockscout.com/tx/0xdb387f72d539b331f438e9cb3ffda52e0dc3f61fc093bf0da6e5989fb3da287e) | 65,622,114 | 0.00000262 ETH | | 11 | 07:47:56 | Unichain | MoveBook library | [`0x63ae…1afa`](https://unichain.blockscout.com/tx/0x63aeaa31f4a25d817bbfe7ba7d29cf86a840877f7167c518ae61d08a79b11afa) | 65,622,117 | 0.00000296 ETH | | 12 | 07:47:59 | Unichain | Executor | [`0x92a7…fcf0`](https://unichain.blockscout.com/tx/0x92a700ca5b459dbeaeeca2ad948100127e30f8ca83167146485dd30aaac1fcf0) | 65,622,120 | 0.00000292 ETH | | 13 | 07:48:02 | Unichain | CopyExecutor | [`0xe604…361f`](https://unichain.blockscout.com/tx/0xe604db56d6b8a49c89b6a672cbeee03a080ff2420d57f6dce12fa0087fc5361f) | 65,622,123 | 0.00000247 ETH | | 14 | 07:48:04 | Unichain | Executor.setCopyExecutor | [`0x556b…28ca`](https://unichain.blockscout.com/tx/0x556b4e698129f51b06a701c41bef7f763ae469999ec23c8c228a1dc79ae928ca) | 65,622,125 | 0.00000003 ETH | | 15 | 07:48:35 | Reactive | Watcher (the reactive contract for rules) | [`0x096f…05ae`](https://reactscan.net/tx/0x096f211d01f6c6e9786727ca7329ef1a1c3522887bf32ba503053513616305ae) | 11,352,283 | 0.5130 REACT | | 16 | 07:49:19 | Reactive | Copier (the reactive contract for follows) | [`0x1971…af2e`](https://reactscan.net/tx/0x19714342b8fa2ab3110aa2cdc60442a30f0cfe60708a136500dc24bdfdcbaf2e) | 11,352,339 | 0.4008 REACT | | 17 | 07:50:29 | Reactive | Watcher.allowPool (Base ETH/USDC 0.05%) | [`0x3778…40cb`](https://reactscan.net/tx/0x37783f2468587b03846a499b0dfc923cf5ac6ab9e4872044d72a0f33ec5b40cb) | 11,352,426 | 0.0048 REACT | | 18 | 07:50:32 | Reactive | Watcher.allowPool (Base ETH/USDC 0.30%) | [`0x2905…8dcd`](https://reactscan.net/tx/0x2905e8d5a2328e5be85ebfe008766b2d9da69569ccc37cc7c3ba0657b1a78dcd) | 11,352,429 | 0.0048 REACT | | 19 | 07:50:34 | Reactive | Watcher.allowPool (Unichain ETH/USDC 0.30%) | [`0xab8a…7a3e`](https://reactscan.net/tx/0xab8a11763749394a658fc55d0b43e9c424cf2ab6c7ed4335eaa3b91288927a3e) | 11,352,432 | 0.0048 REACT | | 20 | 07:50:38 | Reactive | Watcher.setMinBudget (Base) | [`0x2f37…82ac`](https://reactscan.net/tx/0x2f37a7fb2801eebf8a29e59d41b4c0732f7858749e321cf0e182b545db8e82ac) | 11,352,436 | 0.0046 REACT | | 21 | 07:50:41 | Reactive | Watcher.setMinBudget (Unichain) | [`0xa935…a449`](https://reactscan.net/tx/0xa935803129c0d584d60dbe3f325a257ddbcbbb864ba907e11a83c13a28f4a449) | 11,352,440 | 0.0046 REACT | | 22 | 07:50:43 | Reactive | Copier.setMinBudget (Base) | [`0x8bb5…c91d`](https://reactscan.net/tx/0x8bb5ee0aa0fb010db17e7022a00c25760ca620e43017c3d98d922b42c1d0c91d) | 11,352,443 | 0.0046 REACT | | 23 | 07:50:46 | Reactive | Copier.setMinBudget (Unichain) | [`0x73c3…7212`](https://reactscan.net/tx/0x73c39275bd9e3bf55a6949800e481fc37ded55bcc1da75ef20089375bf4a7212) | 11,352,446 | 0.0046 REACT | | 24 | 07:50:51 | Base | Executor.setWatcher (the Watcher on Reactive) | [`0x1b94…10b3`](https://base.blockscout.com/tx/0x1b9490bf6621a4ff9ff7f7330cada4494ad1a9f238e0f1d98e4deee4d49110b3) | 65,901,377 | 0.00000031 ETH | | 25 | 07:50:54 | Base | Executor.setPeer (Unichain's Executor) | [`0x9b34…63ae`](https://base.blockscout.com/tx/0x9b348b06860a32e39f1ef2f14811e7d73ced05d8c565a97fbf7f174d50db63ae) | 65,901,393 | 0.00000035 ETH | | 26 | 07:50:59 | Base | Executor.setRoute (WETH to Unichain, Across) | [`0xf55b…c1a8`](https://base.blockscout.com/tx/0xf55b33ae4e1fc9b91cb921b5f33802c2951bbeec438ea9670cf2f89293ddc1a8) | 65,901,420 | 0.00000051 ETH | | 27 | 07:50:59 | Unichain | Executor.setWatcher (the Watcher on Reactive) | [`0x958a…fb47`](https://unichain.blockscout.com/tx/0x958a5f1c52e7df368eccc966a715aad8d7d7eb3a856bc7ea768655cf9596fb47) | 65,622,300 | 0.00000004 ETH | | 28 | 07:51:04 | Unichain | Executor.setPeer (Base's Executor) | [`0x2ff9…4585`](https://unichain.blockscout.com/tx/0x2ff928af5e329d3dab3cbd08a9744863b25d929bd8798f8c7088ed03f3d84585) | 65,622,305 | 0.00000004 ETH | | 29 | 07:51:08 | Unichain | Executor.setRoute (USDC to Base, Across) | [`0x13ff…ba1e`](https://unichain.blockscout.com/tx/0x13ff0ea71c20caa925b900449061276ead973ef0268d1aba8d3b230c14e5ba1e) | 65,622,309 | 0.00000004 ETH | | 30 | 07:52:00 | Base | CopyExecutor.setCopier (the Copier on Reactive) | [`0x7aea…2b3c`](https://base.blockscout.com/tx/0x7aeaebfc1e78a9e70854ed4acd8f2f1cc57589cb711ef03c806d6f8d964d2b3c) | 65,901,724 | 0.00000044 ETH | | 31 | 07:52:04 | Base | Executor.setRoute (USDC to Unichain, Across) | [`0xce40…259d`](https://base.blockscout.com/tx/0xce40379d0d53a5e3cf70dc836c8b5ea52a791c72a5b46bf6facf29898b25259d) | 65,901,743 | 0.00000063 ETH | | 32 | 07:52:07 | Unichain | CopyExecutor.setCopier (the Copier on Reactive) | [`0x9f3a…6673`](https://unichain.blockscout.com/tx/0x9f3a43af2b83e7fadd06bc14fef8e9d4892f031974ad8a4ac453d83b27366673) | 65,622,368 | 0.00000003 ETH | | 33 | 07:52:35 | Unichain | Executor.setRoute (WETH to Base, Across) | [`0xf23b…352a`](https://unichain.blockscout.com/tx/0xf23b02319fd2f979693a8e29696b731371b37a8b48d89736fde3c19fe6b9352a) | 65,622,396 | 0.00000004 ETH | **In all:** 0.000164 ETH on Base, 0.000016 ETH on Unichain and 0.947 REACT on Reactive, about **$0.28** at the day's prices. ## Fuel [#fuel] Each reactive contract pays for its own reactions in REACT, and Reactive stops it if it falls into debt; each Executor keeps a small ETH float for a callback no budget covers. Your own callbacks are paid from your rule's gas budget on Base or Unichain, as on Testnet ([Costs](/docs/reactive/costs)). **Status** in the Mainnet app shows the Watcher's and Copier's fuel. ## Live loops [#live-loops] A loop on Mainnet is the same three transactions as on Testnet (a swap in an allowlisted pool, the Watcher's reaction on Reactive, the Executor's callback), and its [proof](/docs/guide/proof) opens from Activity the same way. # Every proof (/docs/build/proof) Latency is callback block time minus swap block time on the action chain. Each proof names its generation of contracts ([addresses](/docs/build/contracts)). ## Current contracts, made in the live app [#current-contracts-made-in-the-live-app] ## Every other rule type (generations 2 and 3, Base Sepolia unless noted) [#every-other-rule-type-generations-2-and-3-base-sepolia-unless-noted] | Rule | Origin | Reactive | Callback | Latency | |---|---|---|---|---| | Exit below, paid as USDC | | | | 1,600 ms | | Exit, whichever first | | | | 600 ms | | Trailing close | | | | 800 ms | | Collect fees on a schedule | | | | 800 ms | | Stop loss (an order, sell below) | | | | 1,000 ms | | Price trigger on another pool | | | | 1,800 ms | | Cross-chain trigger (Base pool → Unichain position) | | | | ≈ 1.2 s | | Chained, step 1: close above | | | | 1,800 ms | | Chained, step 2: buy back below | | | | 1,600 ms | | Move, same chain | | | | 800 ms | | Move, cross-chain (Across) | | | → | 1.4 s · ≈ 3.8 s open | | Rebalance a wallet to 50/50 | | | | 800 ms | | Rule edited while in flight (skipped, charged) | | | | 1,400 ms | | Budget emptied while in flight (skipped, float paid) | | | | 1,400 ms | | v3 → v4, owner-run (one transaction) | — | — | | — | # Run it locally (/docs/build/run-locally) ### The contracts and their tests [#the-contracts-and-their-tests] ```bash git clone --recurse-submodules https://github.com/Blockchain-Oracle/tsuneni && cd tsuneni cd contracts && forge build && forge test ``` 100 tests in four files: 84 on a Base Sepolia fork over a public RPC, 48 of them through Reactive's metered harness, and 16 for the Mainnet hedge on a local chain with Hyperliquid's precompiles mocked. ### The app [#the-app] ```bash pnpm install pnpm --filter @tsuneni/web dev ``` It opens at `http://localhost:3000` against the live Testnet indexer. Without the Try settings below, Try says its faucet is down and offers public faucets; connecting your own wallet works. ### The indexer (optional) [#the-indexer-optional] ```bash pnpm --filter @tsuneni/indexer dev ``` An embedded database and public RPCs; point the app at it with `NEXT_PUBLIC_INDEXER_URL`. | Variable | Turns on | |---|---| | `NEXT_PUBLIC_INDEXER_URL` | Another indexer (default: the live Testnet one) | | `NEXT_PUBLIC_WC_PROJECT_ID` | WalletConnect wallets | | `TRY_DATABASE_URL` · `TRY_OPERATOR_KEY` | Try's funding queue and the funder's operator | | `TRY_RESERVE_FLOOR` | Wallets' worth of reserve held back from public Try | | `NEXT_PUBLIC_TURNSTILE_SITE_KEY` · `TURNSTILE_SECRET` | A bot check before funding (both or neither) | | `PONDER_RPC_URL_84532` · `PONDER_RPC_URL_1301` · `PONDER_RPC_URL_5318007` | The indexer's RPCs | Deploying contracts and firing live loops need a funded testnet key; see the scripts' headers in `contracts/script`. # In your AI app (/docs/guide/ai) Tsuneni is also an MCP server. Add its address to an AI app, and you can ask about your positions and rules in plain words, or plan what should happen when the price moves; the answers come as Tsuneni cards drawn in the app's own look, or as text in apps that don't draw cards. The AI never signs anything: a plan or a rule it drafts opens in Tsuneni, checked again for your wallet, and your own wallet approves it there. ## Add it [#add-it] The address is the app's own, with `/mcp`: on Testnet, `https://tsuneni.xyz/mcp`. The app's [**Use in your AI app**](https://tsuneni.xyz/ai) page (help menu, footer or ⌘K) has it with a copy button and one-click links. | App | Shows | How | |---|---|---| | Claude (web, desktop) | Cards | A custom connector: the **Add to Claude** link on [`/ai`](https://tsuneni.xyz/ai), or Settings → Connectors → Add custom connector | | ChatGPT | Cards | Settings → Apps → Create, in developer mode (Business and Enterprise plans) | | VS Code (Copilot Chat) | Cards | One click from `/ai` | | Cursor | Cards | One click from `/ai` | | Goose | Cards | Extensions → Add → Remote (Streamable HTTP) | | Claude Code | Text | `claude mcp add --transport http tsuneni
` | | Codex | Text | `codex mcp add tsuneni --url
` | | Gemini CLI | Text | `gemini mcp add --transport http tsuneni
` | No sign-in and no key: every tool reads public chain and index data, or builds transactions for a wallet to sign. ## What it can do [#what-it-can-do] | Tool | Ask | Answer | |---|---|---| | `tsuneni_positions` | "What are 0x…'s positions doing on Tsuneni?" | Every open position on both chains: in or out of range, value, PnL, and each rule in the app's words with its state and next trigger. Eight by default, up to 40 with `limit`. Without an address it shows Tsuneni's demo wallet, and says so | | `tsuneni_position` | "Show me position 34622 on Base" | Price against the range, every rule, and the latest actions, each with the swap that triggered it, Reactive's reaction and the callback (explorer links) and the measured latency. A re-ranged id follows its lineage to the position it became | | `tsuneni_rules` | "Which of my rules need me?" | Every current rule on both chains, what needs you first, each with its position, pair, state, next trigger, and links that open its Edit, Pause, Resume or Delete step in Tsuneni (`/position/base/34595?rule=33&do=pause`) | | `tsuneni_activity` | "What did my rules do today?" | The wallet's latest actions, newest first: what each did, on which position, how fast from the swap, with its proof; and the wallet's total and median | | `tsuneni_plan` | "Sell my ETH if it falls 5%, and buy 10 USDC of it every day this week" | A plan in numbers, checked the way [Ask Tsuneni](/docs/guide/ask) checks one: orders (stop loss, take profit, both, buy the dip or the pump, trailing, buy then protect), recurring buys or sells, Keep a mix, rules on a position, and copying a wallet. Each step against today's price and, with `owner`, that wallet's balances, replayed over ETH's real last 30 days, with what the wallet will ask. A link (`/trade?plan=…`) opens it in Tsuneni's Ask panel, checked again for the visitor's wallet, with **Approve** | | `tsuneni_set_rule` | "Close if WETH falls to 3,900" | The rule drafted and checked the way Add rule checks it (the price on the right side, levels snapped to the pool, no duplicate level), read back in words, with a link that opens Add rule filled in. With `owner`, the unsigned transactions for that wallet | | `tsuneni_live_loop` | "Show me a rule firing" | Testnet only: the live loop, with **Run it now** in the card | | `tsuneni_copying` | "Whom do I copy, and how did the copies go?" | The wallets it copies (trades or liquidity, which pool, its state, copies today), and its latest copies: what each did or why it skipped, the time from the leader's transaction to the copy, and the three transactions with the proof. The old name, `tsuneni_following`, still answers | | `tsuneni_leader` | "Should I copy 0x…?" | A wallet as a leader: how many copy it, whether the Copier watches it, what it did lately and how its copies went, and a link that opens **Copy** for it in Tsuneni (`/portfolio/0x…?copy=1`), where you choose and sign. Without an address on Testnet: the demo trader | | `tsuneni_leaders` | "Who are the best LPs to copy?" | The board: LPs ranked by PnL to date (open positions at today's price, uncollected fees and withdrawals, minus deposits), or traders by a window's swaps marked at today's price (`window`: 24h, 7d, 30d or all). Each row in words with the wallet's page, where **Copy** opens. With `me`, that wallet's own place | | `tsuneni_why_omni` | "Why does a stop-loss need Reactive Omni?" | The measured loop next to a polling bot, and what each second of waiting cost in 30 days of ETH's 1-second prices | `tsuneni_set_rule` sets up one rule on a position: **Follow the price** (with an optional stop-loss beside it), **Close at a price** (falls to, rises to, or whichever first), **Trailing close** and **Collect fees** (collect or compound on a schedule, with a minimum). `tsuneni_plan` covers the rest of what the app's tickets set up, several steps at once and across both chains. Move it is set up in the app; the connector reads it. ## The card [#the-card] One card, five views, in Tsuneni's theme and following the chat app's light or dark: - **Positions**: tap one to open it in the card. - **A position**: its rules and latest actions with the three transactions; **Set up a rule** drafts one right there. - **A rule**: what it will do, in words, with its prices editable in place and checked again on the server; **Review and sign in Tsuneni** opens Add rule filled in (`/position/base/34622?add=exit&falls=3900`). - **A plan**: ETH's last 30 days replayed with each level on it, every step led by its prices in large type with what each brings and how it went in the replay, and what the wallet will ask; **Review and approve in Tsuneni** opens it in the Ask panel, and **Copy link** copies that address. - **The live loop**: **Run it now** presses the loop from your own browser, so your network's daily presses count, not the chat app's servers. The swap, the reaction and the callback fill in as they land. A **Testnet / Mainnet** switch sits in the card's corner. Each mode is its own deployment (Reactive keeps mainnet and testnet chains apart), so the switch asks the other mode's connector through this one. On Mainnet it reads the [live beta](/docs/build/mainnet)'s positions and rules the same way. ## Signing [#signing] An agent with its own wallet passes `owner` to `tsuneni_set_rule` and gets the transactions to send, in order: 1. **Allow Tsuneni on your positions** (once per wallet and chain): `setApprovalForAll` on the PositionManager. The save is built once this is confirmed, because it's checked against the contract. 2. **Save the rule**: `createRules` on the Executor, simulated from the owner first, with a gas budget top-up when the budget covers fewer than three actions. Its gas limit is the estimate plus 250,000: the Executor subscribes to the position under try/catch, and a bare estimate would starve that call without anything failing. Keep the limit. Tsuneni never asks for a seed phrase or a private key, in the card or anywhere else. People sign in their own wallet, in Tsuneni. # Ask Tsuneni (/docs/guide/ask) **Ask** sits in the header on every page. It opens a panel that knows what you're looking at: a pool, a position, a wallet or the ticket's pair. The chip above the box names it (a wallet by whose it is: "Your wallet 0x…", "Demo wallet 0xeB56…3664" on Portfolio with no wallet connected, or "Wallet 0x…"); × leaves it out. From a 1025 px window the panel stands beside the page, and the page lays itself out in the room left, as it would on a tablet; on a phone or a narrower window it is a full-height sheet over the page. ## Ask it [#ask-it] Type what should happen, the way you'd say it: "Protect my ETH: sell it if it drops 5%", "Buy 10 USDC of ETH every day this week", "Keep #34637 in range". **Enter** sends, **Shift+Enter** breaks a line, **Esc** closes. Empty, the panel offers three starters for the page you're on, in today's prices, on the pool's price steps and in the pool's token names ("Sell 0.01 WETH if it falls to 4,255.6"). On a wallet's page the first is what that wallet needs, with its figure, in the page's own words: positions out of range with no rule first, then one near its edge ("6 out of range with no rule: what would keep them in range?"). On someone else's position the starters ask rather than set up, since only its owner can sign. It reads what it needs first (your wallet, a position, today's prices, what your rules did), each as one quiet line you can open, then drafts a plan. It plans what the app's own tickets can set up, with the same checks: | You say | It plans | |---|---| | Sell at a price, stop loss, take profit, or both | An [order](/docs/guide/trade#order) | | Buy the dip or the pump, or a trailing stop or buy | An order, at a fixed price or a trail | | Buy, then protect it | A buy and, once it fills, a sell of what it bought at a take profit or a stop | | Every hour, day or week | A [recurring](/docs/guide/trade#recurring) buy or sell | | Keep it 50 / 50 | [Keep a mix](/docs/guide/trade#keep-a-mix) | | Keep my position in range, close it at a price, collect its fees | A [rule](/docs/guide/rules) on the position | | Copy 0x… | [Copy](/docs/guide/follow), signed on that wallet's page | It doesn't give advice or predict prices. Your conversation stays in this browser, per wallet; the bin starts over, and the rules you saved from it keep running. ## The plan card [#the-plan-card] - **The chart**: ETH's real last 30 days as daily candles, replayed from today's pool price (marked **Today** where the line starts, clear of the level lines; on Testnet that's the test pool's own price, and "the test price" under the chart opens ETH's market price beside it), with each level as a line and a dot wherever a rule would have acted. Green is a buy, red a sell or a close. The axis counts days, never dates: it's a replay, not a forecast. With two chains, the caption names the chart's chain, and the other chain's step says its own ("3,203.5 today on Unichain"). - **Each step, figures first**: what it sells or buys, then each level in large type with how far it is from today and what you'd get ("4,255.6 USDC · −5.0% · you get ≈ 4.24 USDC"), then one line on how it went in the replay ("it sells on day 1; three days later ETH is at 4,145.7"). A buy's then-steps also say the most they sell ("sells ≤ 0.000229 WETH"): only what the buy brought in. The pool links to its page. - **Your wallet will ask**: each prompt in order; the save carries its network fee and what it adds to your gas budget, which pays each action. A plan with no wallet yet shows what a new wallet's first save adds. - **Checked for**: the wallet whose balances it was checked against. More than the wallet holds offers **Use** what it holds, and for your own wallet the way to get the rest (Wrap ETH, Swap the other token, Get test funds on Testnet). A level on the wrong side of today's price stays on the chart, grey, with a one-tap fix: the same distance on the right side ("Set 4,345.2 (−3.0%)"). - **Change** edits a step's figures in place, opening each price as the card reads it. While you change one, Approve reads "Check the change first": it comes back once the card has checked the new figures, so it never signs the old ones. - **The buttons** stay at the foot of the panel while a tall card scrolls under them, and a new plan shows from its top. While more of the card sits under them, a line over the buttons gives the cost ("Adds 0.0003 ETH to your gas budget, plus network fee"); press it to scroll down to what your wallet will ask. - **Approve** opens your wallet, and each prompt ticks off as you sign. Only the button approves: nothing typed or said does. The card then shows how it ended: saved (each chain's transaction and See your rules), partly saved (what didn't go through on the other chain, and why), not now, or failed and why. Not now and failed keep an **Approve again**. No wallet on Testnet? **Try with a test wallet** makes one in this browser, funds it with test ETH, WETH and USDC, and it signs here with no pop-up; its rules run 7 days and renew while you visit. **Connect a wallet** takes your own. ## What needs you [#what-needs-you] The account drawer lists what needs your wallet now: a position out of range or within 2% of its edge with nothing keeping it in range, an order that met no liquidity, a rule that stopped or expired, a gas budget running low. Each has **Plan it**, which opens Ask with that event as the first message. The panel's empty state shows the same, up to three. ## Voice [#voice] The mic beside the box, or **Talk instead** on an empty chat, lets you talk instead, up to 5 minutes a session. While you talk, one small bar takes the box's place: a smiling orb whose face says what it's doing (eyes shut while it connects, open and blinking while it listens, glancing about while it works it out, its mouth moving with its own voice while it speaks), the word and the minutes left, a caption for each side (your words, then its own), and **Mute**, **Type** (back to the keyboard) and **End**. What it hears goes into the same conversation, the same assistant answers, and the plan lands on the same card; the voice reads one or two figures back and points to the card for the rest. Talk over it and it stops to listen. A spoken yes never approves. It ends after a minute of quiet, at the session's 5 minutes, when the connection drops, or when you leave the page, and it never reconnects by itself; the panel says which, with **Start again**, and the conversation stays. The day's 10 minutes come back at midnight UTC. A blocked or missing microphone says how to fix it, and typing works the same. ## Limits and offline [#limits-and-offline] - 40 questions an hour from one network address, 10 minutes of voice a day, and a daily spending ceiling for the whole app. - When it's offline or out of budget, the panel says so before you type, and each starter opens what does it by hand: a set-up opens its ticket filled in, and a question on a wallet's or a position's page opens the part of the page that answers it (its positions, its activity), or the wallet's Copy dialog. The page scrolls there and rings the place for a moment, even when it was already on screen. ## From your AI app [#from-your-ai-app] The [connector](/docs/guide/ai)'s `tsuneni_plan` drafts a plan the same way and returns a link. The link opens here, in the panel, checked again for your wallet, with **Approve**. # Chains (/docs/guide/chains) One Watcher per mode watches every chain below, and one Executor on each chain acts. The landing's **Runs on** row lists the chains whose contracts are live; a chain joins it, and every chain picker, once its Executor is deployed. | Chain | Mode | Pools rules watch | Good for | |---|---|---|---| | **Base Sepolia**, **Unichain Sepolia** | Testnet (the judged loop) | the test pools, Try's pools, the loop and bench pools | Everything, with a test wallet and test funds | | **Base** | Mainnet beta | ETH/USDC 0.05% and 0.30% | Every rule, orders, Move, copy trading, the [hedge](/docs/guide/hedge) | | **Unichain** | Mainnet beta | ETH/USDC 0.30% | Every rule, orders, Move, copy trading, the hedge | | **Arbitrum** | Mainnet beta | ETH/USDC 0.05% and 0.30%, WBTC/USDC 0.05% | Every rule and order on Arbitrum's deepest v4 pools | | **Robinhood Chain** | Mainnet beta | ETH/USDG 0.05%, ETH/NVDA 0.05%, SPY/USDG 0.01% | Stops and take-profits on Robinhood's stock tokens; USDG is its dollar | | **HyperEVM** | Mainnet beta | none (it acts, it doesn't watch) | Your [hedge account](/docs/guide/hedge) and its short on Hyperliquid | ## What crosses between chains [#what-crosses-between-chains] - **Move** to another chain runs between Base and Unichain, whose Executors are each other's peers with an Across route between them. On Arbitrum and Robinhood Chain a Move goes to another pool on the same chain. - **Another pool's price** can be a pool on any chain the Watcher watches in the same mode: an order on Arbitrum can wait for Base's price. - **Copy their swaps on the other chain** pairs Base and Unichain. - **The hedge** watches a Base or Unichain pool and acts on HyperEVM. Reactive keeps mainnet and testnet apart: a rule never mixes a Sepolia chain with a mainnet one. ## Robinhood Chain: not for US persons [#robinhood-chain-not-for-us-persons] Robinhood's stock tokens (NVDA, SPY and others) aren't offered to US persons, and are restricted in Canada, the UK, Switzerland and the UAE. Tsuneni checks nothing about where you are: the first time you sign anything on Robinhood Chain, it asks you to confirm once, and remembers the answer in your browser. The tokens' issuer can pause them or block an address; a rule on a paused token fails and says so in Activity. Arbitrum and Robinhood Chain run the same contracts as Base and Unichain (generation 5). Their addresses are on [Mainnet](/docs/build/mainnet) once deployed. # The demo (/docs/guide/demo) [**Watch the demo**](https://tsuneni.xyz/demo), or press **Demo** in the app's header (the logo's menu on narrower screens, or ⌘K → *demo*). The page is in four parts. ## The video [#the-video] The narrated demo plays from YouTube's privacy-enhanced player, so nothing is stored until you press play. Until it's up, the page plays a captioned walk-through (2:09, no sound) built from real screens of the live app on Testnet: press **Play** on its poster. If YouTube ever stops the video playing in other sites (made private, removed, embedding switched off), the page goes back to the walk-through within five minutes. The chapters sit beside the player (a row to swipe under it on a phone). Press one to jump there; the chapter playing stays highlighted and in view. **Copy link** copies a link to the moment you're at, `/demo?t=`, which opens the video there. ## The proof, live [#the-proof-live] Under the video, the numbers come straight from the indexer: the median loop on Base Sepolia (from the swap to the rule's action, timed from the blocks), how long nine loops in ten take, every loop timed on Base and Unichain, and every action on record. Then **Don't trust the video. Open the proof.** lists the latest rules that acted on Testnet, newest first, each with how long it took and its three transactions: the swap, Reactive's reaction and the callback, each on its own explorer. **Proof** opens the action's [proof sheet](/docs/guide/proof). The list refreshes every 15 seconds; its label reads **Live on Testnet** while the newest action is under 10 minutes old, and **Latest on Testnet** otherwise. The Mainnet app's demo page shows the same Testnet loops, since that's where the video was made. ## Your turn [#your-turn] Everything the video shows is live on Testnet, with test funds: 1. **Get a test wallet.** [Try](/docs/guide/try) makes one in your browser and funds it on Base Sepolia and Unichain Sepolia in seconds. 2. **Open a position with rules.** A WETH/USDC position centred on the price, with Follow the price and Close if it falls. 3. **Move the price.** Push the pool past your range yourself, from our reserve, never your tokens. 4. **See the proof.** About a second later the rule has acted, with its three transactions. **Watch the demo wallet** opens a wallet whose rules are already watching, if you'd rather look than try. ## More ways in [#more-ways-in] The page ends with the other ways to set rules: [Ask Tsuneni](/docs/guide/ask), [Claude or ChatGPT](/docs/guide/ai), [Telegram alerts](/docs/guide/telegram), the Mainnet beta, these docs and the source code. # Copy a wallet (/docs/guide/follow) Open any wallet's page (from [Leaders](/docs/guide/leaders), say) and press **Copy trades**. This is copy trading, not a social follow: when it opens a position or makes a swap, Reactive's **Copier** sees the transaction and calls your **CopyExecutor**, which makes the same move in your wallet, at your size. Nothing waits for a server: the copy lands about a second after their transaction, and each one has its three transactions on record. | They | You | |---|---| | **Open a position** in a pool you picked | The same range opens in your wallet, with as much liquidity as your caps allow at today's price | | **Close that position** | Your copy closes into your wallet | | **Buy or sell** a token | You trade a share of it in the pool you picked, only while that pool's price is within your drift of the price they got | Swaps paid in native ETH and the middle legs of a multi-hop route aren't seen. **On Mainnet, copies can't run yet.** Every Mainnet pool pairs native ETH with USDC, and a copy moves tokens through Permit2, which takes ERC-20 tokens like WETH, not ETH (the CopyExecutor refuses such a pool). The dialog says so in one line on its first step (*every pool here is native ETH, and copies need WETH*), dims both choices and offers **Close**, with links to copy a trader on Testnet and to this page; each ETH pool reads *can't copy yet*. Copy trading runs on Testnet meanwhile. A position they open in a pool you didn't pick is skipped, never copied somewhere else. ## Copy, step by step [#copy-step-by-step] | Step | What you choose | |---|---| | **What** | Its positions, its swaps, or both. It starts on what the wallet does: its positions if it holds any, its swaps if it holds none or you opened it from the Traders board | | **Where** | The chain copies land on (Base or Unichain); the pools positions are copied in (each shows how many of theirs are there); the pool swaps trade in, and whether to copy their swaps on the other chain too | | **Size** | **Each copy, at most** per token · **In all, copies may use** per token (a Permit2 allowance: the tokens stay in your wallet until a copy uses them) · **Share of their size** (100% by default; your caps then cut it down) · **Copies a day** (12 by default) · buys, sells or both · 7, 30 or 90 days | | **More options** | Slippage against the price they got (1%) · drift: further than this from their price, the copy is skipped (1%) · the most sold a day per token · minutes between copies · skip position copies worth under a minimum (0.25 USDC), so a stranger's tiny gift position never costs you gas | | **Protect** | None, **Follow the price** on each copied position, or **Close at a price** (sell what a swap copy bought, or close a copied position, if the price falls or rises past your levels from each copy's own price; the step draws both levels on a line around today's price). Protection runs as your own [rules](/docs/guide/rules) from then on, paid from your rules' gas budget, which the Sign step tops up if it's short | | **Sign** | A Permit2 approval per token (once), a signature for the limits, and one transaction that saves the follows and tops up the copy budget | Each copy is paid from its **copy budget** on the chain it lands on, at cost, like a rule's gas budget. Top it up or withdraw it from **Money** on your Portfolio. ## Copying [#copying] **Portfolio → Copying** lists each wallet you copy: what you copy and where, its state, today's copies against your daily count, the last copy, and **Edit**, **Pause** and **Stop**. Every copy is in **Activity** too, and opens its proof: their transaction, the Copier's reaction on Lasna, and your copy, with the time between the first and the last. | State | Means | |---|---| | **Starting** | Saved; the Copier on Reactive hasn't listed it yet (a few seconds) | | **Copying** | Copies land as they trade | | **Paused today** | That wallet passed the Copier's daily limit; copies resume at 00:00 UTC | | **Budget empty** | The copy budget can't cover a copy; top it up and copying resumes | | **Paused**, **Expired**, **Stopped** | Yours to resume, extend (Edit) or copy again | A copy that doesn't land says why, in the same words as a rule's skip: | Skipped because | Reason | |---|---| | Their price was too far from this pool's | your drift | | The pool couldn't fill it within your slippage of their price | a thin pool: their own swap already moved it. A smaller share, or more slippage, fills | | They closed it before the copy | the position was gone | | Not in a pool you copy into · a direction you don't copy | how you set it up (no alert) | | Permit2 allowance spent or expired | **needs you**: renew it from Edit | | Nothing to copy | your caps are spent, or the wallet holds none of the token | | Worth less than your smallest copy | dust and gifts (no alert) | | Copy budget empty · daily limit reached | top up, or wait for 00:00 UTC | ## A trader's page [#a-traders-page] A wallet that others copy, and that holds no position of its own, opens as a trader: its **copiers**, **trades in the last 24 h** (its swaps, as [Leaders](/docs/guide/leaders) counts them), **copies landed** and the **median time** from its trade to a copy, then a **Trades** tab with each move (**Bought WETH**, **Sold WETH**, **Opened a position**, **Closed a position**), how its copies went ("2 copied · 1 skipped", the skip's reason on hover), and its two transactions: the trade on its chain and the Copier's reaction on Lasna. **Copy trades** sits by the address. ## Make it trade (Testnet) [#make-it-trade-testnet] Tsuneni's **demo trader** is a real wallet on Base Sepolia. Copy its swaps, and **Make it trade** on its page (Copying links there) makes it buy or sell a little WETH in the demo pool; your copy lands in your wallet and the card lights each leg as it lands, then the measured time. Before you copy it, the card times the demo wallet's copy instead (the demo wallet copies the demo trader), so a press always ends in a real copy. Until you press, it shows the last trade anyone made, with its copy and proof. One press is one real swap: a trade a minute at most, 16 a day (4 from one network), paused while the Copier's fuel is under 0.35 lREACT. The copy itself runs on-chain with no server. ## Limits that keep it safe [#limits-that-keep-it-safe] Anyone can copy anyone, and anyone can send a wallet a token or a position, so the Copier is built to stay cheap and calm under spam: - It reacts only to wallets someone follows, and only to the transactions you chose to copy. - A followed wallet's events count against a **daily limit** (60 a day); past it, its follows read **Paused today** until 00:00 UTC. All copies together stop at 1,000 a day. - At most **64 copiers** per wallet, chain and kind. One reaction sends at most **4 copies**; the rest wait in a queue the next reactions send, and a copy older than **20 minutes** is dropped (a close never is, so a copy is never left open after they leave). - A follow is listed only while its copy budget covers a copy; each wallet holds at most 32 live follows. - Your caps, allowance, drift and daily count are checked again in the copy itself, on the chain it lands on. - Under its fuel floor the Copier stops sending copies; rules keep running on the [Watcher](/docs/how-it-works/watcher). What it costs is on [Costs](/docs/reactive/costs). # Hedge on Hyperliquid (/docs/guide/hedge) An ETH/USDC position holds more ETH the further ETH falls: under its range it is all ETH. The hedge holds that ETH short on Hyperliquid's ETH perp, so a falling ETH costs you less. It is Mainnet only, for ETH/USDC positions with native ETH on Base and Unichain, and it shows on the position's page under its rules. ## Set it up [#set-it-up] On the position's page the hedge sits with its rules, as **Hedge on Hyperliquid**. **Set up** opens a ticket in an exchange's short-order shape. Its top says what is what: **Hedges** (your ETH/USDC position and the ETH it holds) and **Shorts** (Hyperliquid's ETH-USD perp and its price). | Part | What you set | |---|---| | **Short ETH, in dollars** | The short's size, typed in dollars, with its ETH under it. The slider is the share of the ETH your position holds (100% hedges all of it). Under it: what the position holds now, and the most it can hold (everything, once ETH is under its range). | | **Margin** | USDC on HyperEVM to deposit, with the leverage it gives (now, and at the largest short) and the ETH price that would liquidate it. The suggestion is half the largest short's value. Already on Hyperliquid? Send USDC to the account's address from Hyperliquid's app instead: the ticket shows it. | | **Adjust the short when ETH moves** | ±1%, ±2% or ±5%, with the two prices it adjusts at and what the short becomes at each ("If ETH falls to $1,292: short $627"). | | **Details** | The 0.05 HYPE gas budget for adjustments, fills within 0.5% of the mark, at most once a minute and 96 a day, the size cap, and your account's address. | One button walks three transactions on HyperEVM (your wallet switches there and pays in HYPE), with **Account · Margin · Short** above it: 1. **Open account:** a small contract of your own (a HyperAccount). You own it; Tsuneni's hedge Executor is its operator, under the size cap. 2. **Deposit:** the USDC goes into the account's perp balance through Circle's deposit contract. The first deposit opens the account on Hyperliquid, and the short can't start before it does. 3. **Short $… of ETH:** opens the short at once and leaves 0.05 HYPE as its gas budget (0.02 is the least); what's left is yours to withdraw. Short of HYPE on HyperEVM, the ticket says how much each step needs and links to Hyperliquid to get it. ## How it runs [#how-it-runs] The hedge is saved for the Watcher as a band around today's price. When a swap moves the pool's price out of the band, the Watcher calls the hedge Executor on HyperEVM, about a second later. The Executor works out the ETH your position holds at the new price, reads your short as Hyperliquid has it, and orders the difference as an immediate-or-cancel order within 0.5% of the mark. Then it re-centres the band on the new price. - **Under $10 waits:** Hyperliquid's smallest order is $10, so a smaller change waits for the next move. - **The card shows the next prices** it adjusts at ("adjusts at $1,292 or $1,345"); paused, it says so. - **Limits:** at most one adjustment a minute and 96 a day; your account also refuses two growing orders less than 10 seconds apart, so a second order never misreads a short that hasn't landed yet. - **A missed order corrects itself:** each adjustment reads the real short first, so an order that didn't fill (thin margin, a fast book) is ordered again next time. **Re-check now** in the card's ⋯ menu does it at once. - **Each adjustment is one callback,** paid from the hedge's gas budget in HYPE. The card warns when it runs low; **Top up** adds 0.05. ## What Tsuneni can and can't do [#what-tsuneni-can-and-cant-do] Your account takes only these orders from Tsuneni: on ETH's perp, immediate-or-cancel, within 3% of Hyperliquid's mark, and an order that grows the short only under your cap and at least 10 seconds after the last one. An order that shrinks the short is reduce-only, so it can never flip you long. Only you can: - withdraw: **Withdraw** on the card (once nothing is hedged) sends the account's free USDC to your own address on Hyperliquid, keeping 1 USDC back for Hyperliquid's fee on a first send; - switch Tsuneni off for the account, or change its cap; - close the short: **Close the short** in the card's ⋯ menu. A close is an order too; if part is left (a thin book), the card says so and offers **Close again**. ## When the position changes [#when-the-position-changes] One hedge per wallet, because a Hyperliquid position is one per account. The hedge follows the position it was set on: - **A re-range** makes a new position. Its page shows **Move it here**, which points the hedge at the new one and adjusts the short to it. The ticket shows both: "Position #411950 → #412088" and the short before and after. - **Closing the position on Base or Unichain** doesn't close the hedge: close the short on the card. - **Pause** stops resizing and keeps the short; **Resume** starts again from today's price. Hyperliquid's trading fees and funding apply to the short; the position's own fees keep landing on Base or Unichain. # Start here (/docs/guide) Tsuneni (常に, "always") runs your rules for Uniswap v4 positions on-chain. A Reactive contract watches every swap on the pools your rules depend on; when a rule's trigger holds, Reactive calls back an Executor on Base Sepolia or Unichain Sepolia, which acts on your position while it stays in your wallet. There's no bot, no backend and no operator holding your position. ## The two-minute path [#the-two-minute-path] ### Try it now [#try-it-now] [Open the app](https://tsuneni.xyz) press **Try it now**, then **Try with a test wallet**. It makes a test wallet in your browser and funds it on Base Sepolia and Unichain Sepolia. [More on Try](/docs/guide/try). ### Open a position with rules [#open-a-position-with-rules] One step opens a small WETH/USDC position centred on the price, with **Follow the price** and **Close if it falls**, minted to your wallet. ### Move the price [#move-the-price] On Testnet you can push the pool past your range yourself: **Move the price** swaps from our reserve, never your tokens. ### See the proof [#see-the-proof] The rule acts about a second after the swap. Its activity row shows the time; **See the proof** shows the swap, Reactive's reaction and the callback, each linked to its explorer. [The proof sheet](/docs/guide/proof). ## What you can do [#what-you-can-do] # Leaders (/docs/guide/leaders) **Leaders** ranks every wallet in the pools Tsuneni watches, so you can find one worth copying without knowing its address. Press a row for the wallet's page; press **Copy trades** to copy it. **LPs** provide liquidity in the pools, ranked by profit to date; **traders** swap in them, ranked by how their swaps did at today's price. A line under the title says when our index began (Mainnet's: 4 Dec, 08:42): a trader window that reaches further back counts from then, and on Mainnet a position opened before it isn't ranked yet. | Board | Ranked by | |---|---| | **LPs** | **PnL to date**: what its open positions are worth at today's price, plus fees not yet collected, plus everything it withdrew, minus everything it deposited. Each deposit and withdrawal is valued at the price of its own block, and a re-range's withdraw and re-deposit in one transaction count as moving, not as profit | | **Traders** | **PnL at today's price** over a window (24 h, 7 days, 30 days or all): USDC received minus USDC paid, plus the ETH it bought minus the ETH it sold, valued at ETH's price now. A copy counts for its copier and a token order for its owner. Price movers, Tsuneni's funders and the polling bot are left out, and so are the swaps inside a re-range or an exit | Each row has its rank, the wallet's picture (made from its address, so it looks the same here, on its page and in Telegram), its label or short address (a labelled wallet's address sits on its second line), a few facts and its figure; LPs add value, fees and copiers, traders volume, trades (buys · sells) and copiers (0 when nobody copies it yet). Sort by any column (highest first; press it again for lowest first), filter by chain, and search by address or label. Paste an address that isn't on the board and the search offers its page. Your own wallet carries a **You** chip, and a strip above the board gives your place, or says you're not on it yet. The tab, window, chain and search stay in the page's link, so a view can be shared. When any figure on a board is under a cent, every row keeps four decimals, and rows that read the same share a rank (1, 2, 2, 4). The app, the [Telegram bot](/docs/guide/telegram) and the [AI connector](/docs/guide/ai) all use this one rule, so they never show the same board differently. Beside the board, **Latest rule actions** shows what anyone's rules did last, each with its seconds and its [proof](/docs/guide/proof): what copying a wallet sets running. ## Copy from the board [#copy-from-the-board] **Copy trades** on a row opens the Copy dialog for that wallet, with the pools it uses, without leaving the board; the steps are in [Copy a wallet](/docs/guide/follow). A wallet you already copy reads **Copying** and opens your Copying tab, where you edit, pause or stop it. ## A wallet's PnL [#a-wallets-pnl] A wallet opened from the board has **← Leaders** at the top, back to the same tab, window and search. Its page adds a PnL card: - the figure, as the board shows it; - its place (**#9 of 9 LPs**), which links to the board; - its line over 24 h, 7 days, 30 days or all, green above zero and red below. Each point is valued at that moment's pool price; an LP's last point adds the fees waiting. A wallet on both boards switches between **As an LP** and **As a trader**. It opens on what it does now: an LP with open positions, otherwise its trades, over 7 days as the board does. For a wallet on the LP board, the card takes the place of the header's PnL: PnL to date counts closed positions too, so it's the fuller figure. Away from the app, the bot's `/leaders` shows the top five, each opening the wallet's page here, with a **Whole board** button for the rest; the AI connector's `tsuneni_leaders` answers "who are the best LPs to follow?" with the same figures and ranks. # Manage a position (/docs/guide/manage) The **Manage** menu on a position you own: | Action | What it does | The read-back | |---|---|---| | **Add liquidity** | Puts more in at the range's ratio at today's price; type one token, the other follows. Straight to Uniswap's PositionManager: a Permit2 signature and one transaction. | What it takes, at most 1% more if the price moves while you sign | | **Remove part** | Takes 25, 50, 75 or 100% out to your wallet, with its share of the fees; the rest stays in range with its rules. | What you get, and the least you get (1% under today's amounts) | | **Collect fees** | Takes the fees it has earned to your wallet; the position stays. | Each token's fees, their worth, the network fee | | **Compound fees** | Adds the fees it has earned back into the same range, in one transaction from your wallet to Uniswap's PositionManager; what doesn't fit at today's price comes to your wallet. Sized with 1% to spare, so a price move before it lands can't pull anything from your wallet (the add reverts instead). | Each token's fees, their worth, the network fee | | **Re-centre the range** | A new position the same width, centred on the price, with one swap; its rules move to it. | Now and after on one scale, what it takes out, the rules it carries, slippage (0.5, 1 or 2%), the network fee | | **Close the position** | Everything out to your wallet, fees included; its rules stop. | Both tokens or all in one, the minimum out, the rules it stops, slippage, the network fee | Rules keep running through Add and Remove: they act on whatever the position holds. The done state lists what went in or reached your wallet, token by token, from the transaction's receipt. If a one-token payout's swap can't fill within its slippage, the rest comes as it was and the done state says so. After the last close on a chain, it offers to take your gas budget back or revoke the permission in Settings. A position without rules asks for a one-position approval; rules need approve-for-all, because a re-range mints a new token the one-position approval wouldn't cover. ## Each rule's menu [#each-rules-menu] | Choice | What it does | |---|---| | **Pause** · **Resume** | Stops watching until you resume it; resumed, it acts at once if the price is already past its trigger | | **Act now** | Runs its action now, whatever the price (not on a Move: its action needs the other pool's live price) | | **Retry now** | For a rule that stopped acting: runs it now only if its trigger still holds, signed by you (no Reactive call, no gas budget); if the price came back, nothing changes and it says why. A fee or rebalance rule that acts is also renewed (a second signature), so the Watcher calls it again. Not for a rule watching the other chain or a trailing exit: Renew starts those | | **Edit** | Opens Add rule on the rule as saved: change its levels, payout, buffer, schedule, slippage, drift, wait or gas ceiling. Its type, the pool it watches and its next step stay; an exit with a next step keeps its payout too (the step trades it). A new version: a callback already on its way for the old one skips as "rule changed" | | **Duplicate** | Opens Add rule with the same settings and end date, for a second rule like it (another level, another payout). A next step isn't copied: Add rule says so, and Then adds one | | **Add a next step** | On a watched price exit without one (not a paused or trailing one): Add rule opens on the exit with **Then, trade it back** on, paying out one token. A step can only be linked when its exit is saved, so it saves the exit again with its step (one transaction) and the same end date, then deletes the old exit (a second signature, never before the new one lands) | | **Renew** | For a rule that no longer acts: stopped acting after 3 failed attempts, expired, not watched because its pool was full, or stopped because its permission was revoked. Starts it again as it was, with the failure count cleared (asking for the permission again when it was revoked); a waiting next step is extended first, so it can't lapse under its exit. An order renews no later than its token allowance | | **Resend to the Watcher** | For a rule still "Mirroring": sends its event again so the Watcher can copy it | | **Delete** | Stops it for good (a waiting next step goes with it); the position stays in your wallet. **Pause instead** is offered beside it | A rule that no longer acts says why on its card, in red, with **Renew** beside it when it can start again. A rule holding a crossing through its wait time shows when it acts if the price stays. ## Move a v3 position to v4 [#move-a-v3-position-to-v4] A Uniswap v3 position in WETH and USDC shows under **On Uniswap v3** in the Portfolio, with **Move to v4**. Pick the v4 pool and a range around today's price (±1, 5, 10 or 20%), keep or drop Follow the price and an Exit 10% below, and sign. The v3 NFT is approved to the Executor for this one move; then one `moveFromV3` call takes its liquidity and fees (at least 1% under today's amounts), burns the empty v3 NFT, swaps to the new range's ratio within 1%, after checking the v4 price hasn't moved more than 1%, and mints the v4 position to your wallet with its rules. What doesn't fit the range comes back to your wallet. # Move (/docs/guide/move) | Destination | When it fires | |---|---| | **Another pool here** | The Executor takes the position out, rebalances it for the target pool's price, and mints the same width there. Its rules follow it to the new position. | | **The other chain** | Before saving, the app registers the arrival there: where it opens and the rules that wait for it. **Rules it takes to the other chain** lists the position's live rules (Follow the price, exits, a trailing exit, fees), each on by default, at the same prices read in the destination pool's ticks and with its own end date. A paused rule stays behind, paused (a carried rule starts as soon as the position opens), and so does a rule that watches another pool's price. An exit's next step can't come (its token limit is on this chain): the dialog says it stays and won't start, so you set it again there. With no Follow the price of its own, **Keep it in range there** adds one. When the rule fires, the Executor takes the position out, swaps everything into the route's token, and deposits on Across **with you as the depositor**. The Executor on the other chain opens the position beside the price on arrival, and the waiting rules become active. | ## When it earns more [#when-it-earns-more] Between two pools of the same pair on the same chain, **When → it earns more** moves the position once the other pool pays more in fees. Every 1, 3 or 6 hours the Executor compares what one unit of liquidity earned in each pool since the last check, from the pools' own fee growth (nothing off-chain), and moves once the other earned at least 10, 25 or 50% more, on 1, 2 or 3 checks running. A check that finds it not ahead yet is quiet (it doesn't fill your Activity), and each check is one callback from your gas budget. **If something goes wrong:** an Across deposit nobody fills is refunded to you on the origin chain; an arrival that doesn't match (owner, token, minimum, expiry, or the price moved too far) sends the tokens to your wallet. Across's testnet routes carry WETH from Base to Unichain and USDC from Unichain to Base, within their limits (WETH 0.000004–0.0047, USDC 0.5–8); the dialog checks your position against them and lets you cap the bridge fee at 0.5, 1 or 2%. The proof above was fired with a script on the previous generation of contracts. The Move dialog in the app builds the same calls; they were checked against the current contracts by simulation. # Pools (/docs/guide/pools) | Column | What it is | |---|---| | **Price** | WETH in USDC, read live from the pool (Uniswap's StateView), so it shows even while the index catches up | | **TVL** | What every position in the pool holds at today's price: each range's net liquidity (deposits minus withdrawals) valued in USDC | | **Volume · Fees** | Each swap counted once, by what went in, valued at today's price; fees at the swap's own fee rate. Windows: 24 h, 7 days, 30 days | | **Fee APR** | An estimate: the window's fees against today's TVL, annualised over the history actually indexed. Hover it for how much history that is; under a day it shows — | | **Rules** | The live rules that watch the pool or act in it: each swap here is a reaction the Watcher checks them against | Filters, the window and the search stay in the page's link, so a view can be shared. While the index holds less than the window you picked (a new deployment), a line above the table says so ("Our index began 4 Dec, 08:42"), and the volume, fees and fee APR count from then. **How these figures are counted** opens the method. Every row has **Add liquidity**. ## The pool home [#the-pool-home] The price over time, **liquidity by price** (every position's range summed, so you can see where the pool is deep and where it's thin), the positions open in it (yours first), the rules watching it, and its transactions, ten a page. Beside the chart, a panel with two tabs keeps one height whatever it holds. **Order book** reads the liquidity above and below the price as sell and buy orders, eight levels each side, with the price, spread and fee between them; where a side's liquidity ends before eight levels it says so ("No liquidity above 4,500.7"). On Testnet the ⓘ beside the price explains that a test pool's price isn't ETH's market price. **Trades** lists the latest swaps newest first (price, size, and the time: the clock today, the date before), refreshed every 10 seconds; a new one flashes as it lands, a dot marks one a rule made, and each row opens its transaction. **Every transaction, with its wallet** jumps to the table under the chart. ## Add liquidity [#add-liquidity] **Add liquidity** (on a pool's row, its home, or the Pool tab's menu) opens a position: your tokens, deposited in a price range of this pool, earning its swap fees while the price stays in that range. The rules you switch on keep it there or close it at your price. It asks one thing a step, **Range → Deposit → Protect → Review**, with a bar on top you can click back through. | Step | What you choose | |---|---| | **Range** | ±1%, ±5%, ±10%, ±20% or the full range, then nudge either edge by 1%; the range is drawn on the pool's liquidity, and a backtest says how much of the pool's indexed history this width would have stayed in range (Testnet pools are days old, so it says when there isn't enough history instead of inventing a result) | | **Deposit** | Both tokens, one card each, as a swap ticket draws an amount: type either and the other follows the range's ratio at today's price; each card shows its value, your balance and **Max** (with both tokens, the most both balances cover). A bar under them shows the split, e.g. 47% WETH · 53% USDC. **Press a token** to put in just one: the other card then shows about what a swap turns half of it into first (in this pool, within 1%, after checking the price hasn't moved more than 1% since you reviewed it). A hint points at the token the first time | | **Protect** | Follow the price (waits 60 s past an edge) and Close if it falls below a price, both on by default; turn either off | | **Review** | The deposit token by token with its value and the total, the range's two edges with today's price between them, and the rules, each with **Edit** back to its step | One transaction opens it, minted to your wallet, and saves its rules, after the approvals and signatures it needs (a test wallet signs in the page). What doesn't fit the range at the moment it opens stays in your wallet. # Portfolio (/docs/guide/portfolio) | Part | What it shows | |---|---| | **The strip** | Positions value, uncollected fees, PnL, gas spent and rules watching. PnL adds up every open position with a deposit on record; when some have none (a pool the index doesn't follow), it says how many it counts ("14 of 20 positions"), as the bot and the AI card do. Under it, what needs you: a position out of range with no rule, a rule that stopped on a position you still hold, and gas owed on a contract where a rule still runs. A debt left on a retired contract waits in **Where the money is**. | | **Positions** | The first tab. Each open v4 position the wallet holds on both chains, six a page: its pool, **In range** or **Out of range** with its range and today's price in words (*4,015.8 – 4,491.4 · now 4,479.1*), value, PnL, uncollected fees and its rules. The ones a rule watches come first, in range before out of range, then the rest by value. Search by pair, fee or #id, and filter to **With rules** or **Out of range** (the ones earning nothing now). PnL counts every deposit and withdrawal across the position's history, re-ranges included, so it stays one number when a rule mints a new position. **Show closed** brings back the ones you closed or that were replaced. The position's own page draws the range as a bar with each rule's level on it. | | **On Uniswap v3** | Any Uniswap v3 position the wallet holds in WETH and USDC, with what it holds at its pool's price and **Move to v4** ([how](/docs/guide/manage#move-a-v3-position-to-v4)). | | **Orders** | Orders that aren't on a position (a stop, a take profit, a recurring buy, Keep a mix), by state: watching, a next step waiting, paused, and the ones that need you (stopped, stopped acting, expired, not watched), each with Pause, Resume, Renew and Delete. A position's rules show on its row and its page. | | **Copying** | The wallets you copy, with Pause, Edit and Stop, and the trades a copy skipped with why ([how](/docs/guide/follow)). | | **Tokens** | ETH, WETH and USDC on each chain: balance, worth in USDC at the pool's price, and how many orders sell it. Each opens its [token home](/docs/guide/tokens); its menu adds an order or wraps / unwraps. | | **Activity** | Everything that happened, newest first: what your rules did (any row opens its [proof](/docs/guide/proof)), and what you did (a rule saved, edited, paused, resumed, renewed or deleted; a gas budget topped up, funded by Try or taken back), each with its transaction. Filter it by kind (rules acted, skipped or failed, your own) and by chain. Ten a page; older ones load as you page. | | **Where the money is** | Two tabs. **Holdings**: your positions' value and fees (**Collect all** takes every position's fees to your wallet, one transaction per chain), then the wallet's ETH, USDC and WETH, one row each with the chains that hold it (hover for each chain's share). **Budgets**: your **gas budget** on each chain's Executor and your copy budget, with **Top up** and **Withdraw**, and older contracts folded into one line (it opens by itself when a debt there holds a rule back; the tab shows a dot then). Under both, one line: the permissions you've given (they open in Settings) and anything in transit on Across. | | **PnL over time** | On a wallet that's on the [Leaders](/docs/guide/leaders#a-wallets-pnl) board: its PnL to date as an LP, or at today's price as a trader, over 24 h, 7 days, 30 days or all, with its place on the board. | | **Not seeing a position?** | Pick its chain, type its id and press **Show**: the app reads it from the chain. On Base, whose explorer refuses to list a wallet's positions, the list holds the positions in the pools Tsuneni watches, and this row says that one in another pool shows by its id. When neither the explorer nor Tsuneni's index answers, a line says which chains can't be listed right now (it retries every 30 s), the table says it can't list them, and the totals read — rather than 0. | | **Trades** | On a wallet that's on the traders board: its swaps in the pools Tsuneni watches, newest first, each with what it bought or sold, the price, how it was made (its own swap, a copy or a token order) and its transaction. Someone else's wallet with no position opens here, with its trades, volume and last trade in the strip's place. | At the top, in red: a rule that **no longer acts** — stopped on a position you still hold (its permission was revoked or the position changed hands), **stopped acting** after 3 failed attempts, **expired**, or **not watched** because its pool already has the most rules the Watcher checks per swap — and any position out of range with no rule watching it, each linking straight to it. Most come back with **Renew**. In amber: a small debt to the shared float from a skipped action your budget couldn't cover, with **Settle**. ## Protect everything [#protect-everything] **Protect all** puts a stop-loss on your positions on both chains at once, all watching one pool's price. Pick the pool (any we index, on either chain), the level ETH falls to, and what each exit pays out (USDC by default); each chosen position gets an exit with that pool as its price trigger. A position on the other chain acts on it too: that's a [cross-chain trigger](/docs/guide/price-triggers). | | | |---|---| | **Which positions** | Every open one shown on Portfolio, except those that already have a stop-loss watching (a take-profit alone doesn't count). Up to four per price: the Watcher sends four callbacks per swap, exits first, so four is what the swap that crosses your level is sure to close. Protect more with a second price. | | **What it signs** | One transaction per chain, saving every exit there at once, with the gas budget topped up if it's short; before it, the one-time permission to act on that chain's positions if it's missing. | | **Checks before saving** | The pool's price and its room for more rules are read first, and the price again right before saving: a level ETH is already at or below would close everything at once, so it's refused. | | **After** | It counts the Watcher listing each exit, a few seconds later. If one isn't listed, the position's row shows it, with **Resend**. | ## Getting around [#getting-around] | | | |---|---| | **⌘K** (Ctrl K) | Go anywhere: your positions, Status, Settings, Docs, or paste any address or position id. The search box in the top bar opens it (an icon from 1024 to 1280 px wide); under 1024 px it's **Find** in the bottom tabs. | | **The bell** | What your rules did since you last looked: acted, skipped and why, or failed, newest first, each opening its proof. Above them, what needs you: a rule that no longer acts (with Renew where it can start again), a gas budget running low, a token allowance your orders need ending within three days. | | **Any address** | Paste it in ⌘K to see that wallet's portfolio, read only. The landing's **Watch it live** opens the demo wallet, whose rules are running. | | **Leaders** | The top LPs and traders in the pools Tsuneni watches, each a row that opens its page, with **Copy trades** on the row ([how](/docs/guide/leaders)). | # Price triggers (/docs/guide/price-triggers) An exit normally watches its own pool. **Watch the price on** lets it watch another: a deeper pool's price, or a pool on the other chain. The levels are read in that pool's own price and snapped to its tick spacing, and the rule card names it: "Exits if WETH on Unichain Sepolia's WETH/USDC 0.25% pool falls to 2,716.2 USDC". The Watcher subscribes to the watched pool's swaps on its chain and calls back the Executor where the position lives. Walked in the app on 3 Dec 2026: a swap on Unichain closed a position on Base in **1.4 s**. A rule that watches another pool isn't drawn on this position's chart (its prices belong to that pool), and **Move the price** doesn't offer it: moving this pool wouldn't fire it. # The proof sheet (/docs/guide/proof) Click any activity row, an item in the bell, or **See the proof** after Move the price. **Explore → Activity** lists every action anyone's rules took, newest first: when, what happened (its word opens the story in numbers on hover; the rule's line opens this sheet), how long it took from the swap, whose wallet, and **Swap ↗ · Reaction ↗ · Callback ↗**, each straight to its explorer. Over the list: wallets with a rule watching, actions today, and how long nine loops in ten take. The **Live · 1.6 s** chip beside the network pill in the header is the newest of them: its dot is the index's and the Watcher's health, the seconds are how long the last action took, and hovering it (or tapping on a phone) shows that action, today's count and **See every action**. On the narrowest phones (under 380 px) the chip steps aside for the header's buttons, and the logo menu's Status row keeps its live dot. Share it with the page's link: the proof is the `?action=` part. It shows: | Part | What it is | |---|---| | The latency | Callback block time minus the swap's block time (milliseconds on Base Sepolia, whole seconds on Unichain Sepolia) | | 1 · Swap crossed the trigger | The swap that moved the price past the rule's level, with the price and tick it reached | | 2 · Watcher reacted | The Watcher's transaction on Reactive Lasna that requested the callback | | 3 · Executor acted | The Executor's callback on the action chain | | Returned to wallet | What the action sent to the wallet, token by token | | Charged | What the callback cost, paid from the rule's gas budget | | Gas used | The callback's gas | # Rules on a position (/docs/guide/rules) | Rule | What it does | Settings | |---|---|---| | **Follow the price** | When the price leaves the range (past a buffer you choose), re-ranges it: centred on the price with one swap, or just beside the price with no swap. Every rule on the old position moves to the new one. | Centred or beside the price · buffer % · fees to the wallet or kept in | | **Close at a price** | Closes the position into your wallet when the price falls to a level, rises to one, or whichever comes first. | Levels · pay out both tokens, all in one, or the other · a next step | | **Trailing close** | Tracks the best price since you saved it and closes when the price turns back by your amount. | Trail % | | **Collect fees** | Collects the fees to your wallet, or adds them back in, on a schedule; optionally only once they're worth a minimum. | Every 10 min, 1 h, 6 h or 24 h · a minimum in USDC (a check below it is a skip, charged like a run) | | **Move it** | Moves the position to another pool at a price. [Its own page](/docs/guide/move). | Destination · level · Across fee cap | **Limits:** slippage and how far the price may drift between the Watcher seeing it and the Executor acting, on every rule; actions per day (default 6) on the rules that act more than once (Follow the price, Fees, Rebalance). A **wait time** makes the price hold past the trigger before acting: Follow the price added with Add rule waits 60 s, so a brief poke doesn't re-range you; the one **Open a position with rules** sets acts at once, and you can set any rule's wait under **Limits and safety** (0 to 86,400 s). A **gas ceiling** (gwei, same place) skips an action while the network's gas price is above it. **Ends** (same place) sets how long it lasts: never, or 7, 30 or 90 days (a test wallet's rules renew weekly instead; an exit with a next step ends with that step's allowance). For a rule that acts again and again, the review shows the most it can cost in a day at its daily cap. **Edit** changes any of these later. ## Close in steps [#close-in-steps] A Close at a price that falls to or rises to one price can **take it out in steps** instead: 2, 3 or 4 levels, each further than the last by your gap (0.5–50%). Each step takes an equal part of what's left (a third, then half of the rest, then the rest), so a take-profit sells into strength and a stop-loss eases out. The steps are saved together in one transaction as separate exits on the position, and the position's page draws them as one card, **Exit in 3 steps**, with each step's level, how far it is from today's price, and a tick once it has acted. Before you sign, each step's level is shown where the pool will fire on it; steps that would land on the same tick are refused. **The last step trails** (a take-profit in steps only): instead of a third level, the rest exits when the price turns back by your trail (0.1–50%) from its best. The trail starts the moment you save, from today's price, so until step 1 acts it covers all of the position: the review says the price it would act at today ("Until step 1, all of it exits at 2,124 (−3%), and that level rises with WETH's best"), and the card says **Takes all of it out … (the rest, after step 1)** until then. ## Confirm on a second pool [#confirm-on-a-second-pool] Under **Limits and safety**, any rule except Fees can **confirm on a second pool** of the same pair on the same chain: when it fires, the Executor reads that pool's price too, and acts only if it's within your band (1% by default) of this pool's. One pool pushed alone (a thin pool, a flash move) can't set it off; the rule is skipped and stays armed ("the second pool didn't agree"), and acts on the next crossing that both pools agree on. ## Then, trade it back [#then-trade-it-back] A Close at a price that pays out in one token can carry a **next step**: an order on the same pool that trades what the exit paid back into the other token at your price. Take profit at 4,420 USDC, then buy the WETH back if it falls to 4,199. Both are saved in one transaction; the next step reads **Next step** until the exit is done, then watches like any [order](/docs/guide/trade). An exit you saved without one gets it from its menu: **Add a next step** saves the exit again with the step, then deletes the old exit. It trades up to about what the exit pays out at its level, and never more than your wallet holds when it fires. It needs Permit2 for the token it sells: one approval per token, then a signature for its limit (no gas). Its price must sit past the exit's (below it to buy back, above it to sell again), or it would trade the moment the exit is done. Deleting the exit deletes a next step still waiting for it. The pair above was saved with a script on an earlier generation of contracts; the app's next step builds the same batch, checked against the current Executor by simulation. ## Preview and sign [#preview-and-sign] The **Preview** step says what would happen now ("Nothing now · 4,251.7 is in range, 5.0% from the low") and where each level sits; **Sign** saves the rule. A saved rule reads **Mirroring** until the Watcher on Reactive has its copy, then **Watching**. # Settings (/docs/guide/settings) | Section | What you can do | |---|---| | **Test wallet** | Its address (copy, QR code, each chain's explorer), today's top-ups against the limit of 3 per chain (reset at 00:00 UTC), Keep it, **Send** (any token it holds, to any address, signed in the page), Export its key, use one from another browser, or Start over (stops your rules, returns your budgets, then forgets the key) | | **Mode** | Testnet, where the judged loop runs, or Mainnet, the live beta on Base and Unichain ([its contracts](/docs/build/mainnet)); each is its own app. The **Mainnet · Testnet** switch in the top bar (under 1024 px wide, where the places move to tabs at the bottom, **Switch to …** at the end of the mode strip, or Find → Open this page on …) opens the same page in the other, with its tab, window and sort: a list or an address keeps its page; a position or pool, which is a different one on the other chains, lands on Pools. Your wallet connects to each app once | | **Permissions and gas budgets** | For every Executor this wallet has used, current and earlier, on both chains: whether it may act on your positions (**Revoke**), what it may still pull through Permit2 for orders and next steps, token by token with its end date and its own **Revoke** (**Revoke all** under the chain when there are two or more), your gas budget there with about how many actions it pays for at what your actions have cost (**Top up**, **Withdraw**), and any payout your wallet couldn't take when it was sent, held for you (**Claim**). A one-position approval (from Manage) is listed by its position, with its own **Revoke** (the chain's Revoke leaves these, and says how many); so is each token's one-time approval to Permit2 (shared with every app that uses Permit2, so Leave cleanly leaves it alone). | | **Leave cleanly** (in Permissions) | One flow, one transaction per step: stop every rule and take each budget back, claim what's held for you, then revoke each permission, each token allowance and each one-position approval. Finished steps stay done; a failure says what's already in place. | | **Appearance** | System, light or dark | | **About your data** | What's on-chain, what stays in this browser, and what our server keeps for Try (a wallet address, its grants and a one-way hash of the IP); links to every contract's verified source | Your positions and tokens never leave your wallet, so leaving touches only what Tsuneni holds: rules, gas budgets, held payouts, permissions and allowances. The account menu (top right) has the wallet in use and the ways to switch: **Copy address**, **Receive** (the address with a QR code, the same on both chains), Portfolio, Settings, Docs, and **Use your own wallet** or **Use my test wallet** when this browser holds both. # Status (/docs/guide/status) A strip across the top says at a glance whether your rules run right now: **All systems live** (or what's wrong), then the index (in step, or minutes behind), the Watcher (reacting, no fuel, paused or in debt, with about how many reactions its fuel covers), the Executors (clear, or how many are paused or in debt), and the median loop over every chain with nine in ten. Nothing on the page grows with the data: each list shows a few rows a page, one chain at a time, so a thousand watched pools read as well as ten. | Part | What it shows | |---|---| | **How fast** | The verdict first (*a bot's speed, with no server to run*, and by how much it leads or trails at the median and at nine in ten), then the same swaps on Base Sepolia timed both ways, Tsuneni beside a bot on a server checking every second (each swap set off one Reactive order and one bot order). Under it every route on record (Base → Base, Unichain → Base…), five a page, with its median, nine in ten and its spread from 0 to 5 s in half-second bars (≈ marks a route Unichain or Lasna stamps in whole seconds; hover it, or the bars' header, for the detail; a phone keeps the median and nine in ten) ([the method](/docs/how-it-works/latency)) | | **Latest reactions** | Every action Reactive took on anyone's rule, newest first, six a page (older ones load as you page), each with its pool, owner, age and latency; each opens its proof. **Every action** opens Explore's Activity tab | | **What it watches** | The pools a live rule triggers on, busiest first, with how many rules each swap there checks, and the totals | | **Contracts** | Each Executor and CopyExecutor, price mover and funder, the Watcher, the Copier and the demo mover, linked to its explorer and its verified source on Sourcify (the linked libraries are on [Contracts](/docs/build/contracts)). `/status#contracts` opens this tab | A toggle beside the three tabs picks the chain (All, Base, Unichain; Contracts adds Reactive's own). On the right, **The parts** holds three tabs: | Tab | What it shows | |---|---| | **Watcher** | Reacting, paused or in debt; its fuel in lREACT and about how many reactions it covers (amber when low); [Copy trading](/docs/guide/follow)'s **Copier** (copying, or fuel low and copies waiting, while rules keep running) and the Watcher's address on Reactive | | **Executors** | Per chain: acting or paused by the guardian (withdrawals, claims and leaving always work), and its **house float** (red at zero) and any debt | | **Index** | Each chain's latest indexed block and how fresh it is | On Testnet, **Test tools** shows one chain at a time: how many more test wallets the faucet can fund and how many it sent a day this week, what it holds, and what the price mover behind Move the price holds. When the faucet runs short it says which token, with public faucets to use meanwhile. `/status#mover` lands here. # Telegram (/docs/guide/telegram) [@TsuneniBot](https://t.me/TsuneniBot) puts Tsuneni in Telegram: your positions and rules on one panel you tap through, and a message when a rule acts, skips or needs you, with the swap, Reactive's reaction and the callback. It is a messenger, not a keeper: your rules run on-chain without it, and it can't sign, move or change anything. ## Link a wallet [#link-a-wallet] - **From Tsuneni:** Settings → Telegram → **Get alerts in Telegram** makes a one-time link (10 minutes). Open it, press **Start**, and the page says **On**. No signature: the bot only reads public data. - **Any address:** send the bot `/watch 0x…`, or paste an address. A watched wallet that isn't linked to you sends only what its rules did. - **The demo wallet:** **See the demo wallet** on the first screen shows Tsuneni's own wallet, with 20 positions and live rules. It watches five wallets per chat at most; **Settings → Wallets** lists them, sets the one Home shows, and copies, renames or stops each. ## One panel [#one-panel] Home is one message, pinned and edited in place as you tap: nothing piles up in the chat. Every screen is a picture with the numbers and a caption of a line or two that adds only what the picture lacks, usually what needs you. Lists have a button per row, links are buttons, and **Refresh** reads it again (it answers *Up to date* with the time). | Screen | Shows | Buttons | |---|---|---| | **Home** | Value and PnL, positions in and out of range, rules watching, the first two positions; the caption says what needs you first, or when a rule last acted and how fast | The fix for the first thing that needs you, Positions, Rules, Activity, Settings, **Leaders**, Refresh, **Open Tsuneni** | | **Positions** | Every open position, four to a page, what needs you first: range, value, PnL and the next trigger with its rule | One per position (🔕 when silenced), ◀ ▶ | | **A position** | Value, PnL since it opened, the price over 7 days with the range and every trigger drawn, its rules, the last action's time; the caption says how far the price is from an edge and the fees waiting, or what needs you | Each rule, **Add a rule** (or **Keep it in range** when nothing watches it), **Last proof**, **Share PnL**, **Silence** | | **Rules** | Five to a page, what needs you first: each with its next trigger, how far away it is, and its state | One per rule, a red **Fix** for the first that needs you | | **A rule** | Its words, its state, how far to its trigger, its gas budget on that chain in actions left, when it last acted | **Edit**, **Pause** or **Resume**, **Delete** (each opens that step in Tsuneni, where you sign), **Last proof** | | **Activity** | What the rules did, five to a page, newest first: what, which rule and chain, when, how fast | All, Acted, Skipped, Failed, and a proof per row | | **Leaders** | The top five LPs by PnL to date, or traders by a window's PnL at today's price, each with a few facts (positions open, rules watching, trades, copiers); the caption gives your wallet's place | LPs, Traders, 24 h · 7 days · 30 days · All time, one per wallet that opens its page in Tsuneni, where **Copy trades** is, and **Whole board** for [Leaders](/docs/guide/leaders) in the app | ## Alerts [#alerts] An alert's caption is the notification you see: one line with what happened, how fast, and the wallet's tag. The picture and the buttons carry the rest. | Alert | When | Starts | |---|---|---| | **Acted** | A rule did its job: re-ranged, closed, collected, moved. With the latency from the swap to the callback and the three transactions | On | | **Skipped** | A rule held back on purpose (the price came back, the price moved past your bound) and nothing moved | Silent | | **Needs you** | A rule stopped and only you can fix it: gas budget empty, Tsuneni no longer allowed on the position, the position left your wallet, a token balance or allowance short, the rule expired. The red button opens the fix in Tsuneni | On | | **Low budget** | A chain's gas budget covers fewer than about 10 actions | On | | **Out of range** · **Back in range** | A position with no rule keeping it in range left its range, or came back | On · Silent | | **Near the edge** · **Near a trigger** | The price is within 1, 2 or 5% (your pick) of an edge or a rule's trigger | Off | | **Moves** | A cross-chain Move set off, and arrived on the other chain as its new position | On | | **Copies** | A wallet you copy traded and the copy landed in yours: what it bought or sold (or the position it opened or closed), whom it copied, and the time from their transaction to the copy, with their transaction, Reactive's reaction and the copy. A copy skipped for a reason worth knowing comes as **Skipped**; one that needs you (copy budget empty, allowance spent) as **Needs you**; one skipped by your own setup (a pool or direction you don't copy, a gift under your minimum) never comes | On | | **Daily summary** | Once a day at your hour: value, PnL, what the rules did in 24 hours, what needs you | Off | On Testnet every picture carries the green **Testnet** strip (*test funds, test prices*), and an alert that names a price says *(test price)*: the test pools' own price, moved only by trades in those pools, not ETH's market price. A Follow the price set to re-range without a swap says **Beside the price**: the new range sits just past the price, all in one token, and earns again once the price comes back to it. An acted alert sent before Reactive's leg is indexed is edited in place once it is. Linking never floods the chat with history: only actions newer than the link, and than ten minutes, are sent. ## Settings [#settings] - **Each alert kind:** ✅ with sound, 🔕 silent, ⬜ off. One tap moves it along. - **Silence a position:** **Silence** on a position or its alert sends that position's alerts without sound. Nothing is dropped. - **Mute** (in Settings, or `/mute`): 1 hour, 8 hours, until 08:00, or until you unmute. Alerts still arrive, without sound. - **Quiet hours:** 22:00 to 07:00 on your clock, without sound. - **Your time:** Telegram doesn't tell a bot your time zone, so you tap the time on your clock; if its minutes differ (a half- or quarter-hour zone), **Times at :mm** shows them. Times, quiet hours and the summary follow it. - **Forget me:** deletes the wallets it watches for you, your settings and its log of what it sent. The messages stay in the chat. ## Share, the live loop and status [#share-the-live-loop-and-status] - **Share PnL** sends a card to forward: the position's PnL, value, range, its rule, how many actions its rules took and their median time, and a QR code to the position in Tsuneni. - **Live loop** (Testnet) presses the same loop as the app's landing: a real swap moves the demo pool out of range, Reactive's Watcher reacts and the callback re-ranges the position. Its caption follows the press to *Re-ranged in 1.0 s*, and **Swap**, **Reactive** and **Callback** open each transaction. Presses count per chat, within the app's daily limit. - **Status** shows the measured swap → Reactive → callback time (p90 and median), a polling bot on the same swaps beside it, the Watcher's state and fuel, and when the bot last read Tsuneni's index. ## Commands [#commands] | Command | Does | |---|---| | `/start` | Home (a link from Tsuneni links the wallet first) | | `/positions` · `/rules` · `/activity` | Those screens | | `/leaders` | Top LPs and traders to copy | | `/settings` | What it sends you, mute, quiet hours, your time, wallets | | `/mute` · `/unmute` | Mute for a while, or now | | `/status` | The measured latency and the Watcher | | `/help` | What it does, and what it can't | | `/watch 0x…` · `/unwatch 0x…` | Watch or stop watching an address | | `/loop` | The live loop (Testnet) | | `/forget` | Delete what it keeps for this chat | The bot never asks for a seed phrase, a private key or a Telegram code, and it can't sign. Anything that needs your signature opens Tsuneni at that step. # Tokens (/docs/guide/tokens) Open a token from the Portfolio's **Tokens** tab, from ⌘K (type its name), or from another token's page. Every token Tsuneni reads on Testnet has one: ETH, WETH and USDC on Base Sepolia and on Unichain Sepolia. | Part | What it shows | |---|---| | **Your balance · Worth · Price** | What the wallet holds, its worth in USDC at the chain's Testnet pool price (USDC at 1), and WETH's price | | **WETH in USDC** | The price over time from the indexed swaps, with each of your orders' levels on it, and a link to the pool | | **Your orders** | Every order that sells this token or buys it, with its state and its menu (Pause, Resume, Renew, Retry now, Delete). A rule that no longer acts says why, in red, with **Renew** when it can start again | | **Allowances** | Whether the token is approved to Permit2 (once, shared by every app that uses Permit2), what Tsuneni's Executor may still pull and until when, a warning when that ends within three days while an order needs it, and a link to revoke it in Settings | | **Wrap / Unwrap** | On ETH and WETH: one for one through the chain's WETH contract. **Max** keeps 0.0003 ETH for gas | On a desktop the token's page carries the [Trade](/docs/guide/trade) ticket's Order tab on its right, pinned to this token's pool, with **Open in Trade** for the full page (the chart, Swap, Recurring and Keep a mix). On a phone, **Add order** opens Trade. In the Portfolio's Tokens tab, each token's menu opens Trade set to sell it, or to spend USDC on WETH. Orders and our pools trade WETH, not ETH, so ETH's page says so, with **Wrap into WETH** and a link to WETH's page. When an order's last try skipped because the wallet held too little or its allowance ran short, the page says when, and what to fix. # Trade (/docs/guide/trade) **Trade** is the first tab in the header. Pick a pair at the top (every pool Tsuneni watches, on both chains, with its live price), then one of the ticket's four tabs: | Tab | What it does | |---|---| | **Order** | Waits for a price, then sells or buys | | **Swap** | Swaps now, in this pool | | **Recurring** | Buys or sells the same amount every hour, day or week | | **Keep a mix** | Holds two tokens at a split by value and trades only the excess | The chart shows every live rule on the pool as a line, and the level you're typing as a yellow line named for what it is (**New stop**, **New take profit**, **Then stop**…). Under it, two tabs: **Your orders** (in this pool, with a count) and **Trades in this pool**, ten a page, where a trade a rule made carries a mark that opens its proof. Every choice lives in the page's address (`/trade?chain=base&pool=…&tab=order&side=buy&type=dip`), so a link opens a filled-in ticket. A token's page and Portfolio's menus link here. ## Order [#order] Choose **Buy** (with USDC) or **Sell** (WETH you hold), then the kind of order. Each kind opens with one line; the (i) beside it holds an example in today's numbers. The button states the whole order as you fill it in: *Sell 0.25 WETH (50%) if it falls to 4,255.6*. | Side | Kind | Acts when | |---|---|---| | Sell | **Take profit** | WETH rises to your price | | Sell | **Stop loss** | WETH falls to your price | | Sell | **Both** | It rises to one price or falls to the other, whichever comes first; the other is cancelled | | Buy | **Buy the dip** | WETH falls to your price | | Buy | **Buy the pump** | WETH rises to your price (a breakout) | **The price.** On Testnet, today's price is the test pool's own (marked **Test price**: test tokens, moved only by trades in the pool), and its card shows ETH's market price beside it. Type it, or press a chip (±1, 5, 10%). The card shows how far it is from today's price, live. A price on the wrong side of today's, which would act at once, is refused as you type. A pool only acts on its own price steps (0.6% apart on a 0.30% pool), so a price is moved onto the step it will act at when you leave the field. Until then the card shows that step: *acts at 4,255.6, this pool's nearest price step*. If that step is already past today's price, the price stays as you typed it and the card says it's too close, since it would act at once. While today's price is still being read, the card waits for it, and so does the button; if the network doesn't answer, the card says it's retrying. **Trailing.** Stop loss and Buy the dip can trail instead of waiting at a fixed price. A trailing stop sells after WETH drops your % from its highest price since you set it; a trailing buy buys after it bounces your % from its lowest. The card shows today's peak (or low) and the level it would act at now. **The amount.** A sell takes an amount of WETH; a buy spends USDC. Under the amount, a slider with stops at 25, 50, 75 and 100% and a box to type any percent; **Avbl** is your balance, and **Max sell** (or **Max buy**) what all of it would bring at your price. Without a wallet the slider is greyed and says *Connect to use your balance*. At 100% of a sell, one checkbox, off by default, sells **also the WETH you add before it fires**: whatever the wallet holds then. Ask for more than you hold and the card says so, with the way to get it: **Wrap ETH** when your wallet has the ETH, **Swap USDC for WETH** (or the other way) when it holds the pool's other token, and on Testnet **Get test funds** when it holds neither. **Then protect what you buy.** On a buy, one switch adds a second step, and the ticket numbers them: **1 · Buy when**, then **2 · Then sell when** it rises to a take profit **or when** it falls to a stop, whichever comes first. Both prices start from the buy's level (+10% and −5%), and you can change them. The sell is sized to what the buy brings at its worst fill, so it never sells more than that. If the buy fills for less (a part fill, or the price moved before it filled), the sell can include WETH you already held, and the ticket says so in one line under the two prices. Both steps are saved together; the second waits until the first completes. A trailing buy can't be protected this way: its fill price isn't known until it fills. **Ends in** 7, 30 or 90 days. Then the ticket lists what will happen, line by line: *If WETH falls to 4,255.6: you get ≈ 0.0425 USDC*. The button stays on screen while you fill in the ticket, pinned to the bottom edge, and reads **Connect wallet** until a wallet is connected (on Testnet the same dialog offers a test wallet). **The chart** opens as candles, as an exchange's does, with volume along the bottom and today's price as a dotted line tagged on the axis; **Candles · Line** switches it (the choice is kept for every chart), and a menu beside it picks the candle size (Auto, or minutes to a day, by the period shown). It opens on the shortest period the pool traded in (a quiet test pool opens on its week), a candle stands only where the pool traded, and a lone spike's wick runs off the edge instead of flattening the rest (its high shows on hover). It draws the price you're typing as a yellow line named for its order, with every live rule on the pool as a dashed line: yours in the brand colour, other people's in grey, each tagged with its kind and what it sells or spends (*Stop · 0.25 ETH*). The key under it counts them and says how many sit too far from the drawn prices to show; it opens the pool's list of rules. **Details** folds away the rest: | Row | What it is | |---|---| | **Max slippage** | 0.5, 1 or 3% from the price when it acts. What can't fill within it stays in your wallet | | **Watching** | This pool's price, another pool's on the same chain, or the same pair's pool on the other chain (Base ↔ Unichain). Trailing reads this chain's pools only | | **Gas budget** | Each action is a callback paid from your gas budget on the chain; the ticket tops it up in the same transaction when it's short | | **Network fee** | The fee to save it, read live | | **Permission** | What Tsuneni may pull through Permit2, and until when (the order's end; a protected buy's sell gets 30 more days) | | Step | What happens | |---|---| | Once per token | An approval to Permit2 (an approval, not a spend) | | Save | One signature lets the Executor pull up to your amount through Permit2, and one transaction saves the order (both steps, for a protected buy) | | Check | The ticket reads the permission back. If the signature didn't take, it says so and offers **Fix** (a direct Permit2 approval) | | Fills | When a swap crosses the level, the Executor pulls the amount, swaps it within your max slippage, and sends the proceeds and anything unsold to your wallet | Your orders show under the chart with their state, the next level and how far it is, what they spend and until when, each with Pause and Delete under ⋯. With none open, the tab says what lands there. Finished ones are listed under **Recent**. When no open order uses a token any more but Tsuneni may still pull it, the list offers **Remove permission**. **No liquidity, no sale.** An order (or Keep a mix) that meets no liquidity within its max slippage is **skipped and stays armed**: the pull, the swap and the price it would have moved are all undone, so your wallet and the pool are as they were, and no swap is left behind to set off someone else's order. A price-triggered order is tried again, backed off, while its price holds; a scheduled one waits its interval. Activity calls it **Not filled**. ## Swap [#swap] A swap now, in the pair's pool, through Uniswap v4's Universal Router. The quote refreshes every 4 seconds and shows the rate against the pool's price. **Details** holds the max slippage (0.1, 0.5 or 1%), the least you'll get, the pool fee, the route and the permission: one Permit2 signature for exactly this amount, valid 30 minutes. If the quote moves while you review, **Quote updated · Accept** asks before you sign. A pool too thin for the amount says so and asks for a smaller one. ## Recurring [#recurring] Buy WETH with the same amount of USDC (or sell the same amount of WETH) every hour, day or week, 5, 10 or 30 times. The ticket shows each one at today's price, the total, and the first and last dates. The first fills one interval after you save it, and each fills within your max slippage at the price then. The total is the Permit2 limit, so it can never spend more. ## Keep a mix [#keep-a-mix] Keeps your WETH and USDC at a split by value, say 50 / 50, valued at the pool's price. It trades only the excess, and the tokens stay in your wallet. | Setting | What it does | |---|---| | **Keep** | The split, on one slider | | **Act when off by** | 2, 5 or 10%. Inside the band nothing trades, so small moves never cost a swap | | **Act at most every** | 1 h, 6 h or a day. It's checked on the pool's swaps and on Reactive's cron (about every 18 min), and acts at most once in this time | | **Ends in** | 7, 30 or 90 days | Before you save, it shows today's split and what it would do now: *Today 62 / 38: it would sell 0.004 WETH*. It may sell at most what you hold today of each token (its Permit2 limits). Each check that's due is a callback paid from your gas budget, whether it trades or not. When it ends or stops, set it up again from **Keep a mix**. ## On a phone [#on-a-phone] ## On Mainnet [#on-mainnet] Every Mainnet pool trades native ETH, and an order draws what it sells through Permit2, which moves ERC-20 tokens like USDC only. So on Mainnet an order or a recurring order can **buy** ETH but not sell it (the Order tab says so in one line, with **Swap it now** beside it), and Keep a mix isn't available: its notice comes first and its controls are switched off. Swap works both ways. # Try it, nothing installed (/docs/guide/try) **Try with a test wallet** makes a private key in your browser and keeps it there. Signing happens in the page, so there are no wallet pop-ups. The app then funds it on both chains: | On each chain | Granted | Topped up when below | |---|---|---| | ETH for gas | 0.0003 | 0.0001 | | WETH | 0.0012 | 0.0004 | | USDC | 4 | 1 | | Gas budget for your rules (held by the Executor) | 0.0002 ETH | 0.00004 ETH | On a chain where the wallet has no rules yet, the gas budget arrives as 0.0002 ETH more in the wallet, and the checklist says **With your first rule**: the first rule you save there adds it to the budget in the same transaction. A budget sent straight to the Executor is an event the Watcher pays to react to, on both chains, while most visits use one. Once a chain has your rules, its budget is topped up directly, so they keep acting. Funding comes from our TestnetFunder contract on each chain, sent in batches from a queue so visitors arriving together don't collide. Limits keep the reserve for everyone: three top-ups a day per chain per wallet, and 25 new wallets a day per IP. If the reserve runs low, the app says so and offers public faucets. A test wallet's key lives unencrypted in the browser that made it. Export it from **Settings** to use it elsewhere; never send it real funds. A test wallet's rules expire seven days after they're saved, and each visit renews those with less than six days left. ## Keep it [#keep-it] When you connect your own wallet while a test wallet is still in this browser, the Portfolio and **Settings → Test wallet** offer **Keep it**: everything the test wallet holds moves to your wallet, on both chains, step by step: | Step | What happens | |---|---| | Stop its rules and send its gas budget | `leave(your wallet)` on each chain's Executor: its rules are deleted and the budget (and any ETH held for it) goes to your wallet | | Claim what's held for it | A payout token its wallet couldn't take, and any budget or ETH on an earlier Executor, claimed straight to your wallet | | Send each position | The position NFT, straight to your wallet (`safeTransferFrom`: a wallet contract that can't hold one refuses it rather than losing it) | | Send its tokens | WETH and USDC, all of it | | Send its ETH | All but about 0.0002, kept so anything that lands later can be moved with **Keep it again** | The test wallet signs each step in the page, so there are no pop-ups, and a step that fails says what's already moved; **Try again** picks up there. If it can't read what the test wallet holds, it stops before moving anything. A cross-chain Move still bridging lands in the test wallet afterwards: Keep it says so, and the Portfolio offers **Keep it again** until it's moved. A position that changes hands can't keep another wallet's rules, so they stop on the way: each moved position's page lists the rules it had, with **Set up again** (Add rule, prefilled, signed by your wallet) and **Dismiss**. ## The tour [#the-tour] A three-step tour (your position, your rules, the proof) opens once on your first visit to your own Portfolio. **Help → Take the tour**, or ⌘K → *tour*, plays it again anytime. # The loop (/docs/how-it-works) | Part | Where | What it does | |---|---|---| | **Executor** | One on Base Sepolia, one on Unichain Sepolia | Holds 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. | | **Watcher** | One reactive contract on Reactive Lasna, for both chains | Mirrors 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 position** | Your wallet | Minted to you, never to the Executor. The Executor holds only approve-for-all on the PositionManager. | ## One rule firing [#one-rule-firing] **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](/docs/how-it-works/safety)), 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](/docs/how-it-works/payment)). The Watcher reads the `Ack` and clears the request. # Latency (/docs/how-it-works/latency) **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`](https://indexer.tsuneni.xyz/latency); `contracts/script/proof.py` does the same for one action from the command line. | 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 [#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`](https://github.com/Blockchain-Oracle/tsuneni/blob/main/packages/shared/latency/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](https://base-sepolia.blockscout.com/tx/0x1860dc2d0ae79d32d077374871a28fe071ca1971dc0fab8543f841ba9433e63a) · [reaction](https://lasna.reactscan.net/tx/0xb8b88a8901592614283870cda9cc5b8daa651fba9ee7d3cdedb4815792351e7f) · [callback](https://base-sepolia.blockscout.com/tx/0xf2236d533923e81fc4e38d0ba37799db88172ade57a662f7e2fc19c68ea27267) | | Stop-loss | Unichain Sepolia → Unichain Sepolia | 3 | 2.0 s, 2.0 s, 2.0 s | [swap](https://unichain-sepolia.blockscout.com/tx/0xf0a129fc488b912df03ec62bca7c03a406500afa7c3374991b1af24e39e96797) · [reaction](https://lasna.reactscan.net/tx/0xb26c65271ce367e8724b8d3a7938c5773db756ad396f88002f02591b03fe5f27) · [callback](https://unichain-sepolia.blockscout.com/tx/0x04b955316189108606193c1e41c6a65f42b54bccfeb341eacfa537e68d0c6ba8) | | Take-profit | Base Sepolia → Base Sepolia | 3 | 1.2 s, 1.2 s, 1.4 s | [swap](https://base-sepolia.blockscout.com/tx/0xedfb9035ab6714525ceecda2e31084e8b4916eaf29520cd1aba178c906a7fed6) · [reaction](https://lasna.reactscan.net/tx/0x69d20cf13c5f541ef6951c15366bb5319ea4891f65f1846f142af0c11ab2b2a7) · [callback](https://base-sepolia.blockscout.com/tx/0x8d1e8f1828a5d0f25b9b677307101b46f98c7e986f21d3770f0833a7de562c36) | | Trailing close | Base Sepolia → Base Sepolia | 2 | 1.6 s, 3.0 s | [swap](https://base-sepolia.blockscout.com/tx/0x60a8b4f161f9b9785c1e397b37f08d8b2b6f8872fdb83a0a746879d9dba0b16e) · [reaction](https://lasna.reactscan.net/tx/0x8ae4f3084ccbde3a6428b37dffc0187d210d600db1a035a022210483c419fe11) · [callback](https://base-sepolia.blockscout.com/tx/0xd2dbeb61da6924d159265b5c77f963082fa42101b7524192f443a2403887c3af) | | Stop loss (an order, sell at a price) | Base Sepolia → Base Sepolia | 2 | 1.0 s, 1.2 s | [swap](https://base-sepolia.blockscout.com/tx/0xd6f57f9834877dcc915cf408053450041512d8b9c9abc6fe770d10af53356796) · [reaction](https://lasna.reactscan.net/tx/0x0ffd30f95ee551e46b31725c3ee7b8467ed2d3863bea45c53e42f4858c14fc77) · [callback](https://base-sepolia.blockscout.com/tx/0xee3b43ce9301d28262afd201b8ba52f45dc171fcfe219454c4db84d3db259988) | | Follow the price | Unichain Sepolia → Unichain Sepolia | 3 | 2.0 s, 3.0 s, 3.0 s | [swap](https://unichain-sepolia.blockscout.com/tx/0x3cd3251df372f97ff4cbf01c9909894f62be3b06e33709542554f6e58fb00955) · [reaction](https://lasna.reactscan.net/tx/0xee89e00abe6d135c6e290f6492e7ce9b8313739551b8457328f2dacf7901e25e) · [callback](https://unichain-sepolia.blockscout.com/tx/0x22b23ed02b2e6dea85be92d672ab211522abe48210ea9103fee643e223934bdf) | | Stop-loss watching the other chain | Base Sepolia → Unichain Sepolia | 2 | 1.6 s, 2.6 s | [swap](https://base-sepolia.blockscout.com/tx/0x15387d28d70cb16902b05a73fdebe9c33a340bc15196958118fc686826cf2a40) · [reaction](https://lasna.reactscan.net/tx/0xcb627eb160dd9a0ee094ba0e478ac8850094741c8b62eb8b8d34ff406397a390) · [callback](https://unichain-sepolia.blockscout.com/tx/0x2552fea5bd82c455a01b1ea5b246d76cdfafb1f7c1f1da33e530fddfbc71ec77) | ## Fire one yourself [#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](/docs/reactive/why-omni). ## Against a bot polling every second [#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. The paired run is five swaps, on the previous generation of contracts; the 22-loop figures above are from every generation on record. # Who pays, and how (/docs/how-it-works/payment) Reactive's callback proxy charges the destination contract after each call, through `pay()`, and any debt stops delivery. So the Executor implements Reactive's `IPayer` itself: | Rule | How | |---|---| | The owner pays | While a rule's callback runs, its owner is held in transient storage; `pay()` charges that owner's gas budget. | | Never someone else | A shortfall comes from a house float and is recorded as owed by that owner; another user's budget is never touched. | | Skips are paid too | A skipped callback still cost gas, so it's charged to the rule's owner like any other; a duplicate, a callback while we've paused the Executor, or one from the wrong sender is paid by the float. | | Debt, if any, is the float's | If the float itself runs short, the rest stays as debt at Reactive's proxy until the float is refilled and anyone calls `coverDebt`, which pays it from the float only. | **Where your money is:** | Place | What's there | Way out | |---|---|---| | Your wallet | Tokens, position NFTs, every payout | It's yours | | Uniswap pool | Your liquidity, owned by your NFT | Manage → Close, or any Uniswap app | | Executor | Only your gas budget (ETH), plus any payout your wallet couldn't take when it was sent | Withdraw (Settings or the Portfolio); **Claim** in Settings | | Permissions | Approve-for-all on the PositionManager; Permit2 for orders | Revoke in Settings | | In transit | A cross-chain Move on Across | Arrives, or is refunded to you | The Watcher's own fuel on Reactive Lasna is ours: each reaction cost it about 0.05 lREACT in our testing (its balance over a run of reactions), paid from its balance, which Status shows. # The callback's checks (/docs/how-it-works/safety) `execute` accepts only Reactive's callback proxy, and only for the Watcher's ID; anything else is rejected without an acknowledgement. Then, in this order, each check ends in an acknowledged skip with its reason, never a revert: | # | Check | Skips with | |---|---|---| | 1 | The request isn't a repeat | Duplicate | | 2 | The Executor isn't paused | Paused | | 3 | The rule's version is the one the Watcher saw | Rule changed | | 4 | The rule is active and bound to this position | Rule inactive · Rule moved | | 5 | It hasn't expired (by timestamp) | Expired | | 6 | The network's gas price is under the rule's ceiling | Gas too high | | 7 | The owner's budget covers the worst-case fee | Budget empty | | 8 | The owner still holds the position, and it's still approved | Not owner · Not allowed · Position closed | | 9 | The price hasn't drifted from the Watcher's tick | Drift | | 10 | The trigger still holds (and the interval has passed) | Price returned · Not yet | | 11 | The daily cap isn't reached (rules that act more than once) | Daily cap | Then the action runs as one self-call inside `try`, with gas held back for the acknowledgement: done, or failed with its reason. There are 31 reasons in all, from "rule changed" to "the network's gas price was above the rule's ceiling"; each one the Executor acknowledges reaches the app's activity list and proof sheet in words (reason 30, "price came back during the wait", happens inside the Watcher, which clears the wait instead of calling back). **When a position is closed or sold elsewhere,** its rules stop at once: the Executor subscribes to each position on the PositionManager and hears `notifyBurn` and `notifyUnsubscribe`. **Prices are bounded** by a price limit on every swap (slippage) and by the rule's drift; nothing uses a caller-chosen router or calldata. New positions are always minted to the owner. ## What the contract's owner can and can't do [#what-the-contracts-owner-can-and-cant-do] The owner (the deployer) and a guardian hold a few switches. None of them reaches a position or a budget: | Function | Who | What it does | |---|---|---| | `setPaused` | owner or guardian | Stops actions only. Withdrawals, claims and leaving always work. | | `setWatcher` | owner | Names the Watcher whose callbacks are accepted (a new generation of the Watcher). | | `setPeer` | owner | The Executor on another chain that a cross-chain Move goes to. | | `setRoute` | owner | A bridge route (token in, token out, limits) for cross-chain Moves. | | `withdrawFloat` | owner | Takes the house float only, never users' budgets or kept payouts. | There is no function that moves a position, sets a swap's router or calldata, or changes a rule you saved. # The Watcher's discipline (/docs/how-it-works/watcher) | Kept | How | |---|---| | **Most swaps cost almost nothing** | Each pool keeps a quiet band between its nearest lower and upper trigger; a swap inside it returns early. | | **Exits go first** | Two passes per reaction, exits first; an exit locks its position so nothing acts on it in the same reaction. | | **Bounded work** | At most 4 callbacks per reaction and 24 rules per pool. A pool of 32 rules crossed at once measured 857k of the 900k gas a reaction gets; at 24 it stays under 760k. | | **One request at a time** | One in flight per rule and per position, cleared by the Executor's `Ack`; a timeout on a cron if none comes. | | **Failures back off** | Exponential backoff, and a rule stops after 3 failed attempts until it's edited or renewed. The app reads it as **Stopped acting** and offers **Renew**. | | **Gas per action** | Re-range 1.3M, exit 0.9M, collect 0.7M, compound 0.9M, order 0.7M, move 1.3M, rebalance 0.7M. | | **Already past the trigger** | A rule saved when the price is already past its trigger acts at once, without waiting for a swap. | | **Wait times** | A rule with a wait (60 s for Follow the price added with Add rule) records when the price first crossed, then confirms on a cron or the next swap; if the price comes back, the wait clears. | It subscribes to each Executor's `RuleSaved`, `Ack`, `BudgetChanged` and `Charged`, and to each watched pool's `Swap` filtered by pool id. Its cron subscriptions (ack timeouts, schedules, wait times) are live only while something is waiting on them. ## The Copier [#the-copier] Copy trading has its own reactive contract beside the Watcher, with its own fuel, so a busy followed wallet can never slow a stop-loss down. | Kept | How | |---|---| | **Only who's followed** | It subscribes to a wallet's token `Transfer`s and position NFTs only while someone follows it, on the chains they asked for, and drops the subscription when the last follow ends. | | **A swap from its legs** | A swap is the first two token legs of one transaction (different tokens, one out to the pool or router, one in to the wallet): the amounts and the price the leader got, with no router decoding. A position is a mint to the wallet, a close is its NFT leaving. | | **Bounded fan-out** | At most 64 copiers per wallet, chain and kind; 4 copies per reaction, the rest queued for the next reactions and dropped after 20 minutes (a close never is). | | **Daily limits** | 60 events a day per followed wallet (then its follows read **Paused today** until 00:00 UTC), 1,000 copies a day in all. | | **Listed when it can pay** | A follow is on its leader's list only while its copy budget covers a copy; the CopyExecutor's `BudgetChanged` puts it back. | | **Fuel floor** | Under its floor (0.25 lREACT on Testnet) it stops sending copies and says so on Status; rules keep running on the Watcher. | | **Gas per copy** | Swap 1.1M (the pull, the swap, the send and any protection rule it arms), position 1.6M, each set per callback like a rule's. | # What it costs (/docs/reactive/costs) | Cost | Paid by | In | |---|---|---| | Saving a rule, Manage, orders | You | Gas on Base or Unichain, from your wallet | | Each callback (the action) | You | Your gas budget on that chain's Executor (ETH), charged in `pay()` | | Each reaction on Reactive | Tsuneni | The Watcher's lREACT balance on Lasna (about 0.05 per reaction in our testing) | | Each copy (a follower's swap or position) | The follower | Their copy budget on that chain's CopyExecutor (ETH), at cost | | Each reaction to a followed wallet | Tsuneni | The Copier's lREACT on Lasna: about 0.07 for a copied swap, 0.15 for a position opened and closed, measured on Testnet | | Testnet helpers (Move the price, Try's funding, Make it trade) | Tsuneni | Our reserves | A reaction happens for every event the Watcher subscribes to: a swap on a watched pool, and each Executor event it mirrors (a rule saved, an ack, a charge). A swap that triggers one action is about five reactions: the swap itself, then the Executor's `Ack`, `Charged` and `BudgetChanged`, and a `RuleSaved` when the action changes the rule (a re-range moving it to the new position). **Keeping it funded.** Status shows the Watcher's fuel and any debt. If it ran out, Reactive would stop its reactions and every rule would wait until it's funded again (`coverDebt`). On Testnet, lREACT comes from Reactive's faucet (Sepolia ETH in, lREACT out on Lasna). # Reactive in Tsuneni (/docs/reactive) Reactive Network runs contracts that react to events on other chains and call back contracts there. Tsuneni's whole decision layer is one such contract, the **Watcher**, on Reactive Lasna. Nothing off-chain decides when a rule fires. | What Reactive does here | How Tsuneni uses it | |---|---| | **Subscriptions** to other chains' events | The Watcher subscribes to each Executor's rule, ack, budget and charge events on Base Sepolia and Unichain Sepolia, and to the `Swap` of every pool a rule depends on, filtered by pool id, subscribing and unsubscribing as rules come and go. | | **`react()`** on each event | Rule events update its mirror of every rule; swap events move each pool's tick and check the nearest triggers; acks clear in-flight requests. | | **Callbacks** with a gas limit | When a trigger holds, it requests a callback to the right chain's Executor with a gas limit per action (1.3M for a re-range, 0.9M for an exit). | | **Cron** | Only while something waits on it: ack timeouts, wait times and schedules. | | **The callback proxy and `pay()`** | Delivers the callback and charges the Executor, which charges the rule's owner ([payment](/docs/how-it-works/payment)). | Built with `reactive-lib-omni` (the system contract at `0x8888…8888`, `requestCallbackV_1_0`, `onlySystem`) and tested with Reactive's `reactive-test-lib` (omni) under its metered fee mode: 48 of the 100 tests run the whole loop through Reactive's real fee path, covering every rule type except Compound and Rebalance. **One Watcher serves both chains.** A rule on Base can watch a pool on Unichain (a [price trigger](/docs/guide/price-triggers)), and a [Move](/docs/guide/move) can send a position from one chain to the other: the Watcher sees both chains' swaps and calls back whichever Executor holds the position. # Why it needs Omni (/docs/reactive/why-omni) Tsuneni's rules act on the swap that crosses their level. Between that swap and the action, the market keeps moving. How far it moves depends on how long the loop takes, so the loop's speed decides what a stop-loss sells at and whether a re-range still fits its drift bound. ## What the loop takes [#what-the-loop-takes] Measured from the blocks on Base Sepolia (200 ms blocks), from the swap that crossed the level to the callback that acted, across Reactive Lasna and back: Every loop is on [Status](https://tsuneni.xyz/status) with its three transactions, and the method is on [Latency](/docs/how-it-works/latency). Reactive's earlier network made a block about every seven seconds (the organisers: "ideas that didn't fit in seven seconds should fit in one"); at Base's 200 ms blocks, seven seconds is some 35 blocks. ## What a few seconds are worth, in real prices [#what-a-few-seconds-are-worth-in-real-prices] We replayed 30 days of real one-second ETH prices (Binance ETHUSDT, 3 November to 3 December 2026). Every time ETH fell through a round $5 level it had stayed above for the whole previous hour, we compared its price at that second with its price 1, 2, 7, 12, 30 and 60 seconds later: how much lower a stop-loss sells if it acts that much later. | Acting after | 1 s | 7 s | 12 s | 60 s | |---|---|---|---|---| | **When ETH was already falling fast** (165 crossings), 1 in 10 sold this much lower or worse | 9.6 bp | 31.1 bp | 31.8 bp | 51.8 bp | | Same, 1 in 100 | 60 bp | 138 bp | 207 bp | 216 bp | | **All 774 crossings**, 1 in 10 | 3.6 bp | 10.2 bp | 12.4 bp | 23.3 bp | | A re-range bound to 0.5% drift refuses (both directions, 1,386 crossings) | 0.3% | 1.2% | 2.2% | 6.5% | One basis point of $10,000 is $1. So in a fast drop, one stop in ten sold $31 lower per $10,000 at seven seconds, against $10 at one second; one in a hundred, $138 against $60. On average the price came back about as often as it kept falling: the mean is close to zero at every delay. The cost of waiting is the tail, the moments a stop-loss exists for. Spot prices from one-second closes, so a crossing is known to the second, not within it. It isn't a Uniswap pool's executable exit: no position, pool depth, fees or slippage are modelled. Script: `apps/baseline/src/replay.ts`; results: `packages/shared/latency/price-replay.json`. ## Without Reactive, it takes a bot [#without-reactive-it-takes-a-bot] A second-by-second loop without Reactive means a server that reads the pool every second (86,400 reads a day per pool), holds a key that can act on your position, and has to stay up. When it's down, nothing fires. A bot polling every second is about as fast as the Reactive loop: in our paired run of five swaps it was 1,000 ms at the median against Reactive's 1,200 ms, with a longer tail (2,200 ms against 1,800 ms at p90). Details on [Latency](/docs/how-it-works/latency). With Omni, the same second comes from the chain itself: one Watcher contract reacts to the swap and calls back the Executor, with no server, no key that can move your position, and nothing to keep running.