The paper examines the impact of artificial intelligence (AI) on decentralized finance (DeFi), highlighting both the emerging opportunities and regulatory challenges. AI is increasingly becoming a strategic component, capable of optimizing transactions, enhancing security, and supporting investors through advanced tools. However, significant regulatory uncertainties persist, particularly regarding fully decentralized exchanges and AI-driven DeFi platforms. The analysis focuses on the interaction between the AI Act and traditional financial regulation, identifying critical issues, gaps, and potentially applicable principles. The aim is to outline a thoughtful regulatory adaptation path, capable of effectively addressing ongoing technological transformations