All projects

Kairos Finance

AI-powered DeFi yield optimizer on Base — Chainlink CRE automatically routes your USDC to the highest-yielding protocol.

CRE & AI DeFi & Tokenization

What it is

Kairos Finance is an AI-powered yield optimizer built on Base blockchain. Users deposit USDC into an ERC-4626 vault, then request an AI strategy. Chainlink CRE workflow reads live APY data from 4 lending protocols (Aave V3, Compound V3, Moonwell, Morpho) via EVMClient, calls Claude AI via HTTPClient to perform weighted scoring analysis (APY 35%, Safety 30%, TVL 20%, Stability 15%), and delivers a DON-signed recommendation on-chain to KairosController via writeReport. The controller automatically executes the strategy and allocates user funds to the best protocol. Full AI analysis (confidence score, risk score, per-protocol scores, alternatives) is stored on-chain in the RecommendationReceived event, making every decision transparent and auditable.

Problem solved: DeFi yield is fragmented across many protocols. Users cannot monitor 4+ protocols 24/7 and manually rebalance. Kairos automates this with real AI analysis, not static rules, powered by Chainlink's decentralized infrastructure.

How it Works

  • Smart Contracts: Solidity 0.8.24, Foundry — ERC-4626 KairosVault, KairosController (IReceiver), 4 Strategy Adapters (Aave/Compound/Moonwell/Morpho), FaucetUSDC. Deployed on Base Sepolia.
  • Chainlink CRE Workflow: TypeScript + @chainlink/cre-sdk v1.1.1 — EVM Log Trigger listens to StrategyRequested events, EVMClient reads live APY from Base mainnet protocols, HTTPClient calls Morpho GraphQL API + Claude AI (claude-sonnet-4-6), Secrets stores ANTHROPIC_API_KEY, Cron Trigger runs periodic market snapshots, writeReport delivers DON-signed result on-chain.
  • Frontend: Next.js 14, wagmi v2, viem v2, Privy authentication, Tailwind CSS. Deployed on Vercel.
  • Testing: 17 Forge unit tests (100% pass).

Links

Created by

  • Maulana Adib
  • manik
  • Fauzan