Query editor
with-- priceprice_latest as(select 'BUMP' as symbol, price from prices.usd_latestwhere contract_address = 0x785c34312dfa6b74f6f1829f79ade39042222168order by minute desc limit 1),-- supplytotal_supply as(select "from" as deploy, value/1e18 as supply, contract_address from erc20_ethereum.evt_Transfer union allselect "to" as deploy, 0 - value/1e18 as supply, contract_address from erc20_ethereum.evt_Transfer),total_supply_2 as(select sum(case when deploy = 0x0000000000000000000000000000000000000000 then supply else 0 end) as supply,sum(case when deploy = 0x4f848BE6b80Da8fC9AeBA7B6b2848C2A2ab21D92 then 0 - supply else 0 end) as treasury,sum(case when deploy = 0x652770a3152E29506e575269E94E059278088E57 then 0 - supply else 0 end) as staking,sum(case when deploy = 0x967583939a2E660567345CFEe6BE66870075B3d1 then 0 - supply else 0 end) as vestingfrom total_supplywhere contract_address = 0x785c34312dfa6b74f6f1829f79ade39042222168)select *,supply - treasury - 2548088.23 as circ_supply,(supply - treasury - 2548088.23)*price/1000000 as mkc,supply*price/1000000 as fdv,(supply - treasury - 2548088.23)/supply*100 as percentagefrom price_latest, total_supply_2