Query editor
with lido as (select week, 'Lido' as pool, sum (ETH_staked) over (order by week) as ETH_stakedfrom (select date_trunc('week', evt_block_time) as week, sum(amount)/1e18 as ETH_stakedfrom lido."steth_evt_Submitted"group by 1order by 1) z),cbeth as (select week, 'Coinbase' as pool, sum (ETH_staked) over (order by week) as ETH_stakedfrom (select date_trunc('week', evt_block_time) as week, sum(value/1e18) as ETH_stakedfrom erc20."ERC20_evt_Transfer"where contract_address = '\xBe9895146f7AF43049ca1c1AE358B0541Ea49704'and "from" = '\x0000000000000000000000000000000000000000'group by 1union allselect date_trunc('week', evt_block_time) as week, -sum(value/1e18) as ETH_stakedfrom erc20."ERC20_evt_Transfer"where contract_address = '\xBe9895146f7AF43049ca1c1AE358B0541Ea49704'and "to" = '\x0000000000000000000000000000000000000000'group by 1order by 1) z),stakewise as (select week, 'Stakewise' as pool, sum (ETH_staked) over (order by week) as ETH_stakedfrom (select date_trunc('week', block_time) as week, sum(value)/1e18 as ETH_stakedfrom ethereum."transactions" ewhere e.to = '\xC874b064f465bdD6411D45734b56fac750Cda29A'group by 1order by 1) z),weeks as (select generate_series ('2021-02-01'::timestamp, date_trunc('week', now()), '1week') as week),stkr_pre as (select week, 'Stkr' as pool, sum (ETH_staked) over (order by week) as ETH_stakedfrom (select date_trunc('week', block_time) as week, sum(value)/1e18 as ETH_stakedfrom ethereum."transactions" ewhere e.to = '\x84db6eE82b7Cf3b47E8F19270abdE5718B936670'group by 1union allselect date_trunc('week', block_time) as week, -sum(value)/1e18 as ETH_stakedfrom ethereum."transactions" ewhere e.from = '\x84db6eE82b7Cf3b47E8F19270abdE5718B936670'group by 1) zorder by 1),