Query editor
-- Robinhood L2: total daily network gas fees, and the slice that is memecoin-related.-- Fee source: robinhood.transactions (effective_gas_price * gas_used + l1_fee), converted to USD-- via a flat daily ETH/USD price backed out from gas.fees (tx_fee_usd / tx_fee, verified flat per day).---- FIX (2026-09-03): the previous version summed gas.fees.tx_fee, which is derived from-- robinhood.transactions.gas_price. On this chain gas_price is populated as the *bid*-- (base_fee + max_priority_fee_per_gas), not the amount actually charged -- effective_gas_price-- is the correct paid rate. Using gas_price overstated daily fees ~2.5-3x (e.g. 2026-09-02:-- $12.2M reported vs. ~$4.6M actual). Verified by comparing gas_price vs effective_gas_price-- directly on robinhood.transactions and cross-checking corrected totals against Robinhood's-- own "Network REV" dashboard (Blockworks), which uses L2 Execution Fees + L1 Fee.---- Per-tx category, assigned in priority order:-- trading_terminal = tx routed through a known trading-bot / terminal router or fee sink-- (query_8051039 anchors + per-user router / smart-account families)-- launchpad = tx trades a bonding-curve / launchpad-issued token (query_7979183 map)-- meme_dex = any other DEX swap with at least one "meme" leg-- (a leg that is neither a major asset nor a stock/RWA token);-- e.g. AI/Artificial-Inu <> NVDA still counts (the AI leg is a meme leg)-- other = everything else: stock-token trading & settlement, ETH/USDG transfers,-- bridging, infra, failed txs, ...---- memecoin_related_fees = trading_terminal + launchpad + meme_dex.WITH bounds AS (SELECT DATE '2026-06-30' AS start_date),-- major / non-meme base assets on the chainmajors (token_address) AS (VALUES(0x5fc5360d0400a0fd4f2af552add042d716f1d168), -- USDG(0x0bd7d308f8e1639fab988df18a8011f41eacad73), -- WETH(0x0000000000000000000000000000000000000000) -- native ETH),-- stock / ETF / commodity / treasury RWA tokens (NOT memecoins)stock_tokens AS (SELECT token_address FROM query_8071980),-------------------------------------------------------------------- 1. Launchpad token universe (bonding-curve / launchpad-issued tokens)------------------------------------------------------------------launchpad_tokens AS (SELECT DISTINCT token_addressFROM query_7979183WHERE launchpad <> 'other'),-------------------------------------------------------------------- 2. Trading-terminal / bot router anchors (EVM registry, robinhood rows)------------------------------------------------------------------reg AS (SELECT platform, anchor_type, anchor_addressFROM query_8051039WHERE blockchain = 'robinhood'),deployer_family AS ( -- per-user router contracts spun up by a terminal deployer EOASELECT ct.address AS router