DeFi platforms are not immune to smart contract vulnerabilities and hacks. To mitigate risks, research projects thoroughly, use well-established platforms, and never invest more than you can afford to lose.
source: https://www.blockchainappfactory.com/decentralized-exchange-like-uniswap