On DEXs, liquidity is facilitated through a combination of automated market makers (AMMs) and liquidity pools. AMMs are smart contracts that algorithmically determine the price of assets based on the available liquidity in the pool. Liquidity providers deposit their assets into these pools, which are then used to facilitate trades.