Fees are distributed according to the proportion of liquidity that each provider has contributed to the pool. The more liquidity a provider contributes, the larger the proportion of the fees they receive.