Afonso_DiazTotal (stake + unstake)
    Updated 8 days ago
    with

    pricet as (
    select
    hour::date as date,
    avg(price) as price_usd
    from
    near.price.ez_prices_hourly
    where
    token_address = 'wrap.near'
    group by 1
    ),

    main as (
    select
    tx_hash,
    block_timestamp,
    action_data:deposit/1e24 as amount,
    amount * price_usd as amount_usd,
    receipt_signer_id as user,
    'Stake' as action
    from
    near.core.ez_actions
    join
    pricet on block_timestamp::date = date
    where
    action_data:method_name = 'deposit_and_stake'
    and receipt_receiver_id = 'shitzu.pool.near'
    and receipt_succeeded
    and tx_succeeded

    union all

    select
    tx_hash,
    block_timestamp,
    Last run: 8 days ago
    TRANSACTIONS
    USERS
    DAILY_AVERAGE_TRANSACTIONS
    DAILY_AVERAGE_USERS
    VOLUME_USD
    VOLUME_SHITZU
    1
    17934215.093751.1960234239961.39138955843666.662803559
    1
    63B
    28s