Query editor
-- MetaMask Wallet Revenue (Solana) — swap/bridge fees taken in the wallet.---- Created 2026-07-29. MetaMask was absent from our coverage despite Wallets-- being a category we chart (Phantom, Solflare, Backpack, Binance Wallet).---- Method mirrors DefiLlama's fees/metamask.ts Solana path: everything received-- by MetaMask's two Solana fee wallets, all tokens (their getSolanaReceived-- call passes no `mints` filter, so fees taken in arbitrary swap tokens count).-- Their declared Solana start is 2025-08-12.---- Deviation from DefiLlama, deliberate: wallet-to-wallet transfers between the-- two fee addresses are excluded. Sweeping funds between your own wallets is-- not revenue, and this exact defect is what inflated other adapters. Written-- NULL-safe because `NOT IN` against a NULL from_owner would silently drop-- legitimate rows.---- NOT YET VALIDATED — Dune execution credits were exhausted when this was-- written, so it has never been run. Before trusting it:-- 1. Execute and compare monthly against DefiLlama's Solana breakdown-- (totalDataChartBreakdown -> ['Solana'], NOT totalDataChart, which is-- all-chain). Reference values, DefiLlama, Solana only:-- 2026-02 $32,476 | 2026-03 $22,907 | 2026-04 $5,294-- 2026-05 $975 | 2026-06 $155,520 | 2026-07 $241,782 (partial)-- 2. Break the result down by token. Fees arrive in arbitrary swap tokens,-- so a single mispriced or illiquid mint can dominate a month.-- 3. Sanity-check the near-zero Apr/May 2026 months. DefiLlama's Solana-- series also starts only at 2026-02 despite the 2025-08-12 adapter-- start, so their history here is likely backfill-incomplete — the same-- problem proven on dex-screener, where their pre-June figures were-- 1.45-4.90x below the true on-chain values.WITH targets AS (SELECT * FROM (VALUES('47YRE7eLAdYzvGqSH1XLg2o8xUtywk7sS5BKv1oR4Y7i'),('HbBHuvgWoChfztoqz2izLRF5mSoLKQXfU68kueBmhcmL'),-- 2026-10-31: MetaMask moved its Solana swap fees back to these two (its own-- pre-Aug-2025 wallets) at 15:39 UTC on 30 Sep 2026; the pair above swept-- into them daily until then. Same 0.875% fee, same routes.('4cLUBQKZgCv2AqGXbh8ncGhrDRcicUe3WSDzjgPY2oTA'),('8ZCzZnSxhbZp2oBGYYUeXMwqHCsAweXdgvyqNrAzGHWV')) AS t(address))SELECTdate_trunc('month', tr.block_time) AS month,ROUND(SUM(tr.amount_usd), 2) AS revenue_usdFROM tokens_solana.transfers trWHERE tr.to_owner IN (SELECT address FROM targets)AND COALESCE(tr.from_owner, '') NOT IN (SELECT address FROM targets)-- 2026-10-31: the fee wallets' own swaps (the daily sweeps) pay pool proceeds-- straight into a target, so from_owner does not catch them; drop what they sign.AND COALESCE(tr.tx_signer, '') NOT IN (SELECT address FROM targets)AND tr.block_date >= CAST(date_trunc('month', current_timestamp) - interval '2' month AS date)AND tr.block_time >= date_trunc('month', current_timestamp) - interval '2' monthAND tr.block_date < CAST(date_trunc('month', current_timestamp) AS date)AND tr.block_time < date_trunc('month', current_timestamp)AND tr.amount_usd > 0GROUP BY 1UNION ALL