At Uniswap, the cost of exchanging tokens is 0.3%. According to how much each liquidity provider contributed to the liquidity reserves, they share this fee equally.