Query editor
-- Dolomite ETH Borrow Rate Hourly — March 2026-- Source: arbitrum.logs LogIndexUpdate (not decoded on Dune)-- ETH = market_id 0WITH hourly_hex AS (SELECTdate_trunc('hour', block_time) as ts_hour,max_by(to_hex(data), block_time) as eod_hexFROM arbitrum.logsWHERE contract_address = 0x6bd780e7fdf01d77e4d475c821f1e7ae05409072AND topic0 = 0xf4626fd1187f91e6761ffb8a6ac3e8d9235a4a92da54e43feb0c57c4a4a322abAND topic1 = 0x0000000000000000000000000000000000000000000000000000000000000000AND block_time >= TIMESTAMP '2026-03-01'AND block_time < TIMESTAMP '2026-03-11'GROUP BY 1),decoded AS (SELECTts_hour,from_base(ltrim(substr(eod_hex, 1, 64), '0'), 16) / 1e18 AS borrow_indexFROM hourly_hex),with_rates AS (SELECTts_hour,borrow_index,(borrow_index - LAG(borrow_index) OVER (ORDER BY ts_hour))/ NULLIF(LAG(borrow_index) OVER (ORDER BY ts_hour), 0) AS hourly_borrow_rateFROM decoded)SELECTts_hour,borrow_index,COALESCE(hourly_borrow_rate, 0) AS hourly_borrow_rate,COALESCE(hourly_borrow_rate * 8760, 0) AS borrow_aprFROM with_ratesORDER BY ts_hour