Query editor
-- This query used incompatible data types from Dune SQL alpha and may need to be updated.-- More details can be found on https://dune.com/docs/query/dunesql-changes/SELECTSUM(CNT) AS total_traded,SUM(total_fee) AS all_transaction_fee,SUM(user) AS trade_userFROM(SELECTCOUNT(*) AS CNT,SUM(CAST(totalFee as double)/1e18) AS total_fee,COUNT(DISTINCT user) AS userFROM yomiswap_polygon.Router_evt_SwapFTforNFTUNION ALLSELECTCOUNT(*) AS CNT,SUM(CAST(totalFee as double)/1e18) AS total_fee,COUNT(DISTINCT user) AS userFROM yomiswap_polygon.Router_evt_SwapNFTforFT)