Eman-RazKUJI token swap in different DEXs
    Updated 2024-09-12
    ----------------------------------------------Ethereum------------------------------------------------------

    with ethereum as (select sum(amount_in_usd) as "Swap Volume (USD)", count(distinct tx_hash) as "Swap Count",
    count(distinct origin_from_address) as "Swapper Count",
    platform
    from ethereum.defi.ez_dex_swaps
    where (token_in=lower('0x96543ef8d2C75C26387c1a319ae69c0BEE6f3fe7') or
    token_out=lower('0x96543ef8d2C75C26387c1a319ae69c0BEE6f3fe7'))
    and (block_timestamp::date between '{{Start_Date}}' and '{{End_Date}}')
    group by 4
    order by 1),

    ----------------------------------------------Arbitrum------------------------------------------------------

    arbitrum as (select sum(amount_in_usd) as "Swap Volume (USD)", count(distinct tx_hash) as "Swap Count",
    count(distinct origin_from_address) as "Swapper Count", platform
    from arbitrum.defi.ez_dex_swaps
    where (token_in=lower('0x3A18dcC9745eDcD1Ef33ecB93b0b6eBA5671e7Ca') or
    token_out=lower('0x3A18dcC9745eDcD1Ef33ecB93b0b6eBA5671e7Ca'))
    and (block_timestamp::date between '{{Start_Date}}' and '{{End_Date}}')
    group by 4
    order by 1),

    ----------------------------------------------BSC------------------------------------------------------

    bsc as (select sum(amount_in_usd) as "Swap Volume (USD)", count(distinct tx_hash) as "Swap Count",
    count(distinct origin_from_address) as "Swapper Count", platform
    from bsc.defi.ez_dex_swaps
    where (token_in=lower('0x073690e6CE25bE816E68F32dCA3e11067c9FB5Cc') or
    token_out=lower('0x073690e6CE25bE816E68F32dCA3e11067c9FB5Cc'))
    and (block_timestamp::date between '{{Start_Date}}' and '{{End_Date}}')
    group by 4
    order by 1),

    ----------------------------------------------Optimism------------------------------------------------------

    Auto-refreshes every 24 hours
    QueryRunArchived: QueryRun has been archived