select
(sum(gas_used/pow(10,9)) * avg(price))/count(distinct block_number) as Fee_per_block
from arbitrum.core.fact_transactions inner join ethereum.core.fact_hourly_token_prices p
on hour::date = block_timestamp::date and hour(p.hour) = hour(block_timestamp)
where block_timestamp > CURRENT_DATE - 31
and status = 'SUCCESS'
and symbol = 'WETH'