Query editor
with events as (selectdate_trunc('hour', call_block_time) as time,sum(output_0/1e18) as assets_sum,sum(shares/1e18) as shares_sumfrom usdai_arbitrum.stakedusdai_call_converttoassetswherecontract_address = 0x0B2b2B2076d95dda7817e785989fE353fe955ef9 andshares > 0group by 1), rate as (select*,assets_sum/shares_sum as ratefrom eventswhere shares_sum > 0 andtime >= timestamp '2025-01-01'), add_lag as (select*,lag(rate, 1) over (order by time) as rate_lagfrom rate)selecttime,ratefrom add_lagwhere rate_lag < rate