AION Yield
AI-orchestrated DeFi lending protocol powered by Chainlink CRE with autonomous rate optimization
What it is
AION Yield is a decentralized money market protocol where AI agents autonomously optimize interest rates and rebalance liquidity across chains — all orchestrated by Chainlink CRE.
The Problem: DeFi lending is reactive. Interest rate parameters are set manually, capital sits idle in static pools, and market conditions shift faster than any human can respond. There's no closed loop between market intelligence and on-chain execution.
The Solution: AION Yield builds an autonomous "Analyze -> Validate -> Execute" loop using Chainlink CRE as the orchestration backbone. The CRE workflow gathers on-chain reserve data (supply, borrow, utilization, prices), routes it to an AI engine powered by Anthropic Claude, validates the AI's recommendations through on-chain compliance policies (ACE — certificate-based authorization + volume/rate limits), and applies optimized interest rate parameters and cross-protocol allocations back on-chain — all without manual intervention.
The protocol also supports cross-chain deposits via Chainlink CCIP (Lock & Message pattern between Sepolia and Avalanche Fuji), automated liquidations via Chainlink Automation, and machine-to-machine inference payments via the x402 protocol standard. Every AI action is guardrailed by an on-chain policy engine ensuring no single agent can move more than 10% of TVL or execute more than 5 actions per hour.
How it Works
Smart Contracts (Solidity + Hardhat v3):
A full lending protocol (LendingPool with kink-based interest rate model, collateral management, liquidation engine) deployed on Ethereum Sepolia and Avalanche Fuji. The AI layer consists of AIYieldEngine (receives predictions, applies rate changes) and AutonomousAllocator (cross-protocol yield rebalancing across AION/Aave/Morpho).
Chainlink CRE (6 services integrated):
- CRE — CREExecutionHook orchestrates the pre-hook (data gathering) -> off-chain compute -> post-hook (apply results) workflow across 5 workflow types
- CCIP — CrossChainVault enables cross-chain deposits using a Lock & Message pattern (custom tokens bypass CCIP token pool whitelist)
- Functions — ChainlinkFunctionsConsumer bridges on-chain contracts to the off-chain Python AI engine
- Automation — LiquidationAutomation monitors positions and triggers liquidations when health factors drop below 1.0
- Data Feeds — ChainlinkPriceOracle fetches asset prices with staleness checks and fallback logic
- ACE — PolicyEngine + CertifiedActionValidatorPolicy (EIP-712 certificates) + VolumeRatePolicy (rate/volume limits) validate every AI action before execution
AI Engine (Python + FastAPI):
An off-chain server that reads on-chain reserve data via Web3, fetches external APYs from DeFi Llama (Aave V3, Compound), and uses Anthropic Claude to produce optimal rate curve parameters and cross-protocol allocation recommendations.
Frontend (Next.js 15 + Wagmi v2 + Reown AppKit):
Studio-grade dashboard with dark/light mode, Framer Motion animations, network switching (Sepolia <-> Fuji), and an Agents page where users can trigger AI inference and see real-time recommendations.
Links
Created by
- Chinonso Felix Nwajagu
- Taiwo Babalola