Welcome to YieldMind

Please accept the terms to continue

DocsPolygon Amoyv4 protocol

Architecture

How the six core contracts cooperate to deliver autonomous yield with on-chain risk control.

Overview

Six contracts cooperate to deliver autonomous yield. The vault is the only contract user funds interact with — it delegates capital to the strategy manager, which routes to whitelisted protocol adapters under the supervision of the risk guard.

Contract
User
Contract
YieldVaultV4
Contract
StrategyManager
Contract
AutonomousExecutor
Contract
AIOracle
Contract
RiskGuard

Deposits flow user → vault → strategy manager. Oracle + risk guard gate every executor action.

Control flow

  • Deposit — User → YieldVaultV4.deposit() StrategyManager.allocate() → adapter.
  • Rebalance AutonomousExecutor.tick() reads the latest AIOracle strategy, validates with RiskGuard.getRiskScore(), and only then issues moves.
  • Withdraw — User → YieldVaultV4.withdraw(); the manager unwinds positions in deepest-liquidity order.
  • Govern — MATIC-stake-weighted votes through OpenZeppelin Governor. Pause keys live behind EmergencyControl.

Trust model

The off-chain AI never holds custody. It can only emit a recommended strategy hash to AIOracle; the executor then validates and applies it. If the AI is silent, the protocol simply holds its current allocation — funds are never frozen by AI inactivity.