Query editor
-- Find NEW protocols (deployed recently) used by ARB farmersWITH airdrop_recipients AS (SELECT DISTINCT "to" AS walletFROM erc20_ethereum.evt_transferWHERE contract_address = 0xb50721bcf8d664c30412cfbc6cf7a15145234ad1AND evt_block_time >= TIMESTAMP '2023-03-23'AND evt_block_time <= TIMESTAMP '2023-06-01'LIMIT 10000),-- Find when contracts were deployedcontract_deployments AS (SELECTaddress,MIN(block_time) AS deployed_atFROM ethereum.creation_tracesWHERE block_time >= TIMESTAMP '2024-01-01' -- Only contracts deployed in last ~1 yearGROUP BY address),recent_activity AS (SELECTtx."to" AS contract_address,COUNT(DISTINCT tx."from") AS unique_wallets,COUNT(*) AS total_interactions,MIN(tx.block_time) AS first_seen,MAX(tx.block_time) AS last_seen,SUM(tx.value) / 1e18 AS total_eth_valueFROM ethereum.transactions txWHERE tx."from" IN (SELECT wallet FROM airdrop_recipients)AND tx.block_time >= NOW() - INTERVAL '30' DAY -- Last 30 daysAND tx."to" IS NOT NULL-- Exclude known infrastructureAND tx."to" NOT IN (0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0x7a250d5630b4cf539739df2c5dacb4c659f2488d,0xe592427a0aece92de3edee1f18e0157c05861564,0x00000000219ab540356cbb839cbe05303d7705fa,0x111111125421ca6dc452d289314280a0f8842a65,0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad,0xef1c6e67703c7bd7107eed8303fbe6ec2554bf6b)-- Exclude known token contractsAND tx."to" NOT IN (SELECT contract_addressFROM tokens.erc20WHERE blockchain = 'ethereum')GROUP BY tx."to"HAVING COUNT(DISTINCT tx."from") >= 5)SELECTra.contract_address,ra.unique_wallets,ra.total_interactions,ra.total_eth_value,cd.deployed_at AS contract_deployed,DATE_DIFF('day', cd.deployed_at, CURRENT_DATE) AS days_since_deployment,ra.first_seen,