tkvresearchclean-apricot
    Updated 2025-04-08
    select *
    from
    (select projects,
    avg_apy,
    rank() over (order by avg_apy desc) as ranking
    from
    (select projects,
    avg(apy) as avg_apy
    from
    (select
    --distinct symbol,
    PROJECTS,
    tvl_usd,
    apy
    from external.defillama.fact_pool_yields
    where --projects = 'pendle'
    --and
    symbol not like '%-%'
    and
    symbol not like '%+%'
    and
    symbol like '%BTC%'
    and
    symbol != 'GMUSDC(WBTC)'
    and symbol != 'BTCUSD'
    and projects not in ('dolomite','across','wing-finance','thorchain','stream-finance','yearn-finance')
    and date = current_date() - 1
    )
    where apy < 100 and TVL_USD > 1000000
    group by 1
    order by 2 desc ))
    where ranking between 1 and 10
    Last run: 2 months ago
    PROJECTS
    AVG_APY
    RANKING
    1
    indigo171
    2
    umami-finance112
    3
    ribbon8.904843
    4
    strike5.138524
    5
    kiloex4.3855
    6
    sturdy-v22.995286
    7
    pendle2.9292717867
    8
    crosscurve-(by-eywa)2.900728
    9
    folks-finance-xchain2.872679
    10
    beefy2.6994310
    10
    241B
    2s