A Uniswap v4 hook that prices each swap by the caller's behaviour. Nobody is ever blocked.
The pool is holding the evidence the whole time. It just never reads it.
02 | the mechanism
Every swap arrives with an address attached. That address is the only thing Gantry prices on.
Its swaps and its traces. A reverted attempt emits no logs, so no subgraph can see one.
Scored inside a Chainlink enclave. The rules are public; the thresholds never leave it.
One storage slot, read in beforeSwap. The fee is the pool’s own, so the LPs keep it.
Three tolls charged on a live v4 pool. Nothing was blocked | only priced.
Swap through a router and the hook sees the router, so you pay the default. Sign an attestation and it sees you: the same wallet, re-scored, kept 8.47 more tokens out of 1,000.
A v4 hook. The fee it returns in beforeSwap becomes the pool’s LP fee for that swap, so the surplus stays with the liquidity.
v4 hooks ↗Nine Substreams modules published to the registry, plus two subgraphs read live on every request | mainnet behaviour, and Gantry’s own tolls.
substreams.dev/gantry ↗A CRE confidential workflow runs the scorer inside a TEE and writes a signed tier report on chain. The oracle accepts only that workflow’s owner.
chainlink cre ↗