Query editor
with contract_addresses as (SELECT p.pool_address as contract_address FROM query_3755619 as p UNION SELECT q.position_address as contract_address FROM query_3759535 as q),all_vault_tx as (select block_time, gas_price, gas_used, hash, "from", "to", success from arbitrum.transactions as p inner join contract_addresses as q on p.to = q.contract_address),user_tx as (selectdate_trunc('day', block_time) as "timestamp","from" as user_address,gas_price * gas_used / power(10, 18) as tx_fee,hash as tx_hashfrom all_vault_tx)select"timestamp",count(distinct user_address) as dau,count(tx_hash) as tx_count,sum(tx_fee) as tx_fee,0 as incentive_usdfrom user_txwhere "timestamp" > cast('{{timestamp}}' as TIMESTAMP)group by "timestamp"