How a pool gets read.
Nine steps, all read-only. The same steps are what an agent runs.
Pin one block
Every read happens at a single block. Each quote carries its block number and UTC time, so two numbers can always be compared.
Resolve the addresses
The Montra registry names the lens, router and PoolManager. Elyx checks that the PoolManager equals the one in the project dataset.
Find the pools
Topic-filtered Initialize logs on the PoolManager, for the token as currency0 or currency1. A full-chain scan would take minutes, so Elyx never does one.
Check the pool ID
The pool ID is recomputed as keccak256 of the full PoolKey (currency0, currency1, fee, tickSpacing, hooks) and must equal the log.
Read the state
Price tick and liquidity come straight from the PoolManager storage and are cross-checked against the lens. They matched on all four seed pools.
Classify the hook
A hook the Montra registry knows is Montra. HookrRoot is Hookr. No hook is plain Uniswap v4. Anything else stays "unclassified" and its fees are unknown.
Quote both ways
The buy is an eth_call to the launch router. The sell is also quoted on its own, and again after the buy by simulating a real swap from a funded probe account. Nothing is broadcast.
Decode refusals
A refusal arrives wrapped in layers: router, then the hook callback, then the hook's own error. Elyx unwraps them to a name like PartialFillRejected.
Cross-check
The Montra API is a second, independent source. Differences from the fixture are listed, not hidden.
Three words, three meanings
- Zero means observed zero. A pool with no swaps has zero swaps.
- Null means the source has no value. Last trade of a pool with no swaps is null.
- Unknown means Elyx could not establish it. It is shown, never filled in.
Limits
- The seed sample is historical. There is no depth history and no verified receipt.
- The launch router's quote is documented for Montra pools. On other hooks it is a generic quote and is marked unverified.
- The Uniswap V4Quoter address in the registry is the zero address, so it is not used.
- WHYPE has no published address in the project sources, so a token that calls itself WHYPE is reported as unverified.