Architecture Overview

PrimeVault’s architecture unifies cross-chain accounts, paymasters, and AI for transparent, optimized yield.

1. User Interaction & Cross-Chain Access Layer

This layer represents the entry point for all users and assets on Multi-Chain.

  • EVM-compatible chains supported from day one.

  • Hybrid Smart Account (EIP-7702): No deployment overhead, EOAs behave like smart accounts during transactions.

  • Cross-chain Aggregator: LayerZero, Stargate, Circle’s CCTP, OpenOcean, 1inch,... via Li.Fi.

  • Security: EOA signatures remain intact; ephemeral code clears post-execution


2. Vault Runtime & Paymaster Layer

This is the execution backbone of PrimeVaults, where assets are aggregated, managed, and deployed into yield strategies. Vault Runtime:

  • Aggregates deposits into multi-asset vaults.

  • Track balances in a per-user ledger mapping, ensuring constant-time (O(1)) reads and updates.

  • Ensures time-weighted withdrawals to maintain liquidity stability. Prime Paymaster (Gas Abstraction):

  • Can sponsor user deposit and withdrawal transactions via EIP-7702 ephemeral accounts, enabling gasless interactions when certain conditions are met.

  • Achieves ~20–30% lower gas costs compared to EIP-4337 EntryPoint execution, due to reduced calldata overhead and a simplified validation path.

  • Supports multi-relayer clustering to avoid congestion (through load-balanced RPC endpoints). This layer ensures that all user actions are frictionless and that vault execution remains efficient, regardless of the complexity of underlying yield strategies.


3. Intelligence & Execution Layer (Prime AI + Prime Strategy)

This layer represents the “brain and hands” of Prime Vaults: the intelligence that designs yield strategies and the contracts that execute them. Prime AI (Decision Engine):

  • Data ingestion from yield sources across DeFi protocols: lending pools, AMMs, and incentive-driven campaigns.

  • Runs Markowitz-style portfolio optimization with IL risk coefficients, evaluating APRs, liquidity depth, impermanent loss exposure, and yield sustainability.

  • Updates allocations every hour with the ability to fast-rebalance on volatility spikes >5σ.

  • Defines exposure caps, adjusts dynamic fee parameters based on volatility and IL risk, and allocates funds to the IL Reserve Fund. Prime Strategy (On-Chain Execution Engine)

  • Deterministic, modular contracts supporting lending, liquidity provision, staking, and farming.

  • Acting as an automated investor, continuously adjusts and rebalances investment strategies dynamically based on market changes.

  • Risk controls: stop-loss constraints, dynamic fees, and automatic Impermanent Loss Reserve Fund contributions.

  • Gas-optimized flow: Execution flow is optimized for gas efficiency, reducing transaction costs during each rebalance.

  • Built-in circuit breakers trigger when IL drawdowns ≥5%, automatically exiting positions and moving assets back to the vault to await the next strategy. This combined layer ensures that AI-driven intelligence is verifiable on-chain, maintaining transparency while delivering optimized yields.

Last updated