All projects

crefi

AutoPilot Vault - Autonomous DeFi yield optimizer powered by Chainlink CRE workflows

DeFi & Tokenization

What it is

AutoPilot Vault is an autonomous DeFi automation system that continuously monitors and rebalances funds across yield strategies to maximize returns.

What it is:
A non-custodial vault system where users deposit funds and receive yield-bearing tokens. The system automatically allocates capital to the highest-yielding strategy (Aave, Idle, etc.) without any manual intervention.

How it works:

  1. Users deposit USDC into the Vault contract and receive apUSDC tokens
  2. The Vault routes funds through a Strategy Router
  3. A Chainlink CRE workflow runs every 30 seconds via cron trigger
  4. The workflow fetches external market data (ETH price from CoinGecko)
  5. It compares simulated APYs across available strategies
  6. When a better opportunity is detected, CRE triggers a rebalance
  7. The Router moves funds to the optimal strategy

Problem it solves:
DeFi yields are volatile and fragmented. Manual monitoring is inefficient and slow. Users lose money because they can't watch markets 24/7. AutoPilot Vault automates this entire process using Chainlink's secure off-chain computation, ensuring funds are always in the best possible position without requiring constant user attention.

How it Works

Smart Contracts (Foundry/Solidity):

  • AutoPilotVault.sol: ERC20 vault tokenizing deposits (OpenZeppelin standards)
  • StrategyRouter.sol: Manages strategy allocation with rebalancing logic
  • AaveStrategy.sol: Real integration with Aave V3 on Sepolia testnet
  • IdleStrategy.sol: Safe fallback strategy
  • Comprehensive Foundry tests with 100% coverage

Chainlink CRE Workflow (TypeScript):

  • Cron trigger every 30 seconds via CRE Automation capability
  • External API integration (CoinGecko ETH price feed)
  • Strategy decision logic comparing yields
  • Professional error handling with fallback values
  • Secret management via secrets.yaml

Architecture:
Vault Contract → Router Contract → Multiple Strategies ← CRE Workflow orchestrates

Links

Created by

  • S.Skandha Roshan
  • K Dinesh Pandian