Query editor
with lido_eth2 as ( -- Lido deposit on Beacon ChainSELECTdate_trunc('day', block_time) as time, sum(cast(value as double)) as amount, sum(sum(cast(value as double)/ 1e18)) over (order by date_trunc('day', block_time)) AS depositedFROM ethereum.tracesWHERE to = 0x00000000219ab540356cbb839cbe05303d7705faand "from" in (0xae7ab96520de3a18e5e111b5eaab095312d7fe84, 0xB9D7934878B5FB9610B3fE8A5e441e8fad7E293f, 0xFdDf38947aFB03C621C71b06C9C70bce73f12999)and tx_successand cast(value as double) > 0GROUP BY 1), lido_staked as ( --Lido staked amountselectdate_trunc('day', evt_block_time) as time, sum(cast(amount as double)) as amount, sum(sum(cast(amount as double))/1e18) over (order by date_trunc('day', evt_block_time)) AS stakedFROM lido_ethereum.steth_evt_Submittedgroup by 1order by 1)selectlido_staked.time, lido_eth2.deposited, lido_staked.stakedfrom lido_stakedleft join lido_eth2 on lido_eth2.time = lido_staked.timeorder by 1/*with lido_eth2_amounts as (select date_trunc('day',"evt_block_time") as time,('x' || substring(encode(amount::bytea, 'hex') from 15 for 2) ||substring(encode(amount::bytea, 'hex') from 13 for 2) ||substring(encode(amount::bytea, 'hex') from 11 for 2) ||substring(encode(amount::bytea, 'hex') from 9 for 2) ||substring(encode(amount::bytea, 'hex') from 7 for 2) ||substring(encode(amount::bytea, 'hex') from 5 for 2) ||substring(encode(amount::bytea, 'hex') from 3 for 2) ||substring(encode(amount::bytea, 'hex') from 1 for 2) )::bit(64)::bigint amountfrom eth2."DepositContract_evt_DepositEvent"where withdrawal_credentials IN ('\x010000000000000000000000b9d7934878b5fb9610b3fe8a5e441e8fad7e293f', '\x009690e5d4472c7c0dbdf490425d89862535d2a52fb686333f3a0a9ff5d2125e')), lido_eth2 as (select date_trunc('day', time) as time,sum(amount)/1e9 as amount,sum(sum(amount)/1e9) over (order by time) AS depositedfrom lido_eth2_amountsgroup by timeorder by time), lido_staked as (select date_trunc('day', "evt_block_time") as time, sum(amount)/1e18 as amount,sum(sum(amount)/1e18) over (order by date_trunc('day', "evt_block_time")) AS stakedFROM lido."steth_evt_Submitted"