Afonso_DiazTop Pairs (by swaps)
    Updated 2025-02-26
    with

    transfers as (
    select
    tx_hash,
    block_timestamp,
    'AVAX' as symbol,
    amount_usd,
    from_address,
    to_address
    from
    avalanche.core.ez_native_transfers
    where
    origin_to_address = '0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae'

    union all

    select
    tx_hash,
    block_timestamp,
    symbol,
    amount_usd,
    from_address,
    to_address
    from
    avalanche.core.ez_token_transfers
    where
    origin_to_address = '0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae'
    ),

    main as (
    select
    tx_hash,
    block_timestamp,
    origin_from_address as swapper,
    c.symbol as symbol_in,
    QueryRunArchived: QueryRun has been archived