Query editor
-- Q5: Daily mintToTreasury per reserve (settlement basis)-- This is the ACTUAL revenue Aave DAO received, in native underlying tokens-- Compare against Q3's accrual NII to find the settlement gapWITH reserve_mapping AS (SELECT DISTINCT asset AS reserve, aToken AS atokenFROM aave_v3_ethereum.poolconfigurator_evt_reserveinitialized),daily_treasury_mints AS (SELECTcontract_address AS atoken,date_trunc('day', call_block_time) AS day,SUM(CAST(amount AS DOUBLE)) AS daily_mint_amount_nativeFROM aave_v3_ethereum.atoken_call_minttotreasuryWHERE call_success = trueAND call_block_date >= DATE '2023-01-01'AND call_block_date < DATE '2026-07-01'GROUP BY 1, 2)SELECTm.reserve,d.day,d.daily_mint_amount_native AS treasury_mint_nativeFROM daily_treasury_mints dJOIN reserve_mapping m ON m.atoken = d.atokenORDER BY m.reserve, d.day;