with pepe_tx as (
select
tx_hash
from ethereum.core.ez_dex_swaps
where token_in = '0x6982508145454ce325ddbe47a25d4ec3d2311933'
or token_out = '0x6982508145454ce325ddbe47a25d4ec3d2311933'
)
select
sum(tx_fee) as gas_fees
from ethereum.core.fact_transactions as transactions
inner join pepe_tx on transactions.tx_hash = pepe_tx.tx_hash