Query editor
with mined as (selectevt_block_time as timestamp,price / 1e18 as price_ethfrom donutcompany_base.miner_evt_miner__minedwhere contract_address = from_hex('0xF69614F4Ee8D4D3879dd53d5A039eB3114C794F6')),eth_prices as (selectminute,avg(price) as eth_usdfrom prices.usdwhere blockchain = 'base'and symbol = 'WETH'group by minute),glazes_usd as (selectdate_trunc('minute', m.timestamp) as minute,m.timestamp as ts,m.price_eth,m.price_eth * p.eth_usd as price_usdfrom mined mleft join eth_prices pon date_trunc('minute', m.timestamp) = p.minute)selectdate_trunc('day', ts) as day,avg(price_usd) as avg_glaze_price_usdfrom glazes_usdgroup by 1order by 1;