Afonso_DiazTop Pairs (by swap frequency)
    Updated 2025-04-08
    with

    pricet as (
    select
    hour::date as date,
    token_address,
    avg(price) as token_price_usd
    from
    ink.price.ez_prices_hourly
    group by 1, 2
    ),

    txns as (
    select
    tx_hash,
    block_timestamp,
    origin_from_address as swapper,
    a.contract_address as token_out,
    b.contract_address as token_in,
    nvl(a.decoded_log:value, a.decoded_log:wad) as amount_out_unadj,
    nvl(b.decoded_log:value, b.decoded_log:wad) as amount_in_unadj
    from
    ink.core.ez_decoded_event_logs a
    join
    ink.core.ez_decoded_event_logs b using (tx_hash, block_timestamp, event_name)
    where
    a.event_name = 'Transfer'
    and nvl(a.decoded_log:from, a.decoded_log:src) = swapper
    and nvl(b.decoded_log:to, b.decoded_log:dst) = swapper
    and tx_succeeded
    and origin_to_address = '0x652e53c6a4fe39b6b30426d9c96376a105c89a95'
    and tx_hash in (select distinct tx_hash from ink.core.ez_decoded_event_logs where event_name = 'Swap')

    union all

    select
    Last run: about 2 months ago
    TOKEN_PAIR
    SWAPS
    SWAPPERS
    VOLUME_USD
    AVERAGE_AMOUNT_USD
    1
    WETH -> iETH2643419433133444.3633091125.04820925
    2
    WETH -> XVELO4675892902937.765272639193.141767973
    3
    WETH -> USD₮0358913981471887.84845506410.110852175
    4
    XVELO -> WETH84659218148.619951473257.858888832
    5
    WETH -> CAT501125299408.192411958597.621142539
    6
    iETH -> WETH43035112281.99953729228.562789622
    7
    USD₮0 -> kBTC40123179599.109839238447.8780794
    8
    WETH -> DINERO28410112122.6708373742.685460695
    9
    WETH -> kBTC2177950008.697514705230.454827257
    10
    USD₮0 -> WETH20010330010.758260716150.053791304
    11
    USD₮0 -> XVELO198706271.4095289431.6737855
    12
    WETH -> Kraken145303638.72463461825.094652653
    13
    iETH -> USD₮01231171721.85596692613.998828999
    14
    kBTC -> USD₮0912060963.154793029669.924777945
    15
    WETH -> VIOLET47870.4447338941.498824125
    16
    kBTC -> WETH442315636.970112182355.385684368
    17
    USD₮0 -> iETH4338906.98263197921.092619348
    18
    WETH -> PURPLE39299074.615224952232.682441665
    19
    XVELO -> USD₮026224315.007551981165.961828922
    20
    WETH -> SHROOMY1615149.3035562729.331472267
    53
    3KB
    14s