hessDaily TVL [USD] (Including Borrow and Liquid Staking)
    Updated 2025-03-05
    with tvl as (select date,
    chain_tvl as tvl_usd
    from external.defillama.fact_protocol_tvl
    where chain in ('Sei','Sei-borrowed')
    )
    ,
    tvl_i as ( select date,
    tvl_usd as tvl
    from external.defillama.fact_chain_tvl
    where date < '2024-05-30'
    and chain = 'Sei'
    UNION
    select date,
    sum(tvl_usd) as tvl
    from tvl
    group by 1
    )
    ,
    price as ( select hour::date as day,
    avg(price) as avg_price
    from crosschain.price.ez_prices_hourly
    where token_address in ('ibc/71F11BC0AF8E526B80E44172EBA9D3F0A8E03950BB882325435691EBC9450B1D')
    group by 1)

    select date,
    tvl as "TVL (USD)",
    tvl/avg_price as "TVL (Sei)"
    from tvl_i a join price b on a.date = b.day
    where a.date >= '{{Start}}' and a.date <= '{{End}}'

    Last run: about 2 months ago
    DATE
    TVL (USD)
    TVL (Sei)
    1
    2024-05-28 00:00:00.0004157099856020125.7657127
    2
    2024-05-22 00:00:00.0004291023157824845.515034
    3
    2024-05-17 00:00:00.0004262523357440788.7309515
    4
    2024-06-22 00:00:00.00089549587120674974.558168
    5
    2024-06-08 00:00:00.0006239609784083552.7025262
    6
    2024-05-14 00:00:00.0003731837950289393.7006885
    7
    2024-05-24 00:00:00.0003884807552350777.0310408
    8
    2024-06-16 00:00:00.00074358333100203588.241705
    9
    2024-06-24 00:00:00.00093471855125960533.17398
    10
    2024-07-01 00:00:00.000273261902368241486.93803
    11
    2024-06-05 00:00:00.0004579271761709217.697725
    12
    2024-06-18 00:00:00.0007070129395275444.81031
    13
    2024-06-21 00:00:00.00085331918114991340.313492
    14
    2024-05-16 00:00:00.0004275816957619930.242993
    15
    2024-06-06 00:00:00.0005273807271068619.186896
    16
    2024-05-21 00:00:00.0004376188158972509.5693915
    17
    2024-06-03 00:00:00.0003336084944956316.8204658
    18
    2024-05-07 00:00:00.0004242407157169707.4223122
    19
    2024-06-14 00:00:00.0007267410797933963.8189794
    20
    2024-06-30 00:00:00.000259610801349845575.565865
    62
    3KB
    14s