Query editor
withoptimism_burn as (selectevt_tx_hash,evt_block_time,burntfromsynthetix_optimism.FeePool_evt_FeePeriodClosedjoin (selectcast(value as double) / 1e18 as burnt,evt_tx_hashfromerc20_optimism.evt_Transferwherecontract_address = 0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9and to = 0x0000000000000000000000000000000000000000and "from" = 0xfeEFEEfeefEeFeefEEFEEfEeFeefEEFeeFEEFEeF) using (evt_tx_hash)whereevt_block_time > timestamp '{{From}}'),ethereum_burn as (selectevt_tx_hash,evt_block_time,burntfromsynthetix_ethereum.FeePool_evt_FeePeriodClosedjoin (selectcast(value as double) / 1e18 as burnt,evt_tx_hashfromsynthetix_ethereum.sUSD_evt_Transferwhere--contract_address = 0x57Ab1ec28D129707052df4dF418D58a2D46d5f51to = 0x0000000000000000000000000000000000000000and "from" = 0xfeEFEEfeefEeFeefEEFEEfEeFeefEEFeeFEEFEeF) using (evt_tx_hash)whereevt_block_time > timestamp '{{From}}'),debt_pool as (selectcast(current as double)/1e18 as size,evt_block_time as time,coalesce(lead(evt_block_time) over (order by evt_block_time), now()) as time_nextfromchainlink_optimism.AccessControlledOffchainAggregator_evt_AnswerUpdatedwherecontract_address = 0x22f04BC4162D63730dCde051FDFD97B4f55fF63B),cratio as (select1/(cast(newRatio as double)/1e18) as cratio,evt_block_time as time,coalesce(lead(evt_block_time) over (order by evt_block_time), now()) as time_nextfromsynthetix_optimism.SystemSettings_evt_IssuanceRatioUpdated