Autonomous DeFi Portfolio Manager
Challenge: Asset manager needed an AI agent to autonomously rebalance DeFi portfolios based on market signals — without manual transaction signing per action.
Architecture: LangGraph orchestration with tool-calling for on-chain reads and writes. ERC-4337 smart wallet with session keys scoped to specific DeFi protocols. Chainlink price feeds for market data. Uniswap V3 for execution. Risk parameters enforced on-chain via smart wallet limits.
Outcome: Agent manages $2M in assets autonomously. Portfolio rebalancing latency reduced from hours to minutes. Session key architecture contains risk: agent cannot exceed per-transaction or daily limits.