Query editor
with tmp as (selectdate_trunc('day', evt_block_time) as dt,'minted' as types,sum(value/1e18) as amountfrom erc20_ethereum.evt_Transferwhere contract_address = 0x4c9EDD5852cd905f086C759E8383e09bff1E68B3and "from" = 0x0000000000000000000000000000000000000000group by 1union allselectdate_trunc('day', evt_block_time) as dt,'burned' as types,-sum(value/1e18) as amountfrom erc20_ethereum.evt_Transferwhere contract_address = 0x4c9EDD5852cd905f086C759E8383e09bff1E68B3and to = 0x0000000000000000000000000000000000000000group by 1),usde as (selectdt,sum(amount) over(order by dt asc) as total_supply_usdefrom tmp usdeorder by dt desc)selectdt,total_supply_usde,susde.total_supply as total_supply_susde,susde.total_supply / total_supply_usde as staked_percentfrom usdeleft join query_3456083 susde using(dt)order by dt desc