Query editor
WITH params AS (SELECT DATE '2026-08-01' start_date,current_date end_date),curve AS (SELECTcoalesce(sum(CAST(bytearray_to_uint256(bytearray_substring(data,33,32)) AS double))/1e18,0) creator,coalesce(sum(CAST(bytearray_to_uint256(bytearray_substring(data,65,32)) AS double))/1e18,0) protocol,coalesce(sum(CAST(bytearray_to_uint256(bytearray_substring(data,97,32)) AS double))/1e18,0) community,coalesce(sum(CAST(bytearray_to_uint256(bytearray_substring(data,129,32)) AS double))/1e18,0) rewardsFROM arc.logs CROSS JOIN params WHERE block_date BETWEEN start_date AND end_dateAND contract_address=0x252bdd768cc44070a84a4b8e86634eae25372571AND topic0=0xcc7e6498356842b6eecbb19e5498fcb206ed052e57d3020c661e8ee822540644),lp AS (SELECTcoalesce(sum(CAST(bytearray_to_uint256(bytearray_substring(data,65,32)) AS double))/1e6,0) creator,coalesce(sum(CAST(bytearray_to_uint256(bytearray_substring(data,97,32)) AS double))/1e6,0) protocol,coalesce(sum(CAST(bytearray_to_uint256(bytearray_substring(data,129,32)) AS double))/1e6,0) community,coalesce(sum(CAST(bytearray_to_uint256(bytearray_substring(data,161,32)) AS double))/1e6,0) rewardsFROM arc.logs CROSS JOIN params WHERE block_date BETWEEN start_date AND end_dateAND contract_address=0x04d6106ceee65a8207da8a77b42a216277530382AND topic0=0x2ecd0efa690c87fe9d622d68980abcf369ffb31905f4f7a8ac0869e5c60f3d95AND varbinary_substring(topic3,13,20)=0x3600000000000000000000000000000000000000)SELECT 'Arc Testnet' network,'2026-08-01 to present (UTC)' date_range,curve.protocol curve_protocol_fees_native_usdc_18,curve.creator curve_creator_fee_earnings_native_usdc_18,curve.community curve_community_vault_fees_native_usdc_18,curve.rewards curve_trader_rewards_allocation_native_usdc_18,lp.protocol lp_protocol_fees_erc20_usdc_6,lp.creator lp_creator_fee_earnings_erc20_usdc_6,lp.community lp_community_vault_fees_erc20_usdc_6,lp.rewards lp_trader_rewards_allocation_erc20_usdc_6,'Fee accrual/allocation events, not claim/payment proof; native 18d and ERC-20 6d remain separate; testnet, not USD' noteFROM curve CROSS JOIN lp