Query editor
-- ============================================================================-- ALPHA WALLET DASHBOARD — Robinhood chain memecoins-- Query 1: 🏆 Robinhood OG Leaderboard-- Query 2: 💰 CASHCAT Early-Buyer PnL Tracker---- CASHCAT contract (robinhood chain): 0x020bfc650a365f8bb26819deaabf3e21291018b4-- Early cutoff: first trade before 2026-07-08-- Early cohort: earliest 10% of wallets by first robinhood trade (cume_dist)-- Active trader: >= 3 distinct trading days AND >= 4 trades in trailing 30 days---- DRAFT — not yet executed on Dune. Sanity checks to run first (cheap):-- select project, count(*) from dex.trades where blockchain='robinhood' group by 1;-- select min(block_time) from dex.trades where blockchain='robinhood';-- ============================================================================-- ============================================================================-- QUERY 1: 🏆 Robinhood OG Leaderboard-- Top 100 wallets ranked by Alpha Score:-- earliness (how early their first robinhood trade was, percentile-based)-- + CASHCAT PnL multiple (capped so one lucky ape doesn't dominate)-- + recent activity (distinct trading days in last 30d, capped)-- Only wallets that pass ALL three gates appear:-- (1) early: first trade < 2026-07-08 AND in earliest 10% of all wallets-- (2) bought CASHCAT before 2026-07-08-- (3) active: >=3 trading days and >=4 trades in the last 30 days-- ============================================================================with first_trades as (-- first-ever robinhood DEX trade per wallet, across ALL tokensselecttx_from, min(block_time) as first_trade_timefrom dex.tradeswhere blockchain = 'robinhood'and amount_usd > 0group by 1), early_rh_wallets as (-- cume_dist ranks wallets by first-trade time: 0.10 = earliest 10%.-- Both gates applied: percentile AND the hard 2026-07-08 cutoff.selecttx_from, first_trade_time, earliness_pctfrom (selecttx_from, first_trade_time, cume_dist() over (order by first_trade_time) as earliness_pctfrom first_trades)where earliness_pct <= 0.10and first_trade_time < timestamp '2026-07-08 00:00:00'), cashcat_buys as (selecttx_from