Query editor
-- frxUSD vs. competitor stablecoins — Daily Active Users (DAU), Ethereum only---- Definition-- For each stablecoin, a "DAU" is a unique wallet that sent OR received that-- token on a given day on Ethereum mainnet. The zero address (mint/burn-- endpoint) is excluded, but the non-zero counterparty IS credited — so mints-- credit the recipient and redeems credit the sender. A wallet active in-- multiple tokens the same day counts once PER token (the comparison is-- per-token, not deduped across tokens).---- Why this definition-- Identical DAU logic to DAU/daily_active_users.sql so the frxUSD line here is-- directly comparable to our headline ecosystem query (minus the multi-chain +-- sfrxUSD parts, which are stripped out for an apples-to-apples, single-chain,-- base-token-vs-base-token race against the competitor set).---- Scope choices-- * Ethereum only — competitors are largely Ethereum-native and cross-chain-- coverage on Dune is uneven (see reference: Fraxtal is not indexed).-- * Base issued token only — sfrxUSD (staked frxUSD) is EXCLUDED. The-- competitor list has no staked-version counterpart, so comparing base-- issued token vs. base issued token keeps the race apples-to-apples. The-- full ecosystem number (with sfrxUSD + all chains) lives in-- DAU/daily_active_users.sql.---- Competitors sourced from DAU/stablecoins.txt.---- Date floor: 2025-01-01. frxUSD launched late 2024, so this captures-- essentially the full token history while staying bounded for credit burn.-- 7d rolling average is well-defined from day 7 of each series.WITH transfers AS (SELECT 'frxUSD' AS token, evt_block_time, "from" AS sender, "to" AS receiverFROM erc20_ethereum.evt_TransferWHERE contract_address = 0xcacd6fd266af91b8aed52accc382b4e165586e29AND evt_block_time >= TIMESTAMP '2026-01-01'UNION ALLSELECT 'PYUSD', evt_block_time, "from", "to"FROM erc20_ethereum.evt_TransferWHERE contract_address = 0x6c3ea9036406852006290770bedfcaba0e23a0e8AND evt_block_time >= TIMESTAMP '2026-01-01'UNION ALLSELECT 'RLUSD', evt_block_time, "from", "to"FROM erc20_ethereum.evt_TransferWHERE contract_address = 0x8292bb45bf1ee4d140127049757c2e0ff06317edAND evt_block_time >= TIMESTAMP '2026-01-01'UNION ALLSELECT 'USDG', evt_block_time, "from", "to"FROM erc20_ethereum.evt_TransferWHERE contract_address = 0xe343167631d89b6ffc58b88d6b7fb0228795491dAND evt_block_time >= TIMESTAMP '2026-01-01'UNION ALLSELECT 'AUSD', evt_block_time, "from", "to"FROM erc20_ethereum.evt_TransferWHERE contract_address = 0x00000000efe302beaa2b3e6e1b18d08d69a9012aAND evt_block_time >= TIMESTAMP '2026-01-01'