Neko’s Earn feature embodies the principle of ambient finance, allowing users to generate yield on their assets effortlessly. By depositing into Neko’s AI-managed vaults, built upon the secure Nucleus framework on HyperEVM, users delegate the complexities of strategy management to sophisticated AI agents.

The User Experience: Deposit and Grow

For the user, interacting with Neko Earn is designed for simplicity:

  1. Deposit: Choose a vault strategy (e.g., LHYPE Yield, Stablecoin Arbitrage) and deposit your desired asset.
  2. Monitor: Track your vault balance as Neko’s agents work autonomously in the background.
  3. Auto-Compounding: Yield generated is automatically reinvested within the vault, maximizing returns without requiring manual intervention.

Earn Architecture

View Earn Architecture Here

The AI Management Process: Behind the Scenes

Each Neko Earn vault is actively managed by a dedicated DeFi Multiagent System. When triggered by events like a user deposit, a scheduled rebalance, or significant market shifts, these agents execute a sophisticated, data-driven workflow:

  1. Trigger & Initial Context: The process often starts with an event log (e.g., a user deposit linked to a specific vaultId representing the chosen strategy).
  2. Security Check (Pre-Interaction): Before planning any on-chain interactions, the agent calls the Hypernative API. This crucial step verifies that the whitelisted smart contracts intended for interaction within the strategy are not currently under attack or associated with malicious payloads, adding a layer of proactive security.
  3. Intelligence Gathering (Context Augmentation): The agent gathers necessary context to inform its strategy decisions:
    • Queries the RAG Database for relevant semantic information, historical context, or similar past scenarios.
    • Accesses the CAG Database for heuristics, learned best practices, and relevant agent transaction history (long-term memory) specific to the vault strategy.
    • Retrieves real-time Market & Prediction Data from the Time-Series Database.
  4. Strategy Planning & Refinement (Multi-Agent Workflow): With security verified and context gathered, the core multi-agent workflow begins:
    • Planner Agent: Drafts an initial action plan based on the trigger, current vault state, market context, and strategy objectives (e.g., “swap X for Y,” “lend Z on Protocol A”).
    • Replanner Agent: Reviews and iterates on the plan, optimizing for risk/reward and ensuring alignment with the strategy’s constraints.
    • Executor Agent: Identifies the specific “tools” needed – contract calls (potentially using the Shogun SDK/API for efficient, low-slippage swaps), API interactions, etc.
    • Action-Planner Agent: Performs the final validation and constructs the precise sequence of on-chain transactions required for execution.
  5. Secure Execution via Nucleus: The agent executes the finalized plan by interacting with the Nucleus Manager contract associated with the vault.
    • The agent submits the required management calls (target address, function signature, arguments).
    • The Nucleus Manager validates these calls against pre-approved actions defined by Merkle Root Permissions (using proofs fetched via the Nucleus API) and secure DecoderAndSanitizers.
    • Only permitted actions are executed by the BoringVault contract (which holds the assets) acting as msg.sender, ensuring the agent operates strictly within its authorized boundaries.

Underlying Vault Technology: Nucleus Framework

Neko leverages the Nucleus vault framework as the secure foundation for its Earn strategies:

  • BoringVault (ERC20): The core contract that custodians deposited assets and issues vault shares. All external interactions initiated by the agent originate from this contract address.
  • Manager Contract: The security gateway. It validates and executes management calls made by the Neko agent (acting as the “Strategist” or “Manager” in Nucleus terms).
  • Permissions & Security: Uses Merkle proofs and Decoder/Sanitizer contracts to ensure agents can only execute pre-approved, safe interactions with whitelisted protocols/functions, preventing unauthorized actions.

Outcome

Neko Earn vaults, powered by the DeFi Multiagent System operating securely within the Nucleus framework, deliver a truly automated and intelligent yield generation experience. By continuously monitoring conditions, leveraging diverse data sources, performing security checks, and executing optimized actions within predefined boundaries, Neko aims to provide risk-managed, auto-compounding returns, bringing the benefits of ambient finance directly to the user.