Query editor
-- v4meta: hook share by token, trailing 7d. hooked_usd_7d / total_usd_7d for every token that has-- at least one hooked v4 pool, ordered ascending by hook_share so the most-bypassed tokens (the-- ones whose hook exists but whose volume trades somewhere else) sit at the top.-- This is the bypass leaderboard. A hook only pays holders on volume that stays on the hooked-- pool, so a low hook_share means the token's fee machine is mostly idle.---- Hooked leg: decoded poolmanager_evt_swap joined to the roster on poolId, then to that same-- swap's dex.trades row on (tx_hash, evt_index) for amount_usd. See v4meta_a's header for why-- prices.usd cannot be used on this chain (two priced tokens) and why dex.trades alone cannot-- attribute a v4 pool (PoolManager singleton).-- Total leg: dex.trades aggregated per token across every venue (v3 pools, hooked v4 pools,-- hookless v4 pools). Recon section 3 confirms token-level attribution in dex.trades is reliable-- even though pool-level attribution is not. The unnest below scans dex.trades once and credits-- each trade to both of its legs.-- Because the hooked leg reads amount_usd off the very same dex.trades rows the total leg-- aggregates, hooked is a strict subset of total and hook_share cannot exceed 1.---- Volume floor: total_usd_7d >= 100000. Without it this returns tens of thousands of dead-- launchpad tokens whose hook_share is noise on three-figure volume.-- Tie-break: within a hook_share tier, biggest total volume first, so the largest genuinely-- bypassed tokens lead instead of an arbitrary wall of zero-share dust.-- 2026-08-05 fix (audit I6): the board's methodology prose states INDEX's 14.8 percent all-venue-- hook share as a headline, but INDEX ranks 29th on this table (ascending hook_share, so tokens with-- LOWER hook share sort earlier) and is not visible without paging. Fixed by pinning INDEX-- (0x56910D4409F3a0C78C64DD8D0545FF0705389870) to row 1 regardless of its natural sort position, so-- the number a reader was told to check is the first thing they see; every other row keeps the-- original ascending-hook_share, tie-broken-by-volume order.with roster as (selectid as pool_id,currency1 as token_addressfrom uniswap_v4_robinhood.poolmanager_evt_initializewhere hooks <> 0x0000000000000000000000000000000000000000),roster_tokens as (select distinct token_address from roster),hooked as (selectr.token_address,sum(t.amount_usd) as hooked_usd_7dfrom uniswap_v4_robinhood.poolmanager_evt_swap sjoin roster ron s.id = r.pool_idjoin dex.trades ton t.tx_hash = s.evt_tx_hashand t.evt_index = s.evt_indexand t.blockchain = 'robinhood'and t.block_time > now() - interval '7' daywhere s.evt_block_time > now() - interval '7' daygroup by 1),total as (selectleg.token_address,sum(t.amount_usd) as total_usd_7dfrom dex.trades tcross join unnest(array[t.token_bought_address, t.token_sold_address]) as leg(token_address)where t.blockchain = 'robinhood'and t.block_time > now() - interval '7' day