Query editor
with pl as (select p.blockchain, p.pool, p.pair, p.admin, p.ext_stop_loss, p.ext_velocity_guard, p.ext_deposit_allowlist, p.n_extensions, t.tvl_usd as tvl_22nov_usdfrom dune.gcm.result_metric_pools pjoin dune.gcm.result_metric_pool_tvl_daily t on t.blockchain = p.blockchain and t.pool = p.pool and t.day = date '2026-11-22'where p.gen = 'v2_beta'and (p.token0_symbol in ('NVDAB', 'NVDA', 'NVDAc', 'NVDAon') or p.token1_symbol in ('NVDAB', 'NVDA', 'NVDAc', 'NVDAon'))and t.tvl_usd >= 500),tr as (select blockchain, pool,count(*) filter (where block_time >= timestamp '2026-11-23 12:50' and block_time < timestamp '2026-11-23 13:50') as swaps_hour_before,sum(amount_usd) filter (where block_time >= timestamp '2026-11-23 12:50' and block_time < timestamp '2026-11-23 13:50') as vol_hour_before_usd,count(*) filter (where block_time >= timestamp '2026-11-23 13:50' and block_time < timestamp '2026-11-23 14:30') as swaps_window,sum(amount_usd) filter (where block_time >= timestamp '2026-11-23 13:50' and block_time < timestamp '2026-11-23 14:30') as vol_window_usd,sum(amount_usd) filter (where block_time >= timestamp '2026-11-23 13:50' and block_time < timestamp '2026-11-23 14:30' and pool_buys_token0) as vol_window_pool_buys_usd,count(*) filter (where block_time >= timestamp '2026-11-23 14:30' and block_time < timestamp '2026-11-23 15:30') as swaps_hour_afterfrom dune.gcm.result_metric_tradeswhere gen = 'v2_beta' and block_date = date '2026-11-23'group by 1, 2),mk as (select blockchain, pool,sum(notional_usdt) as scored_vol_window_usd,sum(pnl_0) as pnl0_window_usd, sum(pnl_10) as pnl10_window_usd, sum(pnl_60) as pnl60_window_usd, sum(pnl_300) as pnl300_window_usdfrom dune.gcm.result_metric_markoutswhere gen = 'v2_beta' and block_date = date '2026-11-23'and block_time >= timestamp '2026-11-23 13:50' and block_time < timestamp '2026-11-23 14:30'and n_missing = 0 and age_0_s <= 30 and max_age_s <= 120 and notional_usdt > 0group by 1, 2),c as (select chain as blockchain, contract_address as pool,count(*) filter (where call_block_time >= timestamp '2026-11-23 12:50' and call_block_time < timestamp '2026-11-23 13:50') as calls_hour_before,count(*) filter (where call_block_time >= timestamp '2026-11-23 12:50' and call_block_time < timestamp '2026-11-23 13:50' and not call_success) as reverted_hour_before,count(*) filter (where call_block_time >= timestamp '2026-11-23 13:50' and call_block_time < timestamp '2026-11-23 14:30') as calls_window,count(*) filter (where call_block_time >= timestamp '2026-11-23 13:50' and call_block_time < timestamp '2026-11-23 14:30' and not call_success) as reverted_windowfrom metric_multichain.metricommpoolv2_beta_call_swapwhere call_block_date = date '2026-11-23' and chain in ('bnb', 'robinhood', 'base')and contract_address in (select pool from pl)group by 1, 2),pz as (select chain as blockchain, contract_address as pool, count(*) as pause_events_windowfrom metric_multichain.metricommpoolv2_beta_evt_pauselevelupdatedwhere evt_block_date = date '2026-11-23'and evt_block_time >= timestamp '2026-11-23 13:50' and evt_block_time < timestamp '2026-11-23 14:30'group by 1, 2)select pl.blockchain, pl.pair, pl.pool,substr(cast(pl.admin as varchar), 1, 6) || '...' || substr(cast(pl.admin as varchar), 39, 4) as curator,case when pl.ext_stop_loss and pl.ext_velocity_guard then 'stop-loss + velocity guard'when pl.ext_stop_loss then 'stop-loss only' when pl.ext_velocity_guard then 'velocity guard only' else 'neither' end as protection,case when pl.blockchain = 'bnb' and pl.pair like 'NVDAB/USD%' then 'Binance NVDAB' else 'none' end as reference,pl.tvl_22nov_usd,coalesce(tr.swaps_hour_before, 0) as swaps_hour_before,coalesce(tr.swaps_window, 0) as swaps_window,coalesce(tr.swaps_hour_after, 0) as swaps_hour_after,tr.vol_window_usd,tr.vol_window_pool_buys_usd / nullif(tr.vol_window_usd, 0) as pool_buys_stock_share,coalesce(c.calls_hour_before, 0) as calls_hour_before,