Query editor
-- vltUSDC · 04 — share supply, L/share, fee APR-- L/share starts at exactly 1.0 on the first deposit and rises ONLY on compound, so its-- growth is the price-neutral, IL-free fee return (mirrors the on-chain feeApr()).-- lifetime growth = (L/share − 1) × 100 ← the dApp's "lifetime L/share growth"-- lifetime APR = (L/share − 1) / years_since_inception × 10000 bps-- 7d / 30d = (L/share ÷ L/share_n_days_ago − 1) × (365/n) × 10000 bps-- growth and lifetime APR are the SAME quantity, one annualized: over a 22-day life a 1.28%-- growth is a ~21% APR. If they ever disagree by orders of magnitude, one of them is wrong.-- Emitted BOTH ways: *_apr_bps mirrors the contract's feeApr(), which returns basis points;-- *_apr_pct is the same figure /100, matching how the dApp renders it (aprPct() in-- vltUSDC.js shows bps/100 to one decimal, prefixed "~"). The dashboard counters use pct.-- NOTE: d30 reads 0 until the vault has 30 days of history (launched 2026-07-22).-- Rows are NEWEST FIRST so counter tiles read row 1; charts set sort_x and re-sort by date.-- Params: {{vault_address}} (text, 0x-prefixed).WITH params AS (SELECT FROM_HEX(SUBSTR(LOWER('{{vault_address}}'), 3)) AS vault),pool AS (SELECT id AS pool_idFROM uniswap_v4_ethereum.PoolManager_evt_InitializeWHERE currency0 = 0x6b785a0322126826d8226d77e173d75dafb84d11AND currency1 = 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48AND fee = 10000 AND "tickSpacing" = 200AND hooks = 0x0000000000000000000000000000000000000000),supply_daily AS (SELECT CAST(t.evt_block_time AS DATE) AS day,SUM(CASE WHEN t."from" = 0x0000000000000000000000000000000000000000 THEN CAST(t.value AS DOUBLE)WHEN t."to" = 0x0000000000000000000000000000000000000000 THEN -CAST(t.value AS DOUBLE)ELSE 0 END) AS d_supplyFROM erc20_ethereum.evt_Transfer tCROSS JOIN paramsWHERE t.contract_address = params.vaultGROUP BY 1),liq_daily AS (SELECT CAST(ml.evt_block_time AS DATE) AS day,SUM(CAST(ml."liquidityDelta" AS DOUBLE)) AS dlFROM uniswap_v4_ethereum.PoolManager_evt_ModifyLiquidity mlJOIN pool ON ml.id = pool.pool_idCROSS JOIN paramsWHERE ml.sender = params.vaultGROUP BY 1),spine AS (SELECT t.dayFROM (SELECT CAST(MIN(day) AS DATE) AS d0 FROM supply_daily) bCROSS JOIN UNNEST(SEQUENCE(b.d0, CURRENT_DATE, INTERVAL '1' DAY)) AS t(day)),series AS (SELECT s.day,SUM(COALESCE(sd.d_supply, 0)) OVER (ORDER BY s.day) AS total_supply,SUM(COALESCE(l.dl, 0)) OVER (ORDER BY s.day) AS position_l,MIN(s.day) OVER () AS inception_dayFROM spine sLEFT JOIN supply_daily sd ON sd.day = s.dayLEFT JOIN liq_daily l ON l.day = s.day),ratio AS (