select date(block_timestamp),
sum(amount_usd) as fee_amount_usd,
count(distinct tx_id) as tx_count
from
flipside_prod_db.polygon.udm_events
where
from_address = '0xf715beb51ec8f63317d66f491e37e7bb048fcc2d'
and to_address in ('0x5b3256965e7c3cf26e11fcaf296dfc8807c01073','0x8de9c5a032463c561423387a9648c5c7bcc5bc90')
group by 1