adriaparcerisasflow defi tvl by protocol 2
    Updated 1 day ago
    select
    x.protocol,
    case when x.protocol ilike '%more markets%' then avg(chain_tvl)+15000000 else avg(chain_tvl) end as tvl
    --sum(volume) as dex_volume,
    --sum(dex_volume) over (order by week) as total_dex_volume
    from external.defillama.fact_protocol_tvl x
    --join external.defillama.fact_dex_volume y on lower(x.chain)=y.chain and x.date=y.date
    where x.chain ilike '%Flow%' and trunc(date,'week')=trunc(current_date,'week')-7
    group by 1 order by 2 desc


    Last run: 1 day ago
    PROTOCOL
    TVL
    1
    MORE Markets28411051.642857
    2
    KittyPunch StableKitty22063611.428571
    3
    Increment Swap12576574
    4
    Ankr11815498.714286
    5
    KittyPunch PunchSwap9750820.571429
    6
    KittyPunch PunchSwap V37257706.428571
    7
    Increment Liquid Staking3191848.285714
    8
    Increment Lending1435864.214286
    9
    Sturdy V21071946.5
    10
    Trado Spot736747.857143
    11
    Trado Perpetual304347.571429
    12
    Fixes frc2024413.714286
    13
    Fixes frc20 Staking23590.714286
    14
    Fixes Launchpad1100.285714
    14
    479B
    2s