Query editor
withmint_burn_redeem as (selectevt_block_time as time, cast(value as int256) as mint_burn, 0 as redeemfrom liquity_v2_ethereum.boldtoken_evt_transferwhere "from" = 0x0000000000000000000000000000000000000000union allselectevt_block_time, - cast(value as int256), 0from liquity_v2_ethereum.boldtoken_evt_transferwhere "to" = 0x0000000000000000000000000000000000000000union allselectevt_block_time, 0, _attemptedBoldAmount as redeemfrom liquity_v2_ethereum.trovemanager_weth_evt_redemptionunion allselectevt_block_time, 0, _attemptedBoldAmount as redeemfrom liquity_v2_ethereum.trovemanager_wsteth_evt_redemptionunion allselectevt_block_time, 0, _attemptedBoldAmount as redeemfrom liquity_v2_ethereum.trovemanager_reth_evt_redemption),cume as (selecttime, cast(sum(mint_burn) over (order by time) as double) / 1e18 as supply, cast(redeem as double) / 1e18 as redeemfrom mint_burn_redeem),prod as (selectmin(time) as "start",max(time) as "end",exp(sum(ln(1 - redeem / supply))) as prodfrom cume)