pietrektDeterministic Rune Price
    Updated 2 days ago
    with init AS (
    SELECT to_date(block_timestamp) as day
    from thorchain.core.dim_block
    where day > '2021-04-10 00:00:00.000'
    group by day
    ),

    supply_changes AS ( SELECT
    to_date(block_timestamp) as day
    ,
    CASE
    WHEN supply = 'burn' and reason = 'swap' then -asset_e8 / 1e8
    WHEN supply = 'mint' and reason = 'swap' then asset_e8 / 1e8
    ELSE 0
    END as lending_change9,

    CASE
    WHEN supply = 'burn' and reason = 'adr' then -asset_e8 / 1e8
    ELSE 0
    END as adr129,

    CASE
    WHEN supply = 'burn' and reason = 'burn_system_income' then -asset_e8 / 1e8
    ELSE 0
    END as adr179

    FROM thorchain.defi.fact_mint_burn_events
    where asset = 'THOR.RUNE'
    ),


    killswitch AS (
    SELECT a.day,
    COALESCE(lending_change9, 0) as lending_change9,
    COALESCE(adr179, 0) as adr179,
    COALESCE(adr129, 0) as adr129,
    Last run: about 22 hours agoAuto-refreshes every 24 hours
    DAY
    RUNE_PRICE
    DETERMINISTIC_RUNE_PRICE
    1
    2025-04-11 00:00:00.0001.076750.5070857864
    2
    2025-04-10 00:00:00.0001.0897083330.4900375141
    3
    2025-04-09 00:00:00.0001.0343909170.508294678
    4
    2025-04-08 00:00:00.0001.0405404580.4632032878
    5
    2025-04-07 00:00:00.0001.0179304170.4803600893
    6
    2025-04-06 00:00:00.0001.0743469580.4815860114
    7
    2025-04-05 00:00:00.0001.1158333330.5154656711
    8
    2025-04-04 00:00:00.0001.1204166670.5201258781
    9
    2025-04-03 00:00:00.0001.1178333330.5164967961
    10
    2025-04-02 00:00:00.0001.1708333330.5151518567
    11
    2025-04-01 00:00:00.0001.183750.5407849434
    12
    2025-03-31 00:00:00.0001.1279166670.5217024338
    13
    2025-03-30 00:00:00.0001.1345833330.5180602619
    14
    2025-03-29 00:00:00.0001.1383333330.5195066083
    15
    2025-03-28 00:00:00.0001.20.5351505015
    16
    2025-03-27 00:00:00.0001.273750.5633771228
    17
    2025-03-26 00:00:00.0001.2754166670.5632434629
    18
    2025-03-25 00:00:00.0001.25250.5624534787
    19
    2025-03-24 00:00:00.0001.278750.5667795586
    20
    2025-03-23 00:00:00.0001.2520833330.5622660926
    ...
    1439
    73KB
    18s