Query editor
WITH eth_inflow as (SELECTblock_time, sum(value/1e18) eth_depositedFROM ethereum.transactions etWHERE et.to = '\xA0c68C638235ee32657e8f720a23ceC1bFc77C77'::BYTEA -- Raise contract receiving ETH, example fundraisegroup by block_timeorder by block_time),eth_outflow as (SELECTevt_block_time block_time, sum(amount/1e18) eth_exitedFROM matic."eth_bank_evt_ExitedEther"group by evt_block_timeorder by evt_block_time)SELECTCOALESCE(eth_inflow.block_time,eth_outflow.block_time),-- sum(COALESCE(eth_exited,0)) OVER (ORDER BY eth_inflow.block_time) as "total_eth_exit",sum(COALESCE(eth_deposited,0)-COALESCE(eth_exited,0)) OVER (ORDER BY eth_inflow.block_time) as "eth_deposited"FROMeth_inflowfull outer joineth_outflowON eth_inflow.block_time=eth_outflow.block_time