Query editor
selectday,blockchain,name,utilisation as utilisation,available_amount_cumulative_usd,borrow_amount_cumulative_usd,case when SupplyCap = 0 then 0else SupplyCap - supplied_amount_cumulative end as supply_cap_available,case when BorrowCap = 0 then 0else BorrowCap - supplied_amount_cumulative end as borrow_cap_available,case when SupplyCap = 0 then 0else supplied_amount_cumulative / SupplyCap end as supply_cap_perc,case when BorrowCap = 0 then 0else borrow_amount_cumulative / BorrowCap end as borrow_cap_perc,case when SupplyCap = 0 then 0else 1 - supplied_amount_cumulative / SupplyCap end as supply_cap_available_perc,case when BorrowCap = 0 then 0else 1 - borrow_amount_cumulative / BorrowCap end as borrow_available_cap_perc,case when SupplyCap = 0 then 1 else 0 end as no_supply_cap,case when BorrowCap = 0 then 1 else 0 end as no_borrow_capfrom query_4455971where 1 = 1and borrow_amount_cumulative > 0and available_amount_cumulative > 0and BorrowCap - supplied_amount_cumulative > 1000and day = (select max(day) from dune.pibbles.result_euler_finance_index)and blockchain in (selectblockchainfrom unnest(split('{{blockchain}}', ',')) as c(blockchain))order by day desc, tvl_rank desc