MostlyData_Slot fee mod4 by leader
    Updated 2025-01-21
    with leader_blocks_fee as(
    select
    block_id,
    reward_amount_sol

    from solana.gov.fact_rewards_fee

    where
    pubkey = '{{leader}}'
    and ( (
    '{{n_days}}' = 0
    and block_timestamp >= cast('{{start_date}}' as timestamp)
    and block_timestamp < cast('{{end_date}}' as timestamp)
    )
    or
    (
    '{{n_days}}' != 0
    and block_timestamp > current_date() - interval '{{n_days}} days'
    ))
    and reward_amount_sol < '{{fee_threshold}}'

    )

    ,ordered_slots as (
    select
    *,
    row_number() over (order by block_id) as row_num
    from leader_blocks_fee
    )

    ,grouped_slots as (
    select
    block_id,
    reward_amount_sol,
    floor((row_number() over (order by block_id) - 1) / 4) as group_id,
    Last run: 3 months ago
    SLOT_LABEL
    BINNED_DATA
    CUM_COUNTS
    CDF_VALUE
    1
    1° Slot0.1312070.928462
    2
    1° Slot0.09511110.854615
    3
    1° Slot0.01330.025385
    4
    1° Slot0.0659410.723846
    5
    1° Slot0.17512740.98
    6
    1° Slot0.11511610.893077
    7
    1° Slot0.057720.593846
    8
    1° Slot0.12511950.919231
    9
    1° Slot0.13512210.939231
    10
    1° Slot0.0910940.841538
    11
    1° Slot0.069000.692308
    12
    1° Slot0.19512980.998462
    13
    1° Slot0.08510720.824615
    14
    1° Slot0.14512420.955385
    15
    1° Slot0.0456890.53
    16
    1° Slot0.1812810.985385
    17
    1° Slot0.1412310.946923
    18
    1° Slot0.0810550.811538
    19
    1° Slot0.1712690.976154
    20
    1° Slot0.034070.313077
    ...
    160
    5KB
    1s