Query editor
with a0 as (select 318667 as alpha0),a as (select evt_block_time as time,CAST(accrualParameter AS DOUBLE) - COALESCE(LAG(CAST(accrualParameter AS DOUBLE)) over (order by evt_block_time),alpha0 * 1e18) as alphafrom a0, liquity_ethereum.ChickenBondManager_evt_AccrualParameterUpdated),f as (selectevt_block_time as time,bondId,amount / 1e18 as pending,amount * to_unixtime(evt_block_time) / 1e18 as weightedStartTime,1 as coefficient,0 as alphafrom liquity_ethereum.ChickenBondManager_evt_BondCreatedunion allselectevt_block_time as time,bondId,-(lusdAmount / 1e18) as pending,0 as weightedStartTime,-1 as coefficient,0 as alphafrom liquity_ethereum.ChickenBondManager_evt_BondClaimedunion allselectevt_block_time as time,bondId,-(principalLusdAmount / 1e18) as pending,0 as weightedStartTime,-1 as coefficient,0 as alphafrom liquity_ethereum.ChickenBondManager_evt_BondCancelledunion allselecttime,null as bondId,0 as pending,0 as weightedStartTime,0 as coefficient,alpha / 1e18 as alphafrom a),p as (selecttime,pending,alpha,