mo115ETH/Sushi-Uni
    Updated 2022-08-21
    select date_trunc('day',BLOCK_TIMESTAMP) as date ,
    PLATFORM,
    count(distinct ORIGIN_FROM_ADDRESS) as users,
    count(distinct TX_HASH ) as txs,
    sum(AMOUNT_IN_USD) as Total_AMOUNT_IN_USD,
    sum(AMOUNT_OUT_USD) as Total_AMOUNT_OUT_USD,
    (Total_AMOUNT_OUT_USD-Total_AMOUNT_IN_USD) as total_slippage
    from ethereum.core.ez_dex_swaps
    where date >= '2022-01-01'
    and PLATFORM != 'curve'
    and AMOUNT_OUT_USD is not null
    and AMOUNT_IN_USD is not null
    group by 1,2

    Run a query to Download Data