Query editor
-- q_sol_insured_calls [Solana] panel: bar (daily) + line (cumulative) + growth-- caption: Premium-bearing calls per day (cumulative + day-over-day growth). This is a LOWER BOUND on the true 41 — fully-refunded/net-zero calls move no premium USDC and are invisible. Growth on n~41 is noise.-- PACT NETWORK | SOLANA | Insured Call Volume + growth-- PROXY: one insured call ~= one premium-in leg. LOWER BOUND on 41 (fully-refunded/net-zero calls invisible).WITH pact_txs AS (SELECT DISTINCT tx_id FROM solana.instruction_callsWHERE executing_account = '5bCJcdWdKLJ7arrMVMFh3z99rQDxV785fnD9XGcr3xwc'),pact_usdc_legs AS (SELECT t.block_time, t.from_owner, t.to_ownerFROM tokens_solana.transfers t JOIN pact_txs p ON p.tx_id = t.tx_idWHERE t.token_mint_address = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'AND t.action IN ('transfer','transferChecked')AND t.from_owner IS NOT NULL AND t.to_owner IS NOT NULL),pool_owners AS (SELECT to_owner AS owner FROM pact_usdc_legs INTERSECT SELECT from_owner AS owner FROM pact_usdc_legs),insured_calls AS (SELECT block_time FROM pact_usdc_legsWHERE to_owner IN (SELECT owner FROM pool_owners) AND from_owner NOT IN (SELECT owner FROM pool_owners)),daily AS (SELECT date_trunc('day', block_time) AS day, COUNT(*) AS calls_day FROM insured_calls GROUP BY 1)SELECT day, calls_day,SUM(calls_day) OVER (ORDER BY day) AS calls_cumulative,100.0 * (calls_day - LAG(calls_day) OVER (ORDER BY day)) / NULLIF(LAG(calls_day) OVER (ORDER BY day), 0) AS growth_pct_dodFROM daily ORDER BY day