Query editor
with net_mint as (select evt_block_time, cast(value as decimal(38,0)) / 1e6 as amountfrom euroe_stablecoin_v1_ethereum.EUROe_evt_Transferwhere "from" = 0x0000000000000000000000000000000000000000union allselect evt_block_time, -cast(value as decimal(38,0)) / 1e6 as amountfrom euroe_stablecoin_v1_ethereum.EUROe_evt_Transferwhere to = 0x0000000000000000000000000000000000000000),daily_net_mint as (select date_trunc('day', evt_block_time) as day, sum(amount) as amountfrom net_mintgroup by 1),supply as (select *,sum(amount) over (order by day) as circulating_supply,lead(day, 1, now()) over(order by day) as next_dayfrom daily_net_mint),daily_supply as (select d.day, circulating_supplyfrom supply sinner join query_1971721 don s.day <= d.dayand d.day < s.next_day),tab as (select *,lag(circulating_supply, 1, 0) over (order by day) as "1d",lag(circulating_supply, 7, 0) over (order by day) as "7d",lag(circulating_supply, 30, 0) over (order by day) as "30d"from daily_supply)select day, circulating_supply,case when "1d" != 0 then 100 * (circulating_supply - "1d") / "1d" end as "1d_change",case when "7d" != 0 then 100 * (circulating_supply - "7d") / "7d" end as "7d_change",case when "30d" != 0 then 100 * (circulating_supply - "30d") / "30d" end as "30d_change"from taborder by day desc