hessDaily TVL [USD]
    Updated 2025-01-26
    with base as (select block_timestamp,
    tx_id,
    EVENT_DATA:"initiator" as user,
    event_data:"amount" as amt,
    event_data:"contractTVL"::float as tvl
    from flow.core.fact_events
    where tx_succeeded = 'TRUE'
    and event_contract = 'A.a45ead1cf1ca9eda.FlowRewards'
    and event_type = 'Locked')
    ,
    base2 as (select block_timestamp::date as date,
    count(DISTINCT tx_id) as transactions,
    count(DISTINCT user) as users,
    sum(amt) as "Locked Flow",
    max(tvl) as "TVL Flow",
    avg(amt) as "Avg Amount",
    median(amt) as "Median Amount",
    max(amt) as "Max Amount"
    from base
    group by 1)
    ,
    price as ( select hour::date,
    avg(price) as avg_price
    from flow.price.ez_prices_hourly
    where symbol = 'FLOW'
    group by 1
    order by 1 desc
    limit 1)

    select date,
    "TVL Flow",
    "TVL Flow"*avg_price as "TVL (USD)"
    from base2 , price
    order by 1 asc


    Last run: 3 months ago
    DATE
    TVL Flow
    TVL (USD)
    1
    2024-08-28 00:00:00.0001155797.54492496794841.278166368
    2
    2024-08-29 00:00:00.0002278639.254364511567018.84804292
    3
    2024-08-30 00:00:00.0003729398.794261222564705.31317416
    4
    2024-08-31 00:00:00.0005710402.674148573927040.49277037
    5
    2024-09-01 00:00:00.0006374369.18428014383649.86340791
    6
    2024-09-02 00:00:00.0006427531.664042544420209.66884306
    7
    2024-09-03 00:00:00.0006913948.80927984754718.44777243
    8
    2024-09-04 00:00:00.0006972253.333736684794814.43425871
    9
    2024-09-05 00:00:00.0009187657.29277266318346.40764534
    10
    2024-09-06 00:00:00.00012505206.73301818599823.16717248
    11
    2024-09-07 00:00:00.00012641165.21994818693321.73705919
    12
    2024-09-08 00:00:00.00012901800.03190328872560.14085982
    13
    2024-09-09 00:00:00.00013094053.7150349004772.88339664
    14
    2024-09-10 00:00:00.00013444268.16431749245615.15004016
    15
    2024-09-11 00:00:00.00014859639.224517510218964.9789171
    16
    2024-09-12 00:00:00.00017129882.3384711780209.8062364
    17
    2024-09-13 00:00:00.00019596146.057604413476257.8861269
    18
    2024-09-14 00:00:00.00023688792.610889416290768.4652331
    19
    2024-09-15 00:00:00.00023699882.126722216298394.7186176
    20
    2024-09-16 00:00:00.00023950059.486679116470441.5389535
    35
    2KB
    3s