Query editor
witheth as (selectsum(cast(value as decimal (38, 0))) / 1e18 as eth_fee,date_trunc('month', evt_block_time) as monthfromsynthetix_ethereum.sUSD_evt_Transferwhereto = 0xfeefeefeefeefeefeefeefeefeefeefeefeefeefgroup by2),op as (selectsum(cast(value as decimal (38, 0))) / 1e18 as op_fee,date_trunc('month', evt_block_time) as monthfrom(selectvalue,evt_block_timefromsynthetix_optimism.sUSD_evt_Transferwhereto = 0xfeefeefeefeefeefeefeefeefeefeefeefeefeefunionselectvalue,evt_block_timefromerc20_optimism_legacy_ovm1.evt_Transferwherecontract_address = 0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9and to = 0xfeefeefeefeefeefeefeefeefeefeefeefeefeef)group by2),base as (selectsum(cast(value as decimal (38, 0))) / 1e18 as base_fee,date_trunc('month', evt_block_time) as monthfrom(SELECTvalue,evt_block_timeFROMerc20_base.evt_TransferWHEREcontract_address = 0x09d51516F38980035153a554c26Df3C6f51a23C3AND "to" = 0x53f1E640C058337a12D036265681bC172e6fB962union allselectvalue,evt_block_timefromerc20_base.evt_TransferWHEREcontract_address = 0x09d51516F38980035153a554c26Df3C6f51a23C3