Query editor
-- Kinetic isolated FXRP market: USD₮0 borrow rate (borrow USD₮0 against FXRP), 6-hour buckets, from 2026-11-01.-- Market isoUSDT0 0xad7e7989… under the FXRP isolated comptroller 0x15f69897….-- Source: raw AccrueInterest(cashPrior, interestAccumulated, borrowIndex, totalBorrows) logs; the isolated-- markets are not in the decoded kinetic_flare tables.-- Between two consecutive accruals Compound charges one constant per-second rate, so-- rate_per_sec = (borrowIndex_t / borrowIndex_prev - 1) / seconds_between-- is the exact rate that was in effect (= the spot rate the app showed). Each 6h point is the-- time-weighted average of those rates, shown as APY = exp(rate_per_sec * 31,536,000) - 1.-- Interval assigned to the bucket of its closing event.-- avg_7d_pct = trailing 7-day time-weighted average (uses October data for the first week);-- period_avg_pct = average since 2026-11-01.with l as (select block_time as t,cast(bytearray_to_uint256(bytearray_substring(data, 1, 32)) as double) as cash,cast(bytearray_to_uint256(bytearray_substring(data, 65, 32)) as double) as bi,cast(bytearray_to_uint256(bytearray_substring(data, 97, 32)) as double) as tbfrom flare.logswhere contract_address = 0xad7e7989796414c9572da9854deb1b920724fd09and topic0 = 0x4dec04e750ca11537cabcd8a9eab06494de08da3735bc8871cd41250e190bc04and block_date >= date '2026-10-24'),iv as (select t,tb / (tb + cash) as util,date_diff('second', lag(t) over (order by t), t) as dt,(bi / lag(bi) over (order by t) - 1)/ nullif(date_diff('second', lag(t) over (order by t), t), 0) as rpsfrom l),b as (select date_trunc('hour', t) - interval '1' hour * (hour(t) % 6) as bucket,sum(rps * dt) as rps_dt, sum(dt) as dt, avg(util) as utilfrom ivwhere dt > 0 and rps is not nullgroup by 1),s as (select bucket, util,rps_dt / dt as rps,sum(rps_dt) over (order by bucket range between interval '7' day preceding and current row)/ sum(dt) over (order by bucket range between interval '7' day preceding and current row) as rps_7dfrom b),w as (select * from s where bucket >= timestamp '2026-11-01 00:00:00')select bucket as time,100 * (exp(rps * 31536000) - 1) as borrow_apy_pct,100 * (exp(rps_7d * 31536000) - 1) as avg_7d_pct,100 * (exp(avg(rps) over () * 31536000) - 1) as period_avg_pct,100 * util as utilization_pctfrom worder by 1