select date_trunc('day', block_timestamp) as block_day, sum(event_inputs:value/1e18) as fees
from polygon.events_emitted
where event_inputs:to::string = '0x5b3256965e7c3cf26e11fcaf296dfc8807c01073' and contract_name = 'weth' and block_day >= CURRENT_DATE - 30
group by 1