Query editor
with mint as (select*,'mint' as action_type,CAST(json_extract_scalar(event_json, '$.amount') AS BIGINT) / 1e6 as minted_volumefrom sui.eventswhere event_type = '0x3fcdcee11f485731170944af3acd26b17d1b96121ce6b756fe8517a95192b3a::minter::EventMint'and json_extract_scalar(event_json, '$.is_osail') = 'false'),price_tab as (selectday,price as sail_pricefrom query_6841575)selectdate_trunc('day',date) as day,p.sail_price,sum(minted_volume) as daily_supply,1000000000 + sum(sum(minted_volume)) over (order by date_trunc('day',date)) as total_supply,sail_price * (1000000000 + sum(sum(minted_volume)) over (order by date_trunc('day',date))) as FDVfrom mint as mleft join price_tab p on date_trunc('day',m.date)=p.daygroup by 1,2order by 1 desc