Afonso_DiazBy symbol in
    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
    SYMBOL_IN
    SWAPS
    SWAPPERS
    VOLUME_USD
    AVERAGE_AMOUNT_USD
    1
    WETH35992209662887994.3871424780.230980863
    2
    XVELO87375222464.427007144254.827522345
    3
    USD₮0851211216898.465959293254.874813113
    4
    kBTC1564476921.818820476493.088582183
    5
    iETH55346514003.85550421825.323427675
    6
    CAT1114070.381759997370.034705454
    7
    PURPLE44735.007200183183.751800046
    8
    Kraken2289.11215143444.556075717
    9
    DINERO10886.6710065318.667100653
    10
    AK472246.75087298923.375436494
    11
    PRL2132.67445833316.337229167
    12
    ADUX1110.06667761910.066677619
    13
    MYST114.10086254.1008625
    13
    559B
    18s