Query editor
-- index: eligible supply estimate and wallet counts around the 10,000 threshold-- Recon correction (docs/notes/robinhood-schema.md section 3): the brief's draft excluded the hooked-- pool's poolId from the wallet balance table, but a poolId is not an address and never appears as a-- transfer counterparty. Uniswap v4 balances are custodied by the PoolManager singleton-- (0x8366a39CC670B4001A1121B8F6A443A643e40951, itself confirmed as the top INDEX holder on Blockscout),-- so PoolManager is excluded instead of the poolId. The hookless v3 pool still holds INDEX directly-- and is excluded by its own address as before.-- Known gap: other infra (IndexFeeHook, the Sinjoh clone set in index_d, and the two Pons fee-- escrows 0x736d76699c26d0d966744cae304c000d471f7f35 (V1) and-- 0xbc39B6502E1a6Ab36E4A5c5026A35F08342A0A9c (PonsV2FeeEscrow), both documented in-- docs/notes/robinhood-schema.md section 13 as sweeping launched tokens into contract custody) may-- also carry a nonzero INDEX balance and is not excluded here. Those escrows are candidate-- non-wallet INDEX holders: any balance they hold is contract-custodied, not a holder position.-- If eligible_supply drifts far from the census's ~943M estimate, check those addresses next-- before trusting this number.-- 2026-08-05 fix (audit I5): the four named infra exclusions above (IndexFeeHook, Sinjoh set, both-- Pons escrows) each hold exactly 0 INDEX per live Blockscout balance checks, so the disclosed gap-- was empty while the real leak was undisclosed: the audit's live top-10 holders read found four-- UNNAMED contracts holding 50.9M INDEX combined (5.09 percent of the 1,000,000,000 supply,-- addresses 0x328ad5379807f72324220d7F9d1A3422721Fc651, 0x5E2b25C4a797ae5c8588958a6A81eAa575dDBc99,-- 0xbb3b32E63F6B2D2605A5114416398fA3839328b8 and 0xfdfAC5700C28661646255F1C7Ce137f70943E9D0), not-- named individually in the audit and not addressed here by name. Fixed generically instead: `bal`-- now excludes every wallet that also appears as a created-contract address in-- robinhood.creation_traces, which catches those four (and any other unlabelled contract) without-- needing their identities. This changes eligible_supply and every wallet count below: contract-- custody is no longer counted as a holder position. Re-run the audit's Blockscout top-10 read after-- any resync to confirm the gap stays closed.with deltas as (select varbinary_substring(topic2, 13, 20) as wallet,cast(varbinary_to_int256(data) as double) / 1e18 as amtfrom robinhood.logswhere contract_address = 0x56910D4409F3a0C78C64DD8D0545FF0705389870and topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efunion allselect varbinary_substring(topic1, 13, 20) as wallet,-cast(varbinary_to_int256(data) as double) / 1e18 as amtfrom robinhood.logswhere contract_address = 0x56910D4409F3a0C78C64DD8D0545FF0705389870and topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef),contract_addresses as (-- audit I5: any address that shows up as the created address in a creation trace is a contract,-- not a wallet; excluding this set is the generic form of excluding "unlabelled contracts" that-- the audit's named exclusion list missedselect distinct address from robinhood.creation_traces),bal as (select wallet, sum(amt) as balancefrom deltaswhere wallet not in (0xD29893fFac8b29eC4Db2cfE0CDB3FE1377c028Ff,0x8366a39CC670B4001A1121B8F6A443A643e40951,0x000000000000000000000000000000000000dead,0x0000000000000000000000000000000000000000)and wallet not in (select address from contract_addresses)group by wallethaving sum(amt) > 0.5)-- 2026-08-05 fix (audit I4): "holder_wallets" previously meant "every wallet above the 0.5-token