Query editor
-- pm-live-v4: all-time metrics; rolling last complete UTC day; no fixed cutoff block.WITH result_data AS (SELECT s.total_minted_drill,s.total_burned_drill,s.current_supply_drill,s.pre_game_supply_drill,d.*,u.unique_paid_wallets FROM query_8663366 s CROSS JOIN (SELECT sum(swap_team_received_eth) swap_team_fee_eth,sum(market_team_drill) mineral_team_fee_drill,sum(plot_deposited_eth) plot_deposited_eth,sum(plot_claimed_eth+plot_burn_released_eth) plot_paid_eth,sum(land_sales_eth) land_sales_eth,sum(rigs_deployed) rigs_deployed,sum(mineral_trades) mineral_trades FROM query_8663368) d CROSS JOIN (SELECT max(all_time_unique_paid_wallets) unique_paid_wallets FROM query_8663370) u) SELECT result_data.*, date_trunc('day',cast(current_timestamp AT TIME ZONE 'UTC' as timestamp)) reported_through_utc, (SELECT max(number) FROM robinhood.blocks WHERE date>=current_date-interval '2' day AND cast(time as timestamp)<date_trunc('day',cast(current_timestamp AT TIME ZONE 'UTC' as timestamp))) snapshot_block, cast(current_timestamp AT TIME ZONE 'UTC' as timestamp) refreshed_at_utc FROM result_data