Afonso_Diaz2023-11-09 08:28 PM
    Updated 2023-11-09
    with t as (
    select
    tx_hash,
    block_timestamp,
    'Arbitrum' as chain,
    origin_from_address as swapper,
    symbol_in,
    symbol_out,
    amount_in_usd,
    amount_out_usd
    from arbitrum.defi.ez_dex_swaps
    where platform ilike 'uniswap%'

    union all

    select
    tx_hash,
    block_timestamp,
    'Polygon' as chain,
    origin_from_address as swapper,
    symbol_in,
    symbol_out,
    amount_in_usd,
    amount_out_usd
    from polygon.defi.ez_dex_swaps
    where platform ilike 'uniswap%'

    union all

    select
    tx_hash,
    block_timestamp,
    'Optimism' as chain,
    origin_from_address as swapper,
    symbol_in,
    symbol_out,
    Run a query to Download Data