Query editor
-- @title Steakhouse High Yield USDC V2 (Base) — 7d net APY, 6 months to 18 Sep 2026-- @description Daily 7-day trailing net APY for Steakhouse High Yield USDC V2 on Base (0xbeeff7ae…8100), the-- user-facing vault. V2-only version of query 8798640. Fixed window 22 Mar – 18 Sep 2026.-- @author Romana (Steakhouse Financial)-- @notes Share price = assets/shares from the vault's own Deposit/Withdraw events (net of fee dilution), last mark-- per day, forward-filled. APY_7d = (p_t / p_{t-7})^(365/7) − 1. Days from 19 Sep onward excluded on request.-- @version 1.0with vault as (select 0xbeeff7ae5e00aae3db302e4b0d8c883810a58100 as vault_address, 'Steakhouse High Yield USDC (V2)' as vault_name), calendar as (select dayfrom unnest(sequence(date '2026-03-15', date '2026-09-18', interval '1' day)) as t(day)), px_events as (select e.evt_block_time, cast(e.assets as double) / cast(e.shares as double) as pxfrom morpho_v2_base.vaultv2_evt_deposit ewhere e.contract_address = (select vault_address from vault)and e.evt_block_time >= timestamp '2026-03-14' and e.evt_block_time < timestamp '2026-09-19'and cast(e.shares as double) > 0union allselect e.evt_block_time, cast(e.assets as double) / cast(e.shares as double)from morpho_v2_base.vaultv2_evt_withdraw ewhere e.contract_address = (select vault_address from vault)and e.evt_block_time >= timestamp '2026-03-14' and e.evt_block_time < timestamp '2026-09-19'and cast(e.shares as double) > 0), px_daily as (select cast(date_trunc('day', evt_block_time) as date) as day, max_by(px, evt_block_time) as pxfrom px_eventsgroup by 1), filled as (select c.day, last_value(p.px) ignore nulls over (order by c.day rows between unbounded preceding and current row) as pxfrom calendar cleft join px_daily p on p.day = c.day), lagged as (select day, px, lag(px, 7) over (order by day) as px_7d_agofrom filled)select day, (select vault_name from vault) as vault_name, case when px_7d_ago > 0 and px > 0 then power(px / px_7d_ago, 365.0 / 7) - 1 end as apy_7dfrom laggedwhere day between date '2026-03-22' and date '2026-09-18'order by day desc