Skip to content
AI-Yield-Architect

AI-Yield-Architect

Maximize Your Yield. Maximize Your Impact.

Created on 8th November 2025

•

AI-Yield-Architect

AI-Yield-Architect

Maximize Your Yield. Maximize Your Impact.

The problem AI-Yield-Architect solves

AI Yield Architect tackles four major problems for DeFi users:

  • Overwhelming Complexity: The DeFi yield landscape is fragmented and complex. Users must manually track APYs, risks, and strategies across dozens of protocols like Aave, Morpho, Spark, and Yearn. AI Yield Architect simplifies this by aggregating them into a single, "deposit-and-forget" ERC-4626 vault.
  • Static, Time-Consuming Management: Manually rebalancing positions to chase the best yields is time-consuming, gas-intensive, and impractical for most users. Our platform makes this task easier by using an AI Strategy Engine (powered by Google Gemini) to continuously analyze market data 24/7 and provide optimal, real-time allocation recommendations.
  • Opaque Risk: High APYs often hide significant risk (e.g., smart contract vulnerabilities, low liquidity). AI Yield Architect makes yield farming safer by providing AI-driven risk assessments, analyzing protocol TVL, historical performance, and other metrics to recommend risk-adjusted strategies, not just the highest-APY "degen" plays.
  • Friction Between Profit and Purpose: Most yield farming is purely extractive. Users profit from the ecosystem without a simple way to support the public goods (core devs, infrastructure) that make it possible. We solve this by integrating Octant v2, automatically and transparently donating 4.2% of all earned yield to public goods, allowing users to earn competitive returns while simultaneously funding the future of Ethereum.

Challenges I ran into

Building a multi-protocol, AI-driven vault that also donates yield is a complex task. The three biggest hurdles we faced were:

  1. The ERC-4626 totalAssets() Calculation: Our entire AIYieldVault is built on the ERC-4626 standard, where the vault's share price is derived from the totalAssets() function. Our challenge was that our vault doesn't hold the assets directly; they are all deposited in external protocols (Aave, Morpho, Spark, Kalani).

    • The Bug: A simple balanceOf(USDC) check on our vault returned 0, as all the funds were in the adapters. This meant the vault's share price never increased, and depositors couldn't redeem their accrued yield.
    • The Solution: We had to implement a standardized getBalance() function in each protocol adapter (AaveAdapter.sol, MorphoAdapter.sol, etc.). The main totalAssets() function now loops through all active adapters, calls getBalance() on each, and sums the results. This was especially complex for the YearnAdapter, as we had to trust its internal calculations to get an accurate value for our vault-within-a-vault.
  2. Implementing the Octant v2 "Yield Skimming" Strategy: Our 4.2% public goods donation is not a simple fee. It's a yield-donating strategy as defined by Octant v2.

    • The Hurdle: We couldn't just take 4.2% of a deposit. We had to design our harvest() function to only skim the profit (yield) generated across all four protocols, without ever touching the user's principal.
    • The Solution: This required a complex harvest() function that, when triggered, calculates the vault's total assets minus its total liabilities (original deposits). This resulting "profit" is then split, with 4.2% being routed to the Octant v2 donation address and the rest being compounded back into the vault for depositors. Getting this "profit-only" calculation right was a significant smart contract security challenge.
  3. Connecting Real-Time AI to On-Chain Data: The AI Strategy Engine is not a gimmick. It needs to provide real, actionable advice based on live market conditions, which presented a major infrastructure challenge.

    • The Hurdle: You cannot call an LLM (like Google Gemini) directly from a smart contract. Furthermore, LLMs don't understand raw on-chain data (like APYs in 27-decimal ray format).
    • The Solution: We had to build a serverless backend using edge functions (live-protocol-data) to act as a crucial middle layer. This backend constantly:
      1. Pulls raw data from all 4 protocols (Aave, Morpho, etc.).
      2. Cleans and pre-processes this data into a simple, human-readable format (e.g., "Aave APY: 8.45%").
      3. Feeds this clean data to the Gemini AI as part of its prompt context.
      4. Receives the AI's natural language recommendation and streams it to the frontend.
        This data pipeline was the most difficult off-chain component to build, as stale or badly formatted data would cause the AI to give useless or dangerous advice.

Tracks Applied (9)

Best use of a Yield Donating Strategy

Our project is the definition of a yield-donating strategy. The entire architecture is built around this concept, implem...Read More

Most creative use of Octant v2 for public goods

We've creatively elevated Octant v2 from a passive donation target into the automated beneficiary of an autonomous, AI-d...Read More

Best use of Kalani

We integrate Kalani/Yearn as an essential component of our diversified yield strategy. Our YearnAdapter.sol allows the A...Read More

Best use of Morpho V2

Morpho v2 is integrated as a first-class citizen in our AI strategy engine. Our MorphoAdapter.sol allows the vault to ta...Read More

Best tutorial for Octant v2 (written/video)

Our project serves as a comprehensive, production-ready tutorial for Octant v2. While a blog post explains "how," our op...Read More

Best use of Aave v3 (Aave Vaults)

Aave v3 serves as a foundational, high-liquidity pillar for our yield strategy. Through our modular AaveAdapter.sol, our...Read More

Best team from dev3pack

Our project demonstrates complete mastery of the entire full-stack dev3pack. Smart Contracts: We've architected a compl...Read More

Best use of Spark

We integrate Spark Protocol as a core, high-quality yield source. Our SparkAdapter.sol is a modular smart contract that ...Read More

Best Use of Uniswap v4 Hooks

We leverage Uniswap v4's cutting-edge architecture to create an additional, compounding yield stream. Our UniswapV4Yield...Read More

Cheer Project

Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

Discussion

Builders also viewed

See more projects on Devfolio