Query editor
-- FIRE pool — Daily & Cumulative Collected Fees (USD)-- Backs the cumulative area chart + daily column chart on dune.com/flare/fire.---- Scope: all four FIRE / MEV streams from query_7785689 (sorts 1-4):-- sort 1 FIRE - FDC FLR -> 0x0ce6831DF00A6018c4d316009980DbAa6c44E525-- sort 2 FIRE - FassetMintingFee FXRP -> 0xF55bcAd5568d1584ab6f013f144e1e433Ee551C7-- sort 3 FIRE - Tags FLR -> 0x889A02c0E6d92e77188aDe03e3ce15B73228C197-- sort 4 FIRE - FassetRedemption FXRP -> 0x6E815bB968e32f91C7e273b9e1CDAE2825Bf8F3a---- 2026-09-01: sort 2 renamed from 'FIRE - MintingFee' to 'FIRE - FassetMintingFee', and-- sort 4 FIRE - FassetRedemption added (the wallet previously sat in section 4 of the-- Flare Fees board as the pending 'Redeem - Add' row). That collector received its first-- fee on 2026-09-01 (first FXRP mint 12:35 UTC) and has received FXRP every day since,-- one small mint per redemption, so its series is live from 2026-09-01.---- FDC went live on 2026-08-18. Its income arrives as RewardManager claims credited to-- the collector, so it is read from the RewardClaimed event rather than from transfers-- (this also catches wrapped/WNAT claims, which leave no native trace). Deliberately-- excluded: a 500 FLR EOA top-up and a 1 FLR test withdrawal on the same day.---- Timing caveat: a claim settles many reward epochs at once, so the FDC series is-- dated on the CLAIM day, not the days the rewards accrued. The first claim covered-- reward epochs 417-424 (~28 days of accrual) and therefore lands as one step.-- Per-epoch attribution lives in the "FIRE-FDC reward-epoch timeline" table.---- Pricing: latest spot price applied to historic token amounts, same as the-- snapshot cards. The curve therefore reflects fee inflow, not price moves, and-- the final cumulative_usd ties out to the "FIRE / MEV Total USD" counter.WITHfxrp_price AS (SELECT priceFROM prices.usd_latestWHERE blockchain = 'bnb'AND contract_address = 0x1d2f0da169ceb9fc7b3144628db156f3f6c60dbe),wflr_price AS (SELECT priceFROM prices.usd_latestWHERE blockchain = 'flare'AND contract_address = 0x1d80c49bbbcd1c0911346656b529df9e5c2f783d),daily_by_stream AS (-- sort 1: FIRE - FDC (RewardManager claims credited to the collector)SELECT 'FIRE - FDC' AS stream,evt_block_date AS day,(SELECT price FROM wflr_price) * SUM(CAST("amount" AS DOUBLE)) / 1e18 AS usdFROM flareprotocol_flare.rewardmanager_evt_rewardclaimedWHERE evt_block_date >= DATE '2023-07-01'AND "recipient" = 0x0ce6831DF00A6018c4d316009980DbAa6c44E525GROUP BY 2UNION ALL-- sort 2: FIRE - FassetMintingFee (FXRP)SELECT 'FIRE - FassetMintingFee',evt_block_date,(SELECT price FROM fxrp_price) * SUM(CAST(value AS DOUBLE)) / 1e6FROM erc20_flare.evt_transferWHERE evt_block_date >= DATE '2023-07-01'AND "to" = 0xF55bcAd5568d1584ab6f013f144e1e433Ee551C7AND contract_address = 0xad552a648c74d49e10027ab8a618a3ad4901c5be