Afonso_Diazby program
    Updated 2025-01-27
    with

    main as (
    select
    tx_hash,
    block_timestamp,
    amount,
    amount_usd,
    origin_from_address as user,
    program_name
    from
    crosschain.olas.ez_olas_staking
    )

    select
    program_name,
    count(distinct tx_hash) as transactions,
    count(distinct user) as users,
    sum(amount) as volume_olas,
    sum(amount_usd) as volume_usd,
    avg(amount) as average_amount_olas,
    avg(amount_usd) as average_amount_usd,
    transactions / count(distinct block_timestamp::date) as daily_average_transactions,
    users / count(distinct block_timestamp::date) as daily_average_users
    from
    main
    where
    block_timestamp between '{{ start_date }}' and '{{ end_date }}'
    group by 1


    Last run: 3 months ago
    PROGRAM_NAME
    TRANSACTIONS
    USERS
    VOLUME_OLAS
    VOLUME_USD
    AVERAGE_AMOUNT_OLAS
    AVERAGE_AMOUNT_USD
    DAILY_AVERAGE_TRANSACTIONS
    DAILY_AVERAGE_USERS
    1
    Everest811252.027174272214.030.64231079352.6423456791.50.222222
    2
    Alpine1647567.34088955295.680.41061518021.8029268292.4848481.136364
    3
    Coastal299841038.6530260942137.573.473755947.1490635453.1473680.884211
    4
    Alpha1274156.651042732104.030.44607120260.81913385831.9538460.630769
    4
    321B
    1s