Query editor
with amount_staked as (select blockchain, sum(bytearray_to_uint256(bytearray_substring(data,1,32))) as amount_stakedfrom evms.logswhere block_time > timestamp '2023-01-29 00:00'and contract_address = 0xa41a879bcfdd75983a987fd6b68fae37777e8b28and topic0 = 0x1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee90group by 1), amount_withdrawn as (select blockchain, sum(bytearray_to_uint256(bytearray_substring(data,1,32))) as amount_withdrawnfrom evms.logswhere block_time > timestamp '2023-01-29 00:00'and contract_address = 0xa41a879bcfdd75983a987fd6b68fae37777e8b28and topic0 = 0x92ccf450a286a957af52509bc1c9939d1a6a481783e142e41e2499f0bb66ebc6group by 1)select s.blockchain, (amount_staked - amount_withdrawn)/1e18 as total_stakedfrom amount_staked sleft join amount_withdrawn w on s.blockchain = w.blockchain