Apollos Finance
The Autonomous Hedge Fund System that Implement LVR-Protected and Linearized Yield Protocol.
What it is
Apollos Finance is an autonomous hedge fund system that implement the cross-chain, LVR-protected, & linearized gains built on Arbitrum with Chainlink CRE as its execution layer.
Traditional DeFi vaults are mostly passive: they wait for user actions and react slowly to risk.
Apollos is designed as an active system that continuously monitors markets, debt health, cross-chain liquidity, and risk signals, then executes policy decisions onchain in a transparent way.
What it is
Apollos combines:
- Onchain vault infrastructure for leveraged yield markets (afWETH, afWBTC, afLINK).
- Chainlink CRE workflows for autonomous monitoring and execution.
- Backend reporting services for transparency and operational visibility.
- Frontend dashboard for users to track NAV, risk, oracle context, and AI Guardian logs.
Its core design goal is to behave like a programmable Central Nervous System for DeFi portfolio management.
How it works
Apollos runs 7 specialized workflows in parallel:
- Reactive Defender
Event-driven protection against toxic flow/LVR by detecting abnormal swap behavior and adjusting dynamic fees onchain. - Strategist
Monitors vault health factor bands and triggers rebalance actions when risk or capital inefficiency is detected. - Solvency Auditor
Monitors delegator/liquidity backing versus debt exposure and can trigger protective pause controls under severe conditions. - Accountant (NAV)
Computes NAV offchain and publishes it onchain via data feed cache contracts for efficient downstream reads. - Cross-Chain Manager
Batches bridge operations to reduce cross-chain execution cost and improve capital movement efficiency. - Reporter
Converts machine actions/events into human-readable activity logs for UI transparency. - VaR Calculator
Uses Chainlink price-feed lookback data to compute VaR risk metrics and publish per-market risk feed values onchain.
For onchain writes, workflows use a standardized route through GenericWorkflowReceiver, enabling consistent and secure report execution across contract targets.
What problem it solves
Apollos addresses key weaknesses in current DeFi operations:
- Slow reaction to market stress
Event/cron-driven automation reduces reaction time from manual/operator-based response to deterministic workflow execution. - Black-box protocol behavior
Reporter logs and explicit reasoning make machine decisions auditable and user-visible. - Gas-heavy accounting logic
Offchain compute + onchain publish model reduces execution overhead while preserving verifiability. - Risk blindness
NAV and VaR feeds expose both valuation and downside-risk signals in machine-readable form. - Operational fragmentation
A unified workflow framework coordinates defense, strategy, solvency, accounting, bridge operations, and reporting under one architecture.
Important Links
Website: https://apollos-fi.vercel.app
GitHub: https://github.com/apollos-finance
CRE Implementation: https://github.com/Apollos-Finance/apollos-cre
Docs: https://apollos-fi.vercel.app/docs
In short, Apollos is built to turn a static vault protocol into an always-on autonomous risk and capital management system.
How it Works
Apollos Finance is built as a modular, multi-repo architecture with four main layers:
- Smart Contracts (apollos-sc)
- Core vault system for leveraged yield markets (afWETH, afWBTC, afLINK).
- Integrations with Uniswap-style LP execution and Aave-style borrow/debt mechanics.
- LVRHook for dynamic fee defense.
- DataFeedsCache for onchain NAV and VaR round data (latestRoundData(bytes32) style reads).
- GenericWorkflowReceiver as the standardized CRE report entrypoint for secure workflow-triggered contract calls. - Chainlink CRE Workflows (apollos-cre)
- Seven modular workflows, each in its own folder and independently simulatable:
- Defender
- Strategist
- Solvency Auditor
- Accountant (NAV)
- Cross-Chain Manager
- Reporter
- VaR Calculator
- Trigger models:
- Cron for scheduled strategy/risk/accounting workflows.
- HTTP for indexer-driven Defender.
- EVM Log Trigger for Reporter.
- Write path:
- Workflow compute -> writeReport -> Forwarder -> GenericWorkflowReceiver -> target contract.
- Data model and configs are environment-driven (staging/production + secrets mapping), avoiding hardcoded runtime values. - Backend Services (apollos-be)
- Express.js API used for workflow reporting/log ingestion and FE-facing API responses.
- Worker processes for automation orchestration in non-CRE/hybrid flows.
- Central logging surface for AI Guardian activity consumed by the frontend.
- Designed for VPS deployment with PM2 + reverse proxy (Nginx). - Frontend App (apollos-fe)
- Next.js dashboard + docs site.
- Reads onchain state via viem/wagmi (vault metrics, Chainlink-style feeds, contract-linked stats).
- Displays market health, APY context, Oracle/spot spread, and AI Guardian logs.
- Docs section explains technical flow, smart contracts, and workflow architecture.
Key engineering patterns
- Environment-first configuration: addresses, IDs, RPCs, and API endpoints are managed via .env and workflow config JSON.
- Deterministic onchain values: bigint-safe math and string-based unit conversion to avoid precision loss.
- Workflow modularization: each workflow split into config, handler, chain, ai, and helper modules for maintainability.
- Cross-chain support: bridge batching logic through CCIP-compatible routing.
- Observability by design: every automated action can be surfaced to users through Reporter logs.
Development and execution flow
- Deploy/update contracts and roles in apollos-sc.
- Sync addresses and IDs into FE/BE/CRE environment configs.
- Run and validate workflows with cre workflow simulate ... --broadcast.
- Confirm writes on Arbiscan and state updates in UI.
- Operate API/workers in parallel for production-like monitoring and transparency.
This structure lets Apollos run as an autonomous hedge-fund-like system while keeping each layer independently testable, replaceable, and demo-friendly.
Links
Created by
- Bagas Gunardi
- Aufa Rafly