Query editor
withoptimism_burn as (selectevt_tx_hash,evt_block_time,burntfromsynthetix_optimism.FeePool_evt_FeePeriodClosedjoin (selectcast(value as double) / 1e18 as burnt,evt_tx_hashfromerc20_optimism.evt_Transferwherecontract_address = 0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9and to = 0x0000000000000000000000000000000000000000and "from" = 0xfeEFEEfeefEeFeefEEFEEfEeFeefEEFeeFEEFEeF) using (evt_tx_hash)whereevt_block_time > timestamp '{{From}}'),ethereum_burn as (selectevt_tx_hash,evt_block_time,burntfromsynthetix_ethereum.FeePool_evt_FeePeriodClosedjoin (selectcast(value as double) / 1e18 as burnt,evt_tx_hashfromsynthetix_ethereum.sUSD_evt_Transferwhere--contract_address = 0x57Ab1ec28D129707052df4dF418D58a2D46d5f51to = 0x0000000000000000000000000000000000000000and "from" = 0xfeEFEEfeefEeFeefEEFEEfEeFeefEEFeeFEEFEeF) using (evt_tx_hash)whereevt_block_time > timestamp '{{From}}')selecteth.evt_block_time as time,sum(eth.burnt) over (order by eth.evt_block_time) as eth,sum(op.burnt) over (order by eth.evt_block_time) as op,sum(eth.burnt + op.burnt) over (order by eth.evt_block_time) as all_burntfromethereum_burn ethjoin optimism_burn op on date_trunc('day', eth.evt_block_time) = date_trunc('day', op.evt_block_time)whereeth.evt_block_time >= timestamp '{{From}}' andeth.evt_block_time < timestamp '{{To}}'