Afonso_DiazBy symbol out
    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_OUT
    SWAPS
    SWAPPERS
    VOLUME_USD
    AVERAGE_AMOUNT_USD
    1
    USD₮0383915141539003.14266978400.886465921
    2
    XVELO4883925909506.012208487186.259678929
    3
    CAT503125299517.99929093595.463219266
    4
    WETH1546523280973.617308614181.742313912
    5
    kBTC62088229646.289708927370.397241466
    6
    iETH2648619449134379.2507351525.073595512
    7
    DINERO29210412194.8322683141.763124207
    8
    PURPLE40299078.716087452226.967902186
    9
    Kraken145303638.72463461825.094652653
    10
    MYST422907.901352917726.975338229
    11
    PRL961179.522359112131.058039901
    12
    PENK42381.4125312595.353132812
    13
    ADUX11327.56475327.56475
    14
    GRAPE51172.992187534.5984375
    15
    SHROOMY1615149.3035562729.331472267
    16
    KRILL4186.49478791721.623696979
    17
    Worm1181.891187581.8911875
    18
    VIOLET47870.4447338941.498824125
    19
    LIT2145.32934732422.664673662
    20
    AK479910.285185451.142798383
    24
    1KB
    27s