Query editor
-- Vanta buyback wallet 5CXSLbyK…DyNmKfK (SN8 alpha), from Taostats stake-events synced by sync_dune.py.-- received_usd: alpha that came in (buys with TAO + transfers in), valued in USD when each event settled.-- deployed_alpha: alpha sent out of the wallet (transfers out) = acquired alpha no longer held.-- deployed_usd: that alpha valued in USD when each transfer out settled.SELECT round(sum(usd_value) FILTER (WHERE direction IN ('buy', 'transfer_in'))) AS received_usd,round(sum(alpha) FILTER (WHERE direction = 'transfer_out'), 2) AS deployed_alpha,round(sum(usd_value) FILTER (WHERE direction = 'transfer_out')) AS deployed_usd,round(sum(alpha) FILTER (WHERE direction IN ('buy', 'transfer_in')), 2) AS received_alpha,count(*) FILTER (WHERE direction = 'buy') AS buys,round(sum(usd_value) FILTER (WHERE direction = 'buy')) AS bought_usd,max(ts) AS last_eventFROM dune.blockchain_explorators.vanta_buyback_events