Swapping cryptocurrencies

most decentralized exchanges use a liquidity pool to provide liquidity. is trading halal cryptocurrencies on a decentralized exchange like uniswap or PancakeSwap halal? since I have to pay 0.3% for each exchange as a fee to liquidity providers.