Query editor
WITH g AS (SELECT frozen_scale,hist_days,hist_days_ge_500,hist_worst_day_usd,hist_scaled_strict_zero_mark_usd,hist_scaled_capital_plus_gas_usd,oos_scaled_strict_net_usd,oos_scaled_peak_plus_gas_usd,hist_nonpaid_unmatched_proceeds_usd,oos_nonpaid_unmatched_proceeds_usd,hist_provenance_gate,oos_provenance_gateFROM dune.tusa3112.result_rh_top100_audited_prefilterWHERE LOWER(wallet)='0xcb4d28c2106fe9f781615005ff87056d114135c9'),e AS (SELECT * FROM dune.tusa3112.result_rh_top100_provenance_eventsWHERE wallet=0xcb4d28c2106fe9f781615005ff87056d114135c9),tok AS (SELECT token,g.frozen_scale*SUM(proceeds_usd-buy_cost_usd)-SUM(assigned_gas_usd) frozen_contribution_usdFROM e CROSS JOIN g WHERE token IS NOT NULL GROUP BY 1,g.frozen_scale),conc AS (SELECT MAX(frozen_contribution_usd) top1_usd,SUM(GREATEST(frozen_contribution_usd,0e0)) positive_usd,MAX(frozen_contribution_usd)/NULLIF(SUM(GREATEST(frozen_contribution_usd,0e0)),0e0) top1_shareFROM tok)SELECT'0xcb4d28c2106fe9f781615005ff87056d114135c9' wallet,g.frozen_scale,g.hist_days,g.hist_days_ge_500,g.hist_worst_day_usd,g.hist_scaled_strict_zero_mark_usd,g.hist_scaled_capital_plus_gas_usd,g.oos_scaled_strict_net_usd,g.oos_scaled_peak_plus_gas_usd,c.top1_usd frozen_top1_token_usd,c.top1_share frozen_top1_positive_share,g.oos_scaled_strict_net_usd-c.top1_usd oos_approx_ex_top1_usd,'PASS' pnl_gate,'PASS' provenance_gate,'PASS' capital_gate,IF(c.top1_share<0.5,'PASS','FAIL') concentration_gate,'FAIL_ONLY_2_HIST_DAYS_PLUS_1_OOS_DAY' period_stability_gate,'FAIL_0_INDEPENDENT_WALLETS_PASS_ALL_GATES' independence_gate,'FAIL_COMMON_FUNDER_F70D_FOR_CB4D_79C2_0000_9A8D' funding_independence_gate,'PASS_PUBLIC_SWAPROUTER02_04E45AAF_WETH_1PCT_POOL' execution_surface_gate,'PASS_JUL12_33PCT_AT_15S_33P5_AT_210S_33P5_AT_420S' exit_logic_gate,'FAIL_TOKEN_SELECTION_TRIGGER_NOT_RECOVERED' entry_logic_gate,'PARTIAL_ONE_OOS_DAY_NO_LIVE_FROZEN_SCALE_REPLAY' live_oos_gate,'REJECT' final_verdict,'Strong single-cluster near-survivor; fails independent peer, entry selector, history length and live replay.' final_reason,CURRENT_TIMESTAMP audited_atFROM g CROSS JOIN conc c