Query editor
-- Fresh (<=21d) contracts emitting ERC4626 Deposit(address,address,uint256,uint256),-- ranked by distinct depositors = real vaults with real users (NAV/reward-accounting class).WITH dep AS (SELECT 'ethereum' c, contract_address a, count(*) n, approx_distinct(topic1) ppl, max(block_time) lastFROM ethereum.logs WHERE topic0=0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7AND block_time > now()-interval '21' day GROUP BY 2UNION ALL SELECT 'base', contract_address, count(*), approx_distinct(topic1), max(block_time)FROM base.logs WHERE topic0=0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7AND block_time > now()-interval '21' day GROUP BY 2UNION ALL SELECT 'arbitrum', contract_address, count(*), approx_distinct(topic1), max(block_time)FROM arbitrum.logs WHERE topic0=0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7AND block_time > now()-interval '21' day GROUP BY 2UNION ALL SELECT 'bnb', contract_address, count(*), approx_distinct(topic1), max(block_time)FROM bnb.logs WHERE topic0=0xdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7AND block_time > now()-interval '21' day GROUP BY 2),fresh AS (SELECT 'ethereum' c, address FROM ethereum.creation_traces WHERE block_time > now()-interval '21' dayUNION ALL SELECT 'base', address FROM base.creation_traces WHERE block_time > now()-interval '21' dayUNION ALL SELECT 'arbitrum', address FROM arbitrum.creation_traces WHERE block_time > now()-interval '21' dayUNION ALL SELECT 'bnb', address FROM bnb.creation_traces WHERE block_time > now()-interval '21' day)SELECT d.c chain, d.a address, d.n deposits, d.ppl depositors, d.lastFROM dep d JOIN fresh f ON f.address=d.a AND f.c=d.cWHERE d.n >= 8ORDER BY d.ppl DESC, d.n DESCLIMIT 200