Query editor
SELECTDATE_TRUNC('day', CAST(date_at AS TIMESTAMP)) AS day,'near' AS chain,'NEAR Intents' AS sender_label,SUM(CAST(fee AS DOUBLE)) / 0.005 AS total_volume_usd,SUM(CAST(fee AS DOUBLE)) AS total_revenue_usd,COUNT(*) AS unique_swapsFROM dune.near.dataset_near_intents_feesWHEREreferral = 'gemwallet'AND CAST(date_at AS TIMESTAMP) >= DATE '2024-01-01'GROUP BY 1,2,3ORDER BY day DESC;