select sum(eth_value) as sushiswap_total_vol from ethereum.core.fact_event_logs a
join ethereum.core.fact_transactions b on a.tx_hash = b.tx_hash
where a.tx_status = 'SUCCESS'
and a.ORIGIN_TO_ADDRESS = '0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f'
and
(
a.ORIGIN_FUNCTION_SIGNATURE = '0x7ff36ab5' OR
a.ORIGIN_FUNCTION_SIGNATURE = '0x18cbafe5'
)