Afonso_DiazTransaction Size Distribution
    Updated 2025-04-22
    with

    pricet as (
    select
    hour::date as date,
    symbol,
    avg(price) as token_price_usd
    from
    crosschain.price.ez_prices_hourly
    where
    token_address in ('mSoLzYCxHdYgdzU16g5QSh3i5K3z3KZK7ytfqcJm7So', 'So11111111111111111111111111111111111111112')
    and blockchain = 'solana'
    group by 1, 2
    ),

    main as (
    select
    tx_id,
    block_timestamp,
    provider_address as user,
    msol_minted as amount,
    msol_minted * token_price_usd as amount_usd,
    'Stake' as event_name
    from
    solana.marinade.ez_liquid_staking_actions
    left join
    pricet on block_timestamp::date = date and symbol = 'MSOL'
    where
    action_type in ('deposit', 'depositStakeAccount')

    union all

    select
    tx_id,
    block_timestamp,
    provider_address as user,
    Last run: about 1 month ago
    EVENT_NAME
    AMOUNT_BUCKET
    TX_COUNT
    TOTAL_MSOL
    TOTAL_USD
    1
    Stake0-107575984538096.85307629160094416.4402355
    2
    Stake10-50486361132522.20962908127653976.853368
    3
    Stake100+418761929884748.42454323426406081.16176
    4
    Stake50-100137891033838.45914773136321501.155361
    5
    Unstake0-101186626051.678589223294514.25212525
    6
    Unstake10-504860119079.28742011414656009.3933358
    7
    Unstake100+1045828649700.17071423252670873.71339
    8
    Unstake50-1002715205102.05475905525980826.7957894
    8
    471B
    17s