Query editor
with lp_supply as (select time, net_trend, sum(net_trend) over (order by time) as "supply DUSD/sDAI LP"from (select date_trunc('day', evt_block_time) as time, sum(value/1e18) as net_trendfrom (select evt_block_time, (cast(value as double)) as valuefrom erc20_ethereum.evt_Transferwhere contract_address = 0x35c5C8C7B77942f9D44B535Fa590D8b503B2b00C -- DUSD/sDAI LPand "to" != 0x0000000000000000000000000000000000000000 -- Null Addressand evt_block_time >= cast('2023-09-06' as timestamp) -- contract deployedand cast(value as double) is not nullunion allselect evt_block_time,(-1)*(cast(value as double)) as valuefrom erc20_ethereum.evt_Transferwhere contract_address = 0x35c5C8C7B77942f9D44B535Fa590D8b503B2b00C -- DUSD/sDAI LPand "from" != 0x0000000000000000000000000000000000000000 -- Null Addressand evt_block_time >= cast('2023-10-24' as timestamp) -- contract deployedand cast(value as double) is not null) xgroup by 1order by 1 desc) t)select *from lp_supplyorder by time desc