tkvresearchinc-jade
    Updated 2025-01-02
    with current_q as
    (select
    'Q3-2024' as label,
    sum(VALUE) as total_mint
    from berachain.testnet.fact_transactions
    where value != 0
    and
    ORIGIN_FUNCTION_SIGNATURE = '0x298c0733'
    and
    date(block_timestamp) >= current_date() - 90
    group by 1),

    prev_q as
    (select
    'Q2-2024' as label,
    sum(VALUE) as total_mint
    from berachain.testnet.fact_transactions
    where value != 0
    and
    ORIGIN_FUNCTION_SIGNATURE = '0x298c0733'
    and
    (date(block_timestamp) <= current_date() - 90
    and
    date(block_timestamp) >= current_date() - 180)
    group by 1)

    select
    (a.total_mint/b.total_mint-1)*100 as perc_change
    from current_q a join prev_q b
    on 1=1

    Last run: 2 months ago
    PERC_CHANGE
    1
    31.220837924
    1
    16B
    13s