Query editor
withunited_swaps as ((selectevt_block_time,"from",amount,tokenfromsymbiosis_base.portal_evt_synthesizerequestWHEREtoken = 0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA)UNION ALL(selectevt_block_time,to as "from",amount,tokenfromsymbiosis_base.portal_evt_burncompletedWHEREtoken = 0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA)),first_swap as (select"from" as swapper,date_trunc('{{timeframe}}', min(evt_block_time)) as first_swap_datefromunited_swapsgroup by1),first_swaps as (selectcount(*) as first_swaps,first_swap_date as dayfromfirst_swapgroup by2),swaps_stat as (selectdate_trunc('{{timeframe}}', evt_block_time) as day,COUNT(DISTINCT "from") as users,sum(amount / 1e6) as amount,min(amount / 1e6) as min_swap,avg(amount / 1e6) as avg_swap,max(amount / 1e6) as max_swap,count(amount) as countfromunited_swapsgroup by1)selectt.day,