Query editor
with date_series as (select time as timefrom unnest(sequence(date(DATE_TRUNC('day',cast('{{timestamp}}' as timestamp))), current_date)) as s(time)),events as (--https://dune.com/queries/3908999select * from query_3908999),incentive_usd as (--https://dune.com/queries/3906113/6565254selectdate_trunc('day',timestamp) as timestamp,sum (claimed_arb_usd) as incentive_usdfrom query_3906113group by 1)-- , dau as (selectd.time as timestamp,count(DISTINCT e.user) as dau,count(DISTINCT e.evt_tx_hash) as tx_count,sum(t.gas_used * t.gas_price) / (power(10,18)) as tx_fee,I.incentive_usd as incentive_usdfromdate_series dleft join events e on DATE_TRUNC('day',d.time) = DATE_TRUNC('day',e.evt_block_time)left join arbitrum.transactions t on t.hash = e.evt_tx_hashleft join incentive_usd i on DATE_TRUNC('day',d.time) = DATE_TRUNC('day',i.timestamp)where d.time > cast('{{timestamp}}' as timestamp)group by 1,5order by d.time desc