Can DeFAI, the Deep Integration of DeFi and AI, Foster a New Wave of AI Agents?
Jan.15.2025

Author: YBB Capital Researcher Ac-Core

1. What Story Does DeFAI Tell?

1.1 What is DeFAI?

In simple terms, DeFAI refers to AI + DeFi. AI has been a hot topic, with markets going through multiple cycles of hype, ranging from AI computing power to AI memes, from different technical architectures to various infrastructure setups. While the overall market value of AI agents has been seeing a decline recently, the concept of DeFAI is emerging as a breakthrough trend. The current DeFAI landscape can broadly be categorized into three types: AI abstraction, autonomous DeFi agents, and market analysis and prediction. Specific classifications within these categories are shown in the diagram below.

Diagram Source: Created by the Author

1.2 How Does DeFAI Work?

In a DeFi system, the core of an AI agent is based on LLM (large language models), involving multi-layered processes and technologies that encompass everything from data collection to decision-making execution. According to a study by @3sigma in the IOSG article, most models follow six specific workflows: data collection, model inference, decision-making, hosting and operation, interoperability, and wallet management. Below is a summary of these processes:

1.Data Collection: The primary task of an AI agent is to understand its operating environment comprehensively. This includes gathering real-time data from multiple sources:

  • On-chain Data: Real-time blockchain data, such as transaction records, smart contract states, and network activities, is obtained through indexers and oracles. This helps the agent stay synchronized with market dynamics.

  • Off-chain Data: Price information, market news, and macroeconomic indicators are sourced from external data providers such as CoinMarketCap or Coingecko, ensuring the agent’s understanding of external market conditions. These data are typically provided through API interfaces.

  • Decentralized Data Sources: Some agents may obtain price oracle data through decentralized data feed protocols to ensure data decentralization and trustworthiness.

2. Model Inference: After data collection, the AI agent enters the inference and calculation phase, where it relies on multiple AI models for complex reasoning and prediction:

  • Supervised and Unsupervised Learning: By training on labeled or unlabeled data, AI models can analyze market behavior and governance forum activities. For example, by analyzing historical transaction data, they can predict future market trends or assess governance proposals’ likely outcomes.

  • Reinforcement Learning: Through trial and error and feedback mechanisms, AI models autonomously optimize strategies. For example, in token trading, the AI agent can simulate multiple strategies to determine the optimal buy or sell time, allowing it to continuously improve in dynamic market conditions.

  • Natural Language Processing (NLP): By understanding and processing natural language input, the agent can extract key information from governance proposals or market discussions, helping users make better decisions. This is particularly important when scanning decentralized governance forums or processing user commands.

3. Decision Making: Based on the collected data and inferred results, the AI agent enters the decision-making phase. Here, the agent not only analyzes the current market conditions but also balances multiple variables:

  • Optimization Engine: The agent uses an optimization engine to find the best execution path under various conditions. For example, when providing liquidity or performing an arbitrage strategy, the agent must consider slippage, transaction fees, network latency, and fund size to find the optimal path.

  • Multi-Agent System Collaboration: In complex market situations, a single agent may not fully optimize all decisions. In such cases, multiple AI agents can be deployed, each focusing on different tasks, collaborating to enhance the overall system’s decision-making efficiency. For instance, one agent may specialize in market analysis, while another focuses on executing trading strategies.

4. Hosting and Operation: AI agents often need to handle substantial computations and therefore rely on off-chain servers or distributed computing networks for hosting:

  • Centralized Hosting: Some AI agents may depend on centralized cloud computing services, like AWS, to host their computing and storage needs. This approach ensures efficient model operation but also brings potential centralization risks.

  • Decentralized Hosting: To reduce centralization risks, some agents use decentralized distributed computing networks (e.g., Akash) and decentralized storage solutions (e.g., Arweave) for hosting models and data. These solutions ensure decentralized model operation while providing data storage durability.

  • On-chain Interaction: While models may be hosted off-chain, AI agents need to interact with on-chain protocols to execute smart contract functions (e.g., transaction execution, liquidity management) and manage assets. This requires secure key management and transaction signing mechanisms, such as MPC (multi-party computation) wallets or smart contract wallets.

5. Interoperability: The key role of AI agents in the DeFi ecosystem is to seamlessly interact with various DeFi protocols and platforms:

  • API Integration: Agents bridge with decentralized exchanges, liquidity pools, and lending protocols through API connectors, allowing them to access real-time market prices, counterparties, and borrowing rates, among other crucial information, for trading decisions.

  • Decentralized Messaging: To ensure synchronization with on-chain protocols, agents can use decentralized messaging protocols (e.g., IPFS or Webhook) to receive updates. This enables the AI agent to process external events in real-time, such as governance proposal voting outcomes or liquidity pool changes, allowing it to adjust its strategy accordingly.

6. Wallet Management: AI agents must be able to perform actions on the blockchain, which requires secure wallet and key management mechanisms:

  • MPC Wallets: MPC wallets split private keys across multiple participants, allowing the agent to perform transactions securely without the risk of a single key compromise. For example, the wallet used by Coinbase Replit shows how MPC enables secure key management while allowing users to delegate some autonomy to the AI agent.

  • Trusted Execution Environment (TEE): Another common key management solution is using TEE technology, where private keys are stored in a secure hardware enclave. This enables the agent to conduct transactions and make decisions in a fully autonomous environment without third-party intervention. However, TEE faces challenges related to hardware centralization and performance overhead, though it may become more feasible as these challenges are addressed. Once solved, fully autonomous AI systems could become a reality.

1.3 Origins of the Sect? From Intent to DeFAI

Diagram Source: Created by the Author

If the vision of DeFAI is to enable users to manage their portfolios autonomously through AI agents and various AI platforms, allowing everyone to easily participate in crypto market trading, does this vision naturally lead us to the concept of “intent”?

Let’s revisit the concept of “intent” first introduced by Paradigm. In normal trading, we need to specify a clear execution path, such as swapping Token A for Token B on Uniswap. However, in an intent-driven scenario, the execution path is determined jointly by the solver and AI. In other words: Transaction = I specify how the TX is executed; Intent = I only care about the TX result, not the execution process. From a retrospective perspective, the narrative of DeFAI not only closely aligns with the ultimate vision of AI agents but also perfectly complements the realization of the “intent” concept. In this comprehensive view, DeFAI can be seen as a new path to realizing intent.

The ultimate version of large-scale blockchain application realization in the future might be: AI Agent + Solver + Intent-Centric + DeFAI = Future?


2. DeFAI-Related Projects

Diagram Source: Created by the Author

2.1 Griffain

@griffaindotcom $GRIFFAIN: An innovative platform combining AI Agents and blockchain, designed to help users issue AI Agents. It focuses on creating a robust and scalable decentralized finance (DeFi) solution, supporting seamless token swaps, liquidity provision, and ecosystem growth. It allows users to easily manage wallets, trades, and NFTs, and automatically execute tasks such as issuing memecoins and airdrops.

2.2 Hey Anon

@HeyAnonai $ANON: A DeFi protocol powered by artificial intelligence, simplifying interactions, aggregating real-time project data, and performing complex operations via natural language processing. It provides users with an abstracted layer of DeFi operations. DWF Labs announced its support for the DeFAI project Hey Anon through its AI Agent Fund, which is scheduled to launch on Moonshot on January 14.

2.3 Orbit

@orbitcryptoai $GRIFT: Simplifies complex DeFi interfaces and operations, lowering the barrier to entry for the general public. It currently supports over 100 blockchains (including EVM and Solana) and over 200 protocols. The token GRIFT is used to inject vitality into the platform.

2.4 Neur

@neur_sh $NEUR: An open-source, full-stack application combining LLM models and blockchain functionality, specifically designed for the Solana ecosystem. It uses the Solana Agent Kit to achieve seamless protocol interactions.

2.5 Modenetwork

@modenetwork $MODE: Positioned as the center for Ethereum Layer2 AI x DeFi innovation. Holders can stake MODE to obtain veMODE, allowing them to enjoy airdrops from AI Agents. Modenetwork aims to become a key player in the DeFAI stack.

2.6 The Hive

@askthehive_ai $BUZZ: Built on Solana, The Hive integrates multiple models, including OpenAI, Anthropic, XAI, and Gemini, to facilitate complex DeFi operations such as trading, staking, and lending.

2.7 Bankr

@bankrbot $BNKR: An AI-driven cryptocurrency companion that allows users to easily buy, sell, swap, place limit orders, and manage wallets by simply sending a message. It plans to add token swaps and on-chain tracking features soon. Its vision is to make DeFi accessible to everyone and enable automated trading.

2.8 HotKeySwap

@HotKeySwap $HOTKEY: Provides AI-driven DEX aggregators and analytical tools, offering a complete suite of DeFi tools, including cross-chain trading and analytics.

2.9 Gekko AI

@Gekko_Agent $GEKKO: An AI Agent created by the Virtuals protocol, focusing on providing comprehensive automated trading solutions. It is specifically designed for prediction markets. Gekko’s automated trading strategies include auto-rebalancing, yield harvesting, and the creation of new token indices.

2.10 ASYM

@ASYM41b07 $ASYM: An AI-driven DEX aggregator and analytical tool that identifies high-return investment opportunities, settling profits in $ASYM tokens.

2.11 Wayfinder Foundation

@AIWayfinder $Wayfinder: An AI-powered, full-chain interactive tool launched by the card game-based blockchain game Parallel. It helps agents navigate the on-chain environment, execute trades, and interact with decentralized applications.

2.12 Slate

@slate_ceo $Slate: A general-purpose AI agent connection infrastructure layer, translating natural language commands into on-chain actions. It focuses on executing automated trading strategies, buying or selling based on specific conditions, making on-chain operations as simple as thinking.

2.13 Cod3x

@Cod3xOrg $Cod3x: A Solana AI hackathon project offering no-code development tools for building automated DeFi strategies with agents. Its Agentic Interface allows complex operations to be executed using only intent-based expressions.

2.14 Almanak

@Almanak_ $Almanak: An AI Agent capable of self-learning and autonomously performing tasks. It optimizes DeFi and gaming projects using agent-based modeling. Its mission is to maximize the profitability of protocols through data science and trading knowledge, while ensuring economic security.

2.15 HIERO

@HieroHQ $HTERM: A multi-chain smart tool for Solana and Base networks, allowing users to execute trades and conduct simple token analysis using natural language commands.


3. What Is the Ultimate System for AI Agents?

Diagram Source: Created by the Author

Time is of the essence, and DeFAI projects are emerging rapidly like mushrooms after a rainstorm. After Bitcoin’s sharp drop below $90,000 on January 13, DeFAI-related tokens saw a reverse trend, with a 38.73% increase the following day according to CoinGecko data. Among them, $GRIFT, $BUZZ, and $ANON saw the largest gains. However, the direction for AI Agents in the financial sector remains a point of contemplation. Currently, there are two paths at a crossroads: the left toward Game and the right toward DeFi.

3.1 The Left Path: Game

M3 (Metaverse Makers _) (@m3org) may be the most promising representative on this path. The project is composed of artists and open-source hacker communities, seemingly backed by an organization behind ai16z. The core team members include JIN (@dankvr), Reneil (@reneil1337), Saori (@saori_xbt), Shaw (@shawmakesmagic), among others. However, the major obstacle for AI games in the Web2 market, which is rich in manpower and resources, is that no truly successful AI game has emerged so far. The highly anticipated game Phantom Beasts Paru in January 2024 raised a controversy regarding whether AI design was involved due to its exceptionally fast development efficiency, but the CEO ultimately denied this claim. Furthermore, the long development cycle required for games, compared to the more immediate potential of DeFi, suggests that AI games may need more market enthusiasm to succeed.

3.2 The Right Path: DeFi

In terms of market capitalization, the top DeFAI projects are ranked as follows: $GRIFFAIN, $ANON, $OLAS, $GRIFT, $SPEC, $BUZZ, $RSS3, $SNAI, $GATSBY, with GRIFFAIN and ANON accounting for 37.29% of the total DeFAI market cap.

GRIFFAIN: Built on Solana, it currently holds the top spot in the DeFAI market cap rankings with a $457M market value and 103,000 Twitter followers. Its core function is to facilitate transactions through wallet generation, quick trading, and other features. Currently, users can mint NFTs with The Agent Engine for just 0.01 Sol.

Hey Anon: Operating in multi-chain mode, it currently supports Sonic Insider, Solana, EVM, opBNB, and other blockchains. The sudden rise of $ANON can be attributed to the influence of its founder, Daniele (@danielesesta), who is also the founder of Wonderland, Abracadabra, and WAGMI. His existing traffic has significantly energized $ANON. As his next entrepreneurial venture, Hey Anon currently holds the second position with a market cap of $248M.


4. Conclusion

The emergence of DeFAI is no coincidence, as blockchain’s core adaptability fits strongly with financial scenarios. Whether on the left toward GameFAI or on the right toward DeFAI, both directions reveal significant market potential. For the Game path, there may be a continuation of the metaverse in the future. With the assistance of AI, managing virtual assets, characters, economies, and more, AI Agents could evolve autonomously through meme-like elements, achieving self-evolution and prosperity in a decentralized metaverse.

As DeFi develops on the right path, it will inevitably transition from passion-driven hype to a more value-oriented endpoint. The value of AI Agents should not rely on meme issuance to cater to market trends. However, the continued evolution of AI Agents must be supported by DeFi-like yield generation models. The victorious champions will not always be armored in the same way, and the ultimate outcome of market competition is something we eagerly await.


About YBB

YBB is a web3 fund dedicating itself to identify Web3-defining projects with a vision to create a better online habitat for all internet residents. Founded by a group of blockchain believers who have been actively participated in this industry since 2013, YBB is always willing to help early-stage projects to evolve from 0 to 1.We value innovation, self-driven passion, and user-oriented products while recognizing the potential of cryptos and blockchain applications.

Website | Twi: @YBBCapital


More from YBB