Afonso_DiazOvertime
    Updated 2025-03-25
    with

    main as (
    select
    tx_hash,
    block_timestamp,
    origin_from_address as swapper,
    nvl(amount_in_usd, amount_out_usd) as amount_usd,
    symbol_in,
    symbol_out,
    pool_name,
    'BSC' as chain
    from
    bsc.defi.ez_dex_swaps
    where
    tx_hash in (select distinct tx_hash from bsc.core.ez_native_transfers where to_address = '0x90cbe4bdd538d6e9b379bff5fe72c3d67a521de5')

    union all

    select
    tx_hash,
    block_timestamp,
    origin_from_address as swapper,
    nvl(amount_in_usd, amount_out_usd) as amount_usd,
    symbol_in,
    symbol_out,
    pool_name,
    'Base' as chain
    from
    base.defi.ez_dex_swaps
    where
    tx_hash in (select distinct tx_hash from base.core.ez_native_transfers where to_address = '0x90cbe4bdd538d6e9b379bff5fe72c3d67a521de5')

    union all

    select
    QueryRunArchived: QueryRun has been archived