Query editor
WITHpending_withdrawals as (SELECTday,SUM(ezeth_amount) OVER (ORDER BY day) as pending_amount,LEAD(day, 1, current_timestamp) OVER (ORDER BY day ASC) as next_dayFROMquery_3851298),processed_withdrawals as (SELECTday,SUM(ezeth_amount) OVER (ORDER BY day) as processed_amount,LEAD(day, 1, current_timestamp) OVER (ORDER BY day ASC) as next_dayFROMquery_3849366),buffer_balance as (SELECTday,SUM(buffer_balance) OVER (ORDER BY day) as buffer_balance,LEAD(day, 1, current_timestamp) OVER (ORDER BY day ASC) as next_dayFROM(SELECTday,SUM(amount) as buffer_balanceFROM (SELECTdate_trunc('day', block_time) as day,SUM(value/1e18) as amountFROMethereum.traces etrWHERE etr.block_time >= DATE '2024-01-01'AND successAND (call_type NOT IN ('delegatecall', 'callcode', 'staticcall') OR call_type IS null)AND value > UINT256 '0'AND to = 0x5efc9D10E42FB517456f4ac41EB5e2eBe42C8918GROUP BY 1UNION ALLSELECTdate_trunc('day', block_time) as day,-SUM(value/1e18) as amountFROMethereum.traces etrWHERE etr.block_time >= DATE '2024-01-01'AND successAND (call_type NOT IN ('delegatecall', 'callcode', 'staticcall') OR call_type IS null)AND value > UINT256 '0'AND "from" = 0x5efc9D10E42FB517456f4ac41EB5e2eBe42C8918GROUP BY 1)GROUP BY 1)),