Updated 2025-03-30
    with

    transfers as (
    select
    tx_hash,
    block_timestamp,
    origin_to_address as user,
    'ETH' as symbol,
    amount,
    amount_usd,
    'to' as type
    from
    boba.core.ez_native_transfers
    where
    to_address = origin_to_address
    and from_address = origin_from_address
    and from_address = '0xeeeeee9ec4769a09a76a83c7bc42b185872860ee'
    and tx_hash in (select distinct tx_hash from boba.core.ez_decoded_event_logs where event_name = 'Swap')

    union all

    select
    tx_hash,
    block_timestamp,
    to_address as user,
    symbol,
    amount,
    amount_usd,
    'to' as type
    from
    boba.core.ez_token_transfers
    where
    from_address = '0xeeeeee9ec4769a09a76a83c7bc42b185872860ee'
    and origin_to_address = from_address
    and tx_hash in (select distinct tx_hash from boba.core.ez_decoded_event_logs where event_name = 'Swap')

    QueryRunArchived: QueryRun has been archived