Query editor
WITH pricing as (SELECT date_trunc('day', minute) as time, max_by(price, minute) as priceFROM prices.usdWHERE contract_address = 0x912CE59144191C1204E64559FE8253a0e49E6548and minute >= TIMESTAMP'2024-06-03 00:00'GROUP BY 1)SELECT block_time as timestamp, user_address, claimed_arb_amount, claimed_arb_amount * price as claimed_arb_usd, other_incentive_usd, tx_hashFROM (SELECT block_time, bytearray_substring(topic1, 1 + 12, 20) as user_address, bytearray_to_int256(bytearray_substring(data, 1, 32)) * 1e-18 as claimed_arb_amount, 0 as other_incentive_usd, tx_hashFROM arbitrum.logsWHERE block_number >= 209125431and topic0 = 0x40d34042ef0e39be95cd320d996c9418856ded4d18400dc6e9f6a29a9946591fand contract_address = 0xedD408902e47aa155E49ca8585E05c33A6C95B95) as claim_txsJOIN pricing on date_trunc('day', claim_txs.block_time) = pricing.timeWHERE block_time >= CAST('{{timestamp}}' as TIMESTAMP)