Query editor
with depositt as (selectlower(CONCAT('0x', SUBSTRING(TO_HEX(topic1), 25, 40))) AS user,varbinary_to_int256(varbinary_substring(data, 1, 32))/1e18 AS amount,tx_hash,block_timefrom ethereum.logswhere topic0 = 0xa640e3413e5bbcc760106ee6a397d4fb8df0ad326569f66d750b96a00a845e3cand contract_address = 0xfa428fdbc73ad52c12724096e73e213fcd307141unionselectlower(CONCAT('0x', SUBSTRING(TO_HEX(topic1), 25, 40))) AS user,-1 * varbinary_to_int256(varbinary_substring(data, 1, 32))/1e18 AS amount,tx_hash,block_timefrom ethereum.logswhere topic0 = 0x3a3b7a01d783a7522adfe2d188faf3ffdfd3cdb6b6a657c3dfab15d62fd80aaaand contract_address = 0xfa428fdbc73ad52c12724096e73e213fcd307141)selectcount(distinct tx_hash) as txs,count(distinct user) as users,sum(amount) as amfrom depositt