Query editor
with lido as (select month, 'Lido' as pool, sum (ETH_staked) over (order by month) as ETH_stakedfrom (select date_trunc('month', evt_block_time) as month, sum(amount)/1e18 as ETH_stakedfrom lido."steth_evt_Submitted"group by 1order by 1) z),ankr as (select month, 'Ankr' as pool, sum (ETH_staked) over (order by month) as ETH_stakedfrom (-- select date_trunc('month', evt_block_time) as month, sum(value)/1e18 as ETH_staked-- from erc20."ERC20_evt_Transfer"-- where contract_address = '\xE95A203B1a91a908F9B9CE46459d101078c2c3cb'-- and "from" = '\x0000000000000000000000000000000000000000'-- GROUP BY 1select date_trunc('month', evt_block_time) as month, sum(value)/1e18 as ETH_stakedfrom erc20."ERC20_evt_Transfer"where "contract_address" = '\xE95A203B1a91a908F9B9CE46459d101078c2c3cb'and "from" = '\x0000000000000000000000000000000000000000'GROUP BY 1union allselect date_trunc('month', evt_block_time) as month, -sum(value)/1e18 as ETH_stakedfrom erc20."ERC20_evt_Transfer"where "contract_address" = '\xE95A203B1a91a908F9B9CE46459d101078c2c3cb'and "to" = '\x0000000000000000000000000000000000000000'GROUP BY 1) zorder by 1),stakewise as (select month, 'Stakewise' as pool, sum (ETH_staked) over (order by month) as ETH_stakedfrom (select date_trunc('month', block_time) as month, sum(value)/1e18 as ETH_stakedfrom ethereum."transactions" ewhere e.to = '\xC874b064f465bdD6411D45734b56fac750Cda29A'group by 1order by 1) z),stkr as (select month, 'Stkr' as pool, sum (ETH_staked) over (order by month) as ETH_stakedfrom (select date_trunc('month', block_time) as month, sum(value)/1e18 as ETH_stakedfrom ethereum."transactions" ewhere e.to = '\x84db6eE82b7Cf3b47E8F19270abdE5718B936670'group by 1union allselect date_trunc('month', block_time) as month, -sum(value)/1e18 as ETH_stakedfrom ethereum."transactions" ewhere e.from = '\x84db6eE82b7Cf3b47E8F19270abdE5718B936670'group by 1