Query editor
with deposited as (SELECT sum(value)/1e18 as deposited_stETHFROM erc20_ethereum.evt_TransferWHERE "to" = 0x47176B2Af9885dC6C4575d4eFd63895f7Aaa4790 and "contract_address" = 0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84),withdrawn as (SELECT sum(value)/1e18 as withdrawn_stETHFROM erc20_ethereum.evt_TransferWHERE "from" = 0x47176B2Af9885dC6C4575d4eFd63895f7Aaa4790 and "contract_address" = 0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84),prices as (select price from prices.usd_latestwhere symbol = 'ETH'and contract_address is null)SELECT((SELECT deposited_stETH FROM deposited) -(SELECT withdrawn_stETH FROM withdrawn))*(select price from prices) AS stETH_in_contract