Query editor
-- Decrypt Information Exchange — all fee events (history matview + recent matview, de-duplicated)-- fee_usd is Decrypt's NET fee. Article plugin (Jupiter referral) fees sit gross in the referral fee token accounts;-- Jupiter's referral program splits 80% to the partner / 20% to Jupiter when they are claimed (verified on other-- partners' claim transactions, 2026-11-20). So article plugin fees are counted at 80%; fee_usd_gross keeps the raw amount.WITH e AS (SELECT * FROM dune.ilanhz.result_decrypt_ix_fee_events_recentUNION ALLSELECT h.* FROM dune.ilanhz.result_decrypt_ix_fee_events_history hWHERE h.tx_id NOT IN (SELECT tx_id FROM dune.ilanhz.result_decrypt_ix_fee_events_recent))SELECTblock_date, block_time, tx_id, event_type, swap_channel, wallet, tx_signer, fee_program, fee_symbol, fee_amount,fee_usd * CASE WHEN swap_channel = 'Article plugin' THEN 0.8 ELSE 1 END AS fee_usd,notional_usd, is_internal,fee_usd AS fee_usd_grossFROM e