Risks to note when using DeFi protocols:

• Smart contract risk (code can have bugs)
• Impermanent loss (for liquidity pools)
• Market volatility (prices change)
• Gas fees (can eat small profits)

all these can cause you to losing partial part of your capital.