Query editor
withraw as (selectblock_date,coalesce(sum(tax) filter(whereblock_chain = 'solana'),0) as solana_tax,coalesce(sum(tax) filter(whereblock_chain = 'ethereum'),0) as ethereum_taxfrom(selectdate_trunc('day', block_time) as block_date,block_chain,collateral_usd * filled_amount * 2 * 0.025 / total_amount + collateral_usd * (total_amount - filled_amount) * 0.005 / total_amount as taxfromquery_3381997)group byblock_date)selectblock_date,solana_tax,ethereum_tax,sum(solana_tax) over (order byblock_date) as total_solana_tax,sum(ethereum_tax) over (order byblock_date) as total_ethereum_tax,sum(solana_tax + ethereum_tax) over (order byblock_date) as total_taxfromraworder byblock_date desc