About
AutoFi Nexus is an end-to-end system that autonomously manages cross-chain DeFi portfolios by combining (1) AI agents that decide when and what to do, (2) an intent-based atomic cross-chain execution layer, (3) ultra-low-latency on-chain state indexing, and (4) explorer-grade verification for transparency. The user experience: a user defines high-level “portfolio intents” (rules/targets) then the system continuously monitors, decides, and atomically executes rebalances, yield harvests, staking/unstaking and liquidation protection across chains — with a live dashboard showing provable on-chain evidence of each action.
AutoFI Nexus
Key value props:
Autonomous agents (Vincent) making and triggering decisions.
Avail “intents” to ensure cross-chain actions are atomic (all succeed or nothing).
Envio HyperIndex for millisecond-level data freshness.
Blockscout integration so every action has an on-chain, verified footprint.
System architecture — components & responsibilities
High level components (and how they connect)
User / Frontend
React app (connected wallets via standard web3 modal).
Lets users declare “intents” like target allocations, rebalance thresholds, or harvest cadence.
Subscribes to Envio for live updates and pulls Blockscout for on-chain proof pages.
Vincent Agents (Automation Engine)
Long-running agent processes (could be serverless or hosted VMs/containers) that:
Subscribe to Envio streams for real-time balance/APY/price data.
Evaluate user-defined intents and market signals (price, liquidity, gas).
Generate intents (high-level atomic action requests) when triggers occur.
Sign and submit intents to Avail Nexus SDK (or to a coordinator service that writes the intent to the Avail rollup).
Avail Nexus (Intent Execution Layer)
Receives intents (instructions like “swap X on chain A, bridge, deposit Y on chain B”) and coordinates atomic execution across chains.
Ensures either the full rebalance completes or no funds move (preventing partial, dangerous states).
AutoFi Core Smart Contracts (Solidity)
Orchestrator contracts deployed on each target chain to:
Hold or manage agent approvals (e.g., allowlist of agent relayers).
Provide on-chain hooks for intents to call into: swap adapters, vaults, staking contracts.
Emit clearly-structured events for Blockscout and Envio to index.
Safety modules: timelock, per-user/strategy caps, emergency pause.
Envio HyperIndex & GraPsCL (Indexing & Subscriptions)
Indexes on-chain state with millisecond latency.
Provides subscription channels to Vincent agents and the frontend for live balance/position/tx updates.
Blockscout (Explorer / Verification)
Verifies smart contract source & bytecode.
Displays events and transactions triggered by Vincent/AutoFi contracts so users can audit agent actions on-chain.
Relayers / Executors
Optional relayer network that actually signs and broadcasts transactions on the appropriate L1/L2 after intent resolution — in tandem with Avail’s execution guarantees.
Monitoring & Observability
Logs, metrics, tracing for agent decisions (why an action fired), indexing health, relayer status, and failed intents.
Alerting for anomalous agent behavior, failed executions, or oracle anomalies.
Runtime flow (detailed step-by-step)
User intent creation
Wallet → Frontend → user sets rule (e.g., “Keep 50/50 ETH/USDC across Ethereum + Polygon; rebalance when allocation deviates > 5%”).
Frontend writes a strategy object to AutoFi smart contract (or stores the intent in a strategy registry / off-chain DB + on-chain commitment).
Continuous monitoring
Vincent agent subscribes to Envio feeds for price, on-chain balance, vault APYs, and gas.
Envio’s HyperIndex pushes millisecond updates to agents and frontend.
Decision & plan generation
Agent evaluates logic: thresholds, slippage tolerance, estimated gas & swap fees, cross-chain latency.
Builds a plan: sequence of actions (swap on chain A, lock and intent swap/bridge, deposit on chain B) with parameters.
Intent creation & submission
Agent converts plan into an Avail intent object (structured, signed).
Submit intent via Avail Nexus SDK or through a coordinating contract/relayer to Avail.
Atomic execution (Avail)
Avail coordinates cross-chain steps; if any step would fail (insufficient liquidity, slippage, bridge failure), the transaction is reverted and no state changes occur.
On-chain operations
AutoFi core contracts receive the calls from Avail, perform swaps or deposits, and emit standardized events (ActionInitiated, ActionCompleted, RebalanceSnapshot, etc.) for auditing.
Live update & verification
Envio indexes the events immediately and pushes updates to the dashboard.
Blockscout stores verified transaction and contract verification details, which the UI links to for on-chain proof.
Agent bookkeeping
Agents log decision rationale (inputs, expected outcome, chosen gas limit) to an append-only off-chain store for audit and ML-training later.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






