A smart contract called an AMM (automated market maker) automatically sets prices and executes trades based on liquidity pools.
You have to manage your own private keys, and you take on risks like smart contract vulnerabilities and slippage directly yourself.