Query editor
with d as (select max(day) as d from dune.ether_fi.result_etherfi_assets_under_management),tvl as (select token_supply_usd as tvl_usdfrom dune.ether_fi.result_etherfi_protocol_token_tvlwhere strategy_symbol = 'liquidUSD'and day = (select max(day) from dune.ether_fi.result_etherfi_protocol_token_tvl)),pos as (selecttoken_symbol as position,blockchain,casewhen token_symbol like 'Sentora%' then 'Sentora (Morpho V2 curator)'when token_symbol like 'Steakhouse%' then 'Steakhouse (Morpho V2 curator)'when token_symbol = 'liquidRWA' then 'Midas (Liquid RWA, internal)'else 'Idle stablecoins'end as manager,casewhen token_symbol like 'Sentora%' or token_symbol like 'Steakhouse%' then 'Curated lending (kpk lane)'when token_symbol = 'liquidRWA' then 'RWA'else 'Liquidity buffer'end as lane,sum(token_balance_usd) as usdfrom dune.ether_fi.result_etherfi_assets_under_managementwhere day = (select d from d)and parent_symbol = 'liquidUSD'group by 1, 2, 3, 4having sum(token_balance_usd) > 1000),labelled as (select sum(usd) as usd from pos)select position, blockchain, manager, lane, usd, usd / (select tvl_usd from tvl) as share_of_tvlfrom posunion allselect'Unlabelled by ether.fi (Hastra PRIME, Pendle siUSD YT/LP, Midas mGLO, Avant savUSD, other)' as position,'ethereum' as blockchain,'Other managers / structured yield' as manager,'Higher risk / structured' as lane,(select tvl_usd from tvl) - (select usd from labelled) as usd,1 - (select usd from labelled) / (select tvl_usd from tvl) as share_of_tvlorder by usd desc