Afonso_DiazSwaps Breakdown
    Updated 10 days ago
    with ton_prices as (
    select
    hour::date as date,
    avg(price) as ton_price
    from
    crosschain.price.ez_prices_hourly
    where
    token_address = '0x76a797a59ba2c17726896976b7b3747bfd1d220f'
    and blockchain = 'bsc'
    group by 1
    ),

    latest_metadata as (
    select
    address,
    symbol,
    row_number() over (partition by address order by update_timestamp_onchain desc nulls last) as rn
    from ton.core.fact_jetton_metadata
    ),

    main as (
    select
    tx_hash,
    block_timestamp,
    trader_address as swapper,
    case
    when volume_usd is not null then volume_usd
    when volume_ton is not null then volume_ton * tp.ton_price
    else null
    end as amount_usd,
    token_bought_address,
    token_sold_address,
    coalesce(jm_bought.symbol, 'TON') as bought_symbol,
    coalesce(jm_sold.symbol, 'TON') as sold_symbol,
    project,
    pool_address,
    Last run: 10 days ago
    MARKET_SHARE
    CATEGORY
    SWAP_COUNT
    1
    other$10 - $997075183
    2
    other< $104770318
    3
    other$100 - $9993800416
    4
    other$1K - $9.9K915276
    5
    other$10K - $99.9K73341
    6
    other≥ $100K499
    7
    ston.fi$10 - $9910287163
    8
    ston.fi< $107768796
    9
    ston.fi$100 - $9995499995
    10
    ston.fi$1K - $9.9K1008288
    11
    ston.fi$10K - $99.9K64490
    12
    ston.fi≥ $100K586
    12
    369B
    17s