BitFlow is a decentralized exchange (DEX) built on Stacks for the Bitcoin ecosystem. At its core is a DEX aggregator that scans multiple DEXs and liquidity pools (e.g., Alex, Velar) to automatically select the best quote and multi-hop routing for users. Its StableSwap mechanism uses a hybrid invariant to optimize low-slippage, low-fee swaps for stablecoins like USDA and sUSDT, and supports single-sided liquidity provision. Users trade non-custodially via PSBTs and atomic swaps, keeping full control of their assets. Liquidity providers earn real yield denominated in the assets they deposit (e.g., deposit BTC, earn BTC). All smart contracts and front-end code are open source.