Query editor
with box_contracts (address, name) as (values(0xD746aE5e6E43e3B6a2c7bD18B60760E0861523F9, 'BoxV1'),(0x2D85ec05893d33C32ccAb97CDd17E512033ebDAD, 'BoxV2'),(0x615FFAeDd8319C1Df79FFDD842b3394cDf0E518A,'BoxV3')),eth_price as(select token_sold_amount/token_bought_amount as ETHPrice from uniswap_v3_ethereum.tradeswhere token_pair='USDT-WETH' and token_sold_symbol='USDT' order by block_time desc limit 1)SELECTdata,SUM(tvl* ETHPrice) OVER (ORDER BY data) AS tvlfrom (select date_trunc('minute', block_time) as data,sum(case when "to" in (select address from box_contracts) then value/1e18 else -1*(value/1e18) end ) as tvlfrom zksync.traceswhere ("to" in (select address from box_contracts) or "from" in (select address from box_contracts))group by date_trunc('minute', block_time)) as daily_tvl_data,eth_price