Query editor
-- Mantle mETH TVLwith raw_stake AS (SELECT'stake' as label, date_trunc ('day', block_time) as time -- contract_address, bytearray_ltrim (topic1) as user, bytearray_to_uint256 (bytearray_substring (data, 1, 32)) / 1e18 as eth_amount, bytearray_to_uint256 (bytearray_substring (data, 33, 32)) / 1e18 as meth_amount, tx_hashFROMethereum.logsWHEREcontract_address = 0xe3cbd06d7dadb3f4e6557bab7edd924cd1489e8fand topic0 = 0x1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee90 -- Staked (index_topic_1 address staker, uint256 ethAmount, uint256 mETHAmount)ORDER BYblock_time DESC), raw_unstake AS (SELECT'unstake' as label, date_trunc ('day', block_time) as time -- contract_address, bytearray_ltrim (topic2) as user, bytearray_to_uint256 (bytearray_substring (data, 1, 32)) / 1e18 as eth_amount, bytearray_to_uint256 (bytearray_substring (data, 33, 32)) / 1e18 as meth_amount, tx_hashFROMethereum.logsWHEREcontract_address = 0xe3cbd06d7dadb3f4e6557bab7edd924cd1489e8fand topic0 = 0xcbb10a3603d92dc1f9db6996b88539fbd521bb4144891e34c75b05c341c18379 -- UnstakeRequested (index_topic_1 uint256 id, index_topic_2 address staker, uint256 ethAmount, uint256 mETHLocked)ORDER BYblock_time DESC), combined as (select*fromraw_stakeUNION ALLselect*fromraw_unstake)selecttime, sum(casewhen label = 'stake' then eth_amountelse 0end) as daily_stake, sum(casewhen label = 'unstake' then -eth_amountelse 0