adambalaDEX Usage Patterns
    Updated 2022-05-25
    with tab1 as (select
    date_trunc('month', block_timestamp) as date1,
    sum(amount_usd) as amount1


    from ethereum.dex_swaps
    where platform like '%uniswap%' and amount_usd < 1000000000
    group by 1
    )


    , tab2 as (select
    date_trunc('month', block_timestamp) as date2,
    sum(amount_usd) as amount2


    from ethereum.dex_swaps
    where platform like '%sushiswap%'
    group by 1
    )

    select
    date1,
    amount1 as Uniswap,
    amount2 as Sushiswap
    from tab1 left join tab2 on date1 = date2
    Run a query to Download Data