Query editor
withweth_price as (SELECTprice,minuteFROMprices.usd pWHEREblockchain = 'ethereum'AND symbol = 'WETH'),united_swaps as ((selectevt_block_time,"from",amount,tokenfromsymbiosis_ethereum.portal_evt_synthesizerequestWHERE token = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2)UNION ALL(selectevt_block_time,to as "from",amount,tokenfromsymbiosis_ethereum.portal_evt_burncompletedWHERE token = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2)),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 / 1e18) as amount,min(amount / 1e18) as min_swap,avg(amount / 1e18) as avg_swap,