Query editor
-- q_base_pool_topups [Base] panel: counters-- caption: Pool funding via PoolToppedUp events = 0. Will not match the on-chain dust ($0.0127) because the dust wasn't deposited via this event. Honest, framed as event-sum TVL.-- PACT NETWORK | BASE | TVL via PoolToppedUp event sum. 0 today.WITH topups AS (SELECT l.block_time,varbinary_substring(l.topic1, 1, 16) AS slug,varbinary_substring(l.topic2, 13, 20) AS funder,varbinary_to_uint256(varbinary_substring(l.data, 1, 32))/1e6 AS amount_usdcFROM base.logs lWHERE l.contract_address = 0xa3245c40d9c8448eea03847cd2bfdde41f7c14a4AND l.topic0 = 0xdf0a14d61e9af59a5a3462fbd025c140f9e082ad4ca30bc9ee3478980225075eAND l.block_number >= 46880730)SELECTCOALESCE(SUM(amount_usdc), 0) AS total_topped_up_usdc,COALESCE(COUNT(*), 0) AS topup_events,COALESCE(COUNT(DISTINCT funder), 0) AS distinct_funders,COALESCE(COUNT(DISTINCT slug), 0) AS pools_fundedFROM topups