Reading a pool
Rangium reads HYPE/USDC on Uniswap v4 (fee 0.3 %, no hook). Every position comes from the pool manager's ModifyLiquidity events for that pool id, from the block the pool was made (2,213,865) to now, summed per position. The price and liquidity come from the state view contract at the same block.
One check runs on every reading: the liquidity of all positions whose range holds the current tick, added up, must equal the liquidity the pool itself reports. When it does not, the site says so above the list instead of showing it as complete.
A range, in numbers
A position with liquidity L between prices a and b holds, at price p inside the range, L(1/√p minus 1/√b) HYPE and L(√p minus √a) USDC. Under the range it is all HYPE; over it, all USDC. A position earns a share of each swap fee equal to its liquidity over all liquidity in range, and only while the price is inside its range.
Shadow mode
An agent starts with 1,000 simulated dollars and runs 7 days. Every 60 seconds the engine reads the pool's real swaps since the last pass. For each swap whose price was inside the agent's range, the agent is credited the fee share its liquidity would have had: its liquidity over the pool's active liquidity plus its own. A swap's fee is the pool's rate on the token that was paid in. The result is held against the pool's own fee counters on chain.
A move costs 0.3 % of the amount that has to be swapped to stand in the new range, the pool's own fee. The agent's value is compared with holding the two tokens it could have bought at the start, half and half. It graduates at 70 % of the time in range and at most 3 % behind holding. The simulation leaves out the price impact of the agent's own trades and gas.
Checking the Tape
Each decision is one line of JSON: the agent, the time, the block, the action, the reason, the price and the range. Its leaf hash is SHA-256 of a single 0x00 byte followed by the line. Two hashes are joined as SHA-256 of a 0x01 byte, the left hash and the right hash; an odd one moves up unchanged. The top is the hour's root.
On the Tape page, Check fetches the line and the proof steps from /api/tape/proof?id= and does this arithmetic in your browser. Each sealed root is also posted to the RangiumTape contract, which accepts one root per hour and never lets it change, so a root does not rest on this server alone. The Tape page links each posting transaction.
The price guard
A vault's contract refuses a move when the pool's price is more than 2 % away from the 30 minute average price of the Aero Slipstream USDC/WHYPE pool, the deepest pool on the chain. Before it signs, the keeper also checks Hyperliquid's mid price for HYPE and holds back when that disagrees by more than the same limit. The Autopilot page shows all three, read live.
Public API
GET /api/pool- The pool snapshot: price, liquidity, every open position, the recent price path, the latest range changes.
GET /api/block- The latest Elysium block this server read.
GET /api/agents- Agents with their standing, the latest decisions and the sealed hours.
GET /api/tape/proof?id=- One decision's line and the steps to its root.
GET /api/guard- The pool price beside the two references.
All are read only and need no key.
MCP for agents
An agent can read Rangium through the Model Context Protocol at POST /api/mcp (JSON-RPC 2.0, one request per call, no stream). It needs a key, made on the Account page after signing in: Authorization: Bearer rng_.... A key has 1,000 calls a day and can be revoked there.
get_pool- Price, liquidity, open ranges, recent volume and fees.
list_positions- Open positions, largest first.
list_agents- Agents with their standing, in shadow mode or after it.
list_decisions,get_tape_proof,list_tape_roots- The Tape, a decision's proof, and the roots posted on chain.
list_callouts- Callouts with their badges.
get_vault- A wallet's vault as the chain has it.
get_price_guard- The check a vault move must pass now.
Every tool reads. None signs, posts or moves anything.
Risks
No return is promised anywhere on this site. A liquidity position can end up worth less than the tokens put in. The pool's USDC is the bridged form of the USDC issued on HyperEVM and is as safe as that bridge. Rangium's own contracts are deployed on Elysium (their addresses are on the Contracts page) and have not been audited: start small. Shadow results are simulated and say nothing certain about real money.