Query editor
with dates as (with day_seq as (SELECT(sequence (cast('2020-11-03' as date),cast(date_trunc('day',now()) as date),interval '1' day )) as day )select days.dayfrom day_seqcross join unnest(day) as days(day)), crETH_supply as(selectd.day as time,'CRETH2 (Cream)' as LST_project, --neth 0xC6572019548dfeBA782bA5a2093C836626C7789Acumulative_amountfrom dates dleft join(select *,lead("time", 1, date_trunc('day',now() + interval '1' day)) over (order by "time") as next_timefrom(select time,SUM(daily_creth_supply_growth) over (order by time) as cumulative_amountfrom(select time,sum(amount)/1e18 as daily_creth_supply_growthfrom(selectdate_trunc('day',evt_block_time) as time,CAST(value as DOUBLE) as amountfrom erc20_ethereum.evt_Transferwhere "from" = 0x0000000000000000000000000000000000000000and contract_address = 0xcbc1065255cbc3ab41a6868c22d1f1c573ab89fd--0x49D72e3973900A195A155a46441F0C08179FdB64union allselectdate_trunc('day',evt_block_time) as time,-1 * CAST(value as DOUBLE) as amountfrom erc20_ethereum.evt_Transferwhere "to" = 0x0000000000000000000000000000000000000000and contract_address = 0xcbc1065255cbc3ab41a6868c22d1f1c573ab89fd--0x49D72e3973900A195A155a46441F0C08179FdB64)group by 1))) tron d.day >= tr.time and d.day < tr.next_time)select cast(time as timestamp) as time, LST_project, cumulative_amountfrom(