Query editor
-- POV Treasury Fees :: monthlywith monthly as (selectdate_trunc('month', t.evt_block_time) as month,count(*) as buys,count(distinct t.buyer) as buyers,sum(cast(t.treasuryFee as double) / 1e18) as fees_eth,sum(cast(t.treasuryFee as double) / 1e18 * p.price) as fees_usd,sum(cast(t.ethSpent as double) / 1e18 * p.price) as buy_volume_usdfrom degen_base.beliefmarket_evt_tokensbought tleft join prices.usd_daily pon p.day = date_trunc('day', t.evt_block_time)and p.blockchain = 'ethereum'and p.contract_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 -- WETHgroup by 1)selectmonth,buys,buyers,fees_eth,fees_usd,buy_volume_usd,sum(fees_eth) over (order by month) as fees_eth_cumulative,sum(fees_usd) over (order by month) as fees_usd_cumulativefrom monthlyorder by month desc