Query editor
-- rocksolid_usdc_deposits-- Wallet-level USDC transferred into the Rocksolid Ethereum deposit address.-- Deposit address: 0x10996efcbe5140284faea566c90dffd37d35c571-- App vault: 0xba71097e426983d840569edfa1a01396b56d86ad-- Chain: Ethereum mainnet-- USDC: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48-- Excluded from points: 0x7C65424BebB61F7977E922d5E063981DDb146db3-- Eligibility: wallet must deposit > 20 USDC in a given week to receive-- credit for that week.-- Output: wallet, all_time, week1..week8 (units = eligible weekly USDC).-- Dates sourced from season_weeks (query_6905723), filtered to active season only.WITH sw AS (SELECT season_week, week_start, week_endFROM query_6905723WHERE status = 'active'),season_bounds AS (SELECT MIN(week_start) AS season_start, MAX(week_end) AS season_endFROM sw),deposits AS (SELECTt.block_time,LOWER(CAST(t.tx_from AS varchar)) AS wallet,CAST(t.amount AS double) AS amount_usdcFROM tokens.transfers tCROSS JOIN season_bounds sbWHERE t.blockchain = 'ethereum'AND t.contract_address = 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48AND t."to" = 0x10996efcbe5140284faea566c90dffd37d35c571AND t."from" <> 0x7c65424bebb61f7977e922d5e063981ddb146db3AND (t.tx_from IS NULL OR t.tx_from <> 0x7c65424bebb61f7977e922d5e063981ddb146db3)AND t.amount > 0AND t.block_time >= sb.season_startAND t.block_time < sb.season_endAND t.block_date >= CAST(sb.season_start AS date)AND t.block_date <= CAST(sb.season_end AS date)),wallet_week_amounts AS (SELECTd.wallet,sw.season_week,SUM(d.amount_usdc) AS amount_usdcFROM deposits dJOIN swON d.block_time >= sw.week_startAND d.block_time < sw.week_endWHERE d.wallet IS NOT NULLGROUP BY 1, 2),eligible_wallet_weeks AS (SELECTwallet,season_week,amount_usdc