adriaparcerisassweat economy token burns 4
    Updated 3 days ago
    WITH info AS (
    SELECT
    *,
    TRY_PARSE_JSON(clean_log):"data" AS data,
    data[0]:"amount" / POW(10, 18) AS tokens_burnt
    FROM near.core.fact_logs
    WHERE
    predecessor_id = 'vote1.sweat'
    AND receiver_id = 'token.sweat'
    AND signer_id = 'treasury.sweat'
    AND TRY_PARSE_JSON(clean_log):"data" IS NOT NULL
    AND data[0]:"amount" IS NOT NULL
    ),
    prices AS (
    SELECT
    TRUNC(hour, 'week') AS day,
    AVG(price) AS price_usd
    FROM near.price.ez_prices_hourly
    WHERE symbol = 'SWEAT'
    GROUP BY 1
    ),
    burn_events AS (
    SELECT DISTINCT
    TRUNC(block_timestamp, 'week') AS burn_date
    FROM info
    ),
    price_impact AS (
    SELECT
    p.day,
    CASE
    WHEN p.day IN (SELECT burn_date FROM burn_events) THEN 'Burn Event'
    ELSE 'Non Burn Event'
    END AS period,
    p.price_usd,
    LAG(p.price_usd) OVER (ORDER BY p.day) AS prev_day_price,
    (p.price_usd - LAG(p.price_usd) OVER (ORDER BY p.day)) AS price_change,
    Last run: 3 days ago
    DAY
    PERIOD
    PRICE_USD
    PREV_DAY_PRICE
    PRICE_CHANGE
    PRICE_CHANGE_PERCENT
    1
    2025-03-31 00:00:00.000Burn Event0.0048574303030.005151644405-0.0002942141017-5.711071623
    2
    2025-03-24 00:00:00.000Non Burn Event0.0051516444050.0050771092860.000074535119051.468062136
    3
    2025-03-17 00:00:00.000Non Burn Event0.0050771092860.005126874345-0.00004976505952-0.9706705523
    4
    2025-03-10 00:00:00.000Non Burn Event0.0051268743450.006039369345-0.000912495-15.109110701
    5
    2025-03-03 00:00:00.000Non Burn Event0.0060393693450.006355511786-0.0003161424405-4.974303426
    6
    2025-02-24 00:00:00.000Burn Event0.0063555117860.006721689226-0.0003661774405-5.44769965
    7
    2025-02-17 00:00:00.000Non Burn Event0.0067216892260.007292813333-0.0005711241071-7.831327651
    8
    2025-02-10 00:00:00.000Non Burn Event0.0072928133330.009055476131-0.001762662798-19.465158674
    9
    2025-02-03 00:00:00.000Non Burn Event0.0090554761310.0081393009520.000916175178611.256189984
    10
    2025-01-27 00:00:00.000Burn Event0.0081393009520.0075200389880.00061926196438.234823852
    11
    2025-01-20 00:00:00.000Non Burn Event0.0075200389880.007985671488-0.0004656325-5.830849675
    12
    2025-01-13 00:00:00.000Non Burn Event0.0079856714880.007597032440.00038863904765.115669186
    13
    2025-01-06 00:00:00.000Non Burn Event0.007597032440.0074565870830.00014044535711.883507234
    14
    2024-12-30 00:00:00.000Burn Event0.0074565870830.0070685239880.00038806309525.490015962
    15
    2024-12-23 00:00:00.000Non Burn Event0.0070685239880.0065337302380.000534793758.18512137
    16
    2024-12-16 00:00:00.000Non Burn Event0.0065337302380.007451418274-0.0009176880357-12.315615659
    17
    2024-12-09 00:00:00.000Non Burn Event0.0074514182740.008774003214-0.00132258494-15.073905356
    18
    2024-12-02 00:00:00.000Non Burn Event0.0087740032140.0083524632740.00042153994055.046893673
    19
    2024-11-25 00:00:00.000Burn Event0.0083524632740.008372261964-0.00001979869048-0.2364795865
    20
    2024-11-18 00:00:00.000Non Burn Event0.0083722619640.0077505532140.000621708758.021475794
    92
    9KB
    7s