Query editor
-- Query 13: Bridging USDC to Chains with Native Circle Issuance-- Section 4B (Why Stablecoins?) — are users bridging when native issuance exists?---- Approach:-- Circle issues USDC natively on Base, Arbitrum, Optimism, Polygon, Avalanche,-- and several others. Users *could* acquire USDC natively on these chains-- (via on-ramp, CEX withdrawal, or Circle Mint). Yet many still bridge.-- This query measures how much USDC is being bridged TO these native-issuance-- chains, broken down by bridge protocol.---- Methodology:-- - Filter to USDC variants only (USDC, USDC.e, USDbC)-- - Destination chains with native Circle USDC: Base, Arbitrum, Optimism,-- Polygon, Avalanche (avalanche_c in Dune)-- - Monthly breakdown to show trend-- - CCTP vs other bridges — CCTP delivers native USDC, others deliver-- wrapped/bridged USDC, which is a key distinction for the thesis---- Chart: Line chart (monthly USDC bridge volume to native chains),-- Stacked bar (CCTP vs non-CCTP to each chain)-- FIX: tokens.erc20 contains duplicate rows per token (same contract_address + blockchain-- with slightly different metadata). Joining bridges_evms.flows directly against tokens.erc20-- causes a fan-out join, multiplying each bridge row by the number of duplicates and inflating-- COUNT(*), SUM(amount_usd), AVG(), and APPROX_PERCENTILE(). Deduplicating into a CTE first-- ensures a 1:1 join so each bridge transaction is counted exactly once.WITH usdc_tokens AS (SELECT DISTINCT contract_address, blockchainFROM tokens.erc20WHERE symbol IN ('USDC', 'USDC.e', 'USDbC')),usdc_to_native_chains AS (SELECTDATE_TRUNC('month', b.deposit_block_date) AS month,b.withdrawal_chain,b.bridge_name,b.amount_usdFROM bridges_evms.flows bINNER JOIN usdc_tokens tON b.deposit_token_address = t.contract_addressAND b.deposit_chain = t.blockchainWHERE b.deposit_block_date >= DATE_TRUNC('month', CURRENT_DATE - INTERVAL '12' MONTH)AND b.amount_usd > 0AND b.bridge_name != 'Agglayer'AND b.withdrawal_chain IN ('base', 'arbitrum', 'optimism', 'polygon', 'avalanche_c'))SELECTmonth,withdrawal_chain,CASEWHEN bridge_name = 'CCTP' THEN 'CCTP (native)'ELSE 'Other bridges (wrapped/pooled)'END AS bridge_type,SUM(amount_usd) AS volume_usd,COUNT(*) AS tx_countFROM usdc_to_native_chainsGROUP BY 1, 2, 3ORDER BY month, withdrawal_chain, bridge_type