jackguyDAI Activity 5 copy
    Updated 2023-03-02
    -- forked from 2d6800d3-8885-4255-b28c-74029a43df13

    SELECT
    date_trunc('month', block_timestamp) as month,
    sum(case WHEN symbol_in LIKE 'USDC' then amount_in_usd ELSE amount_out_usd END) as swap_volume_usd,
    count(DISTINCT tx_hash) as swaps,
    count(DISTINCT ORIGIN_FROM_ADDRESS) as users
    FROM ethereum.core.ez_dex_swaps
    WHERE symbol_in LIKE 'USDC'
    OR symbol_out LIKE 'USDC'
    GROUP BY 1


    Run a query to Download Data