Query editor
withtxs as (select hash from arbitrum.transactionswhere to = 0x007F3eD580c754A9495881b066e9FC98e406c214and block_time >= cast('{{timestamp}}' as timestamp)),token_transfers as (select * from erc20_arbitrum.evt_transferwhere evt_tx_hash in (select hash from txs)and "from" = 0x09350F89e2D7B6e96bA730783c2d76137B045FEFand evt_block_time > cast('{{timestamp}}' as timestamp)),incentives as (selectevt_block_time as timestamp,to as user_address,(value/1e18) as claimed_arb_amount,(value/1e18*price.price) as claimed_arb_usd,0 as other_incentive_usdfrom token_transfers left join prices.usd as price on date_trunc('day', token_transfers.evt_block_time) = price.minutewhere blockchain = 'arbitrum' and symbol = 'ARB'),daily_incentives as (selectdate_trunc('day', timestamp) as date,sum(claimed_arb_usd) as incentive_usdfrom incentivesgroup by 1),metrics as (selectDate(transactions.block_time) as timestamp,count(distinct transactions."from") as dau,count(1) as tx_count,sum(transactions.gas_used * transactions.gas_price)/1e18 as tx_feefromquery_2280760 as bondsinner join arbitrum.transactions AS transactions ON transactions.hash = bonds.evt_tx_hashwhere bond_time > cast('{{timestamp}}' as timestamp)group byDate(transactions.block_time))selectm.timestamp,m.dau,m.tx_count,m.tx_fee,i.incentive_usdfrom metrics mleft join daily_incentives ion m.timestamp = i.dateorder byDate(timestamp) desc