Query editor
with CVP_staked as (select"from" as staker,cast(amount as int256) as amountfrom powerpool_ethereum.CVP_evt_Transferwhere "to" = 0x9aE236653325b29d5AB4A2C8CB285E8059c2C204 --xCVPunion allselect"to" as staker,-cast(amount as int256) as amountfrom powerpool_ethereum.CVP_evt_Transferwhere "from" = 0x9aE236653325b29d5AB4A2C8CB285E8059c2C204 --xCVP)select sum(amount)/1e18 as CVP_staked from CVP_staked