Query editor
-- Query: kpk | Symbiotic | USDC RWA Liquidity | Atomic Liquidity-- Dune: https://dune.com/queries/8286786-- Version: 8-- Share of TVL that can be withdrawn instantly, for KPK USDC RWA Liquidity and its-- Liquid Lane peer Keyrock Flagship USDC (same Symbiotic VaultV2 implementation).---- atomic_liquidity = withdrawable_usdc / total_assets_usdc, capped at 1---- withdrawable_usdc = idle USDC held by the vault-- + Aave V3 position (aEthUSDC, 1:1 redeemable) [KPK only]-- + SUM over nested Morpho V2 vault positions of-- LEAST(position value, that nested vault's own instant liquidity)---- A nested vault's instant liquidity is an absolute USDC amount, not a ratio: its idle-- assets plus, per Morpho market it supplies to, LEAST(its supply, cash left in the-- market). A $1M position in a $20M vault that is 30% liquid can be exited in full,-- because $6M is available; scaling the position by 30% would understate it.---- Anything not counted above (KPK's Liquid Lane RWA sleeve, Keyrock's Pendle PT leg) is-- implicitly 0% liquid, because the denominator is total vault TVL.---- Sources-- - total_assets_usdc: dune.kpk.symbiotic_usdc_rwa_metrics (totalAssets(), sampled daily).-- - Positions: net ERC-20 balances of each vault / adapter from erc20_ethereum.evt_transfer.-- Scan floor 2026-07-01: every address filtered here was created on or after-- 2026-07-21 (the YO adapter 2026-10-19), so no earlier transfer can match. Lower it if an older address is added.-- - Nested vault share price and idle assets: dune.kpk.morpho_v2_vault_daily_apy for the-- four Morpho V2 vaults (three KPK USDC vaults and YO Ecosystem). kUSDC is not in that table, so its share price is assets/shares of-- its ERC-4626 Deposit/Withdraw events (morpho_v2_ethereum.vaultv2_evt_*), last event of-- the day, forward-filled; its idle is 0 because a liquidity adapter routes idle assets-- straight into a market.-- - Market cash: dune.morpho.result_morpho_interactions_multichain_all_chains, cumulative-- supply minus borrow per market (all suppliers) and the nested vault's own cumulative-- supply, keyed on its MorphoMarketV1Adapter address (usr). Interest does not move cash,-- so flow-based sums are exact for what a market can pay out.---- Nested vaults: KPK USDC Prime (0x4ef53d2c...), KPK USDC Yield (0xd5cce260...) and KPK-- USDC Yield RWA (0x7a72bcd2...) through KPK's adapters, and YO Ecosystem (0x355a1c6a...,-- MorphoMarketV1Adapter 0xcad2496a...) through the YO adapter 0x637b1cf2...; Keyrock USDC "kUSDC"-- (0x04422053..., Morpho V2, Keyrock-curated) through Keyrock's ERC-4626 adapter-- 0x37cf0f8f.... Keyrock's other adapter (0x037356ac..., Pendle PT) has held nothing since-- 2026-07-24 and falls under the implicit-0% rule.---- The numerator is end-of-day and the denominator an intraday sample, so a same-day-- deposit can push the raw ratio slightly above 1; the cap absorbs that. Clearstar-- Warehouse USDC, the APY chart's other peer, is left out: $51 of TVL.---- Chart colours (references/kpk-brand-colors.md competitor palette):-- KPK USDC RWA Liquidity #DC5C39 (terracotta-600)-- Keyrock Flagship USDC #ABD2ED (blue-400)WITH params AS (SELECTDATE '2026-07-27' AS start_date, -- KPK vault's first depositCURRENT_DATE AS end_date),vaults AS (SELECT * FROM (VALUES