0xHaM-dUnique Tokens swapped
    Updated 2023-02-13
    -- with tokenTb as (
    select
    'Ethereum' as source,
    SYMBOL_IN as symbol,
    count(DISTINCT tx_hash) as swap_cnt
    from ethereum.core.ez_dex_swaps
    where origin_to_address='0xce16f69375520ab01377ce7b88f5ba8c48f8d666'
    group by 1,2

    UNION
    select
    'Polygon' as source,
    symbol,
    count(DISTINCT tx_hash) as swap_cnt
    from polygon.core.fact_event_logs inner join polygon.core.dim_contracts
    on address=CONTRACT_ADDRESS
    where origin_to_address='0xce16f69375520ab01377ce7b88f5ba8c48f8d666'
    group by 1,2

    UNION
    select
    'Arbitrum' as source,
    symbol,
    count(DISTINCT tx_hash) as swap_cnt
    from arbitrum.core.fact_event_logs inner join arbitrum.core.dim_contracts
    on address=CONTRACT_ADDRESS
    where origin_to_address='0xce16f69375520ab01377ce7b88f5ba8c48f8d666'
    group by 1,2

    UNION

    select
    'Avalanche' as source,
    symbol,
    Run a query to Download Data