Query editor
WITH days AS (SELECT dayFROM unnest(sequence(TIMESTAMP '2024-03-01 00:00',CAST(NOW() AS TIMESTAMP),interval '1' day)) AS s(day)),bunni_rewards AS (SELECTevt_tx_hash,userFROMbunni_arbitrum.ChildLiquidityGauge_evt_ClaimRewards),daily_metrics AS (SELECTDATE(block_time) AS date,COUNT(DISTINCT "from") AS dau,COUNT(hash) AS tx_count,SUM(gas_price / 1e18 * gas_used) AS total_tx_fee_ethFROMarbitrum.transactionsWHEREto = 0xb5087f95643a9a4069471a28d32c569d9bd57fe4GROUP BYDATE(block_time)),daily_incentives AS (SELECTDATE(t.block_date) AS date,SUM(t.amount_usd) AS incentive_usdFROMtokens_arbitrum.transfers tJOINbunni_rewards br ON t.tx_hash = br.evt_tx_hashWHEREt.symbol = 'ARB'GROUP BYDATE(t.block_date))SELECTd.day AS timestamp,COALESCE(dm.dau, 0) AS dau,COALESCE(dm.tx_count, 0) AS tx_count,COALESCE(dm.total_tx_fee_eth, 0) AS tx_fee,COALESCE(di.incentive_usd, 0) AS incentive_usdFROMdays dLEFT JOINdaily_metrics dm ON d.day = dm.dateLEFT JOINdaily_incentives di ON d.day = di.dateWHERE d.day > cast('{{timestamp}}' as TIMESTAMP)ORDER BYd.day DESC