> For the complete documentation index, see [llms.txt](https://arch-network.gitbook.io/arch-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://arch-network.gitbook.io/arch-documentation/use-cases/using-multi-party-programs-to-enable-amms-lps-and-dexs/example-a-bitcoin-dex.md).

# Example: A Bitcoin DEX

Multi-party programs on Bitcoin enable the creation of an AMM that powers a DEX like Saturn on Arch. Bitcoin holders can contribute their BTC to a liquidity pool governed by a program. Traders can swap Bitcoin with other assets in the pool, with the program determining prices based on the ratio of assets in the pool. This setup provides continuous liquidity for Bitcoin trading pairs on the DEX, allowing for seamless swaps without requiring individual trade counterparts. Liquidity providers earn a portion of the trading fees, incentivizing them to contribute to the pool.
