select date_trunc('day', block_timestamp) as day, sum(tx_fee) as total_fee from optimism.core.fact_transactions
where status = 'SUCCESS'
and (
to_address = '0x3f9da045b0f77d707ea4061110339c4ea8ecfa70' OR
to_address = '0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666'
)
group by day