pietrektRefund Events Count
    Updated 9 hours ago
    -- could be hourly
    WITH refunds as (select block_timestamp, ROW_NUMBER() OVER(ORDER BY block_timestamp) as rownum from thorchain.defi.fact_refund_events order by block_timestamp),
    refund_count as (select to_date(block_timestamp) as day, count(rownum) as refund_count, ROW_NUMBER() OVER(ORDER BY day) as rownum from refunds group by day),
    refund_count_cumulative as (select day, refund_count, (select SUM(refund_count) from refund_count as b where b.rownum <= a.rownum) as refund_count_cumulative from refund_count as a)
    select * from refund_count_cumulative WHERE day is not null order by day DESC
    Last run: about 9 hours agoAuto-refreshes every 24 hours
    DAY
    REFUND_COUNT
    REFUND_COUNT_CUMULATIVE
    1
    2025-05-21 00:00:00.000209037887909
    2
    2025-05-20 00:00:00.000173987867006
    3
    2025-05-19 00:00:00.000192937849608
    4
    2025-05-18 00:00:00.000190857830315
    5
    2025-05-17 00:00:00.000122357811230
    6
    2025-05-16 00:00:00.000166107798995
    7
    2025-05-15 00:00:00.000205547782385
    8
    2025-05-14 00:00:00.000204477761831
    9
    2025-05-13 00:00:00.000294827741384
    10
    2025-05-12 00:00:00.000376617711902
    11
    2025-05-11 00:00:00.000256157674241
    12
    2025-05-10 00:00:00.000237647648626
    13
    2025-05-09 00:00:00.000167257624862
    14
    2025-05-08 00:00:00.000135047608137
    15
    2025-05-07 00:00:00.00088497594633
    16
    2025-05-06 00:00:00.00092267585784
    17
    2025-05-05 00:00:00.00070987576558
    18
    2025-05-04 00:00:00.00068897569460
    19
    2025-05-03 00:00:00.00050397562571
    20
    2025-05-02 00:00:00.00067157557532
    ...
    1451
    57KB
    3s