Query editor
-- @title: Steakhouse Prime EUR vaults (EURCV / EURC) — organic APY, 7d avg (7m) v4-- @description: 7-day trailing average of daily organic (native, ex-rewards) supply APY for the three Steakhouse Prime EUR Vault V2s on Morpho, one series per vault. EURC ETH is shown from 2026-04-28 only.-- @author: Romana / Steakhouse Financial-- @notes: v4 of 8795940. Change: EURC ETH daily data before 2026-04-28 is excluded, which removes the two short April utilisation squeezes in WBTC/EURC and wstETH/EURC on Mainnet (7d-average peaks 6.7% on 2026-04-07 and 4.1% on 2026-04-24; causes: kpk vault withdrawals 31 Mar–4 Apr, post-KelpDAO withdrawals 19–22 Apr). 2026-04-28 is the day the Prime vaults switched from the V1-vault adapter to direct market allocation. For EURC ETH the trailing average uses the days available since 2026-04-28 (1 to 7 days) for its first six points, then a full 7 days; EURC BASE and EURCV ETH always use a full 7-day window. This is a presentation choice — disclose it wherever the chart is published. Window 7 months. vault_type = 'v2' also excludes 'dedupe' rows. supply_rate is already annualised — do NOT multiply by 365. Current partial day excluded. Floor supply_usd > 1k.-- @version: 4with vaults (blockchain, vault_address, vault_label, sort_order, series_start) as (values('ethereum', 0xbeef0c075da5d01112ae5cf34d257074fb5ddb2f, 'EURCV ETH', 1, date '2000-01-01'), ('base', 0xbeef009f28ccf367444a9f79096862920e025dc1, 'EURC BASE', 2, date '2000-01-01'), ('ethereum', 0xbeef003e31546c7210687f1a7b40d096be83ec58, 'EURC ETH', 3, date '2026-04-28')), daily as (selectd.dt, v.vault_label, v.sort_order, v.series_start, max(d.supply_rate) as supply_rate, max(d.supply_index) as supply_index, max(d.supply_usd) as supply_usdfrom dune.steakhouse.result_morpho_vaults_data_union as dinner join vaults as von v.vault_address = d.vault_addressand v.blockchain = d.blockchainwhere d.vault_type = 'v2'and d.dt >= current_date - interval '7' month - interval '7' dayand d.dt >= v.series_startand d.dt < current_dateand is_finite(d.supply_rate)and is_finite(d.supply_index)group by 1, 2, 3, 4), apy as (selectdt, vault_label, sort_order, supply_usd, supply_rate as organic_apy, casewhen count(*) over (partition by vault_label order by dt rows between 6 preceding and current row) = 7or series_start > date '2000-01-01'then avg(supply_rate) over (partition by vault_label order by dt rows between 6 preceding and current row)end as organic_apy_7d_avg, (supply_index / lag(supply_index, 7) over (partition by vault_label order by dt) - 1) * 365.0 / 7.0 as realized_apy_7dfrom dailywhere supply_usd > 1000)selectdt, vault_label, organic_apy_7d_avg, organic_apy, realized_apy_7d, supply_usdfrom apy