Query editor
WITH days_seq AS (SELECTsequence(date('2024-01-25'), date_trunc('day', cast(now() as timestamp)), interval '1' day) AS days),dates as (SELECT days.dayFROM days_seqCROSS JOIN unnest(days) AS days(day)),ppeas_creation_all as (SELECT date_trunc('day', evt_block_time) as day, (SUM(value) OVER(ORDER BY evt_block_time))/1e18 as total_inflowsFROM erc20_ethereum.evt_TransferWHERE "from" = 0x0000000000000000000000000000000000000000AND contract_address = 0x027CE48B9b346728557e8D420Fe936A72BF9b1C7ORDER BY 1 DESC),inflows_peas_all as (SELECT date_trunc('day', evt_block_time) as day, (SUM(value) OVER(ORDER BY evt_block_time))/1e18 as total_inflowsFROM erc20_ethereum.evt_TransferWHERE "to" = 0x027CE48B9b346728557e8D420Fe936A72BF9b1C7AND contract_address = 0x02f92800F57BCD74066F5709F1Daa1A4302Df875ORDER BY 1 DESC),ppeas_creation as (SELECT distinct day, max(total_inflows) as total_inflowsFROM ppeas_creation_allGROUP BY 1),inflows_peas as (SELECT distinct day, max(total_inflows) as total_inflowsFROM inflows_peas_allGROUP BY 1),ppeas_deletion_all as (SELECT date_trunc('day',evt_block_time) as day, (SUM(value) OVER(ORDER BY evt_block_time))/1e18 as total_outflowsFROM erc20_ethereum.evt_TransferWHERE "to" = 0x0000000000000000000000000000000000000000AND contract_address = 0x027CE48B9b346728557e8D420Fe936A72BF9b1C7ORDER BY 1 DESC),outflows_peas_all as (SELECT date_trunc('day',evt_block_time) as day, (SUM(value) OVER(ORDER BY evt_block_time))/1e18 as total_outflowsFROM erc20_ethereum.evt_TransferWHERE "from" = 0x027CE48B9b346728557e8D420Fe936A72BF9b1C7AND contract_address = 0x02f92800F57BCD74066F5709F1Daa1A4302Df875ORDER BY 1 DESC),ppeas_deletion as (SELECT distinct day, max(total_outflows) as total_outflowsFROM ppeas_deletion_all