Introduction
Protocol Overview
MetaVault is an advanced implementation of the ERC7540 standard enabling cross-chain yield aggregation through integration with the Superform protocol. Built on ERC4626 principles, the vault manages assets across multiple blockchain networks while providing advanced performance tracking, fee distribution systems, and robust risk management controls.
Technical Architecture
Core Components
MetaVault (Core)
ERC7540-compliant vault with ERC4626 base functionality
Asset allocation and tracking through NFT-based positions
Performance-based fee system with high watermark tracking
Cross-chain position management via Superform integration
ERC7540Engine
Asynchronous withdrawal request processing
Priority-based withdrawal queue implementation
Receiver contract system for cross-chain settlements
Optimized multi-chain withdrawal routing
AssetsManager
Direct and cross-chain portfolio allocation
ERC4626-compatible investment operations
Cross-chain debt and position tracking
Manager-controlled rebalancing and reconciliation
Gateway System
ERC20 asset bridging via Superform protocol
NFT-based position management (SuperPositions)
Cross-chain receiver contract deployment
Failed transaction recovery system
Key Technical Features
Cross-Chain Operations
Asynchronous settlement system via receiver contracts
NFT-based position tracking through SuperPositions
Cross-chain message verification
Bridge failure recovery mechanisms
Risk Management
Emergency shutdown with recovery procedures
Share locking with time-based restrictions
Minimum output protection for all operations
Multi-level oracle price validation
Performance Tracking
Performance fee calculation using high watermark
Dynamic hurdle rate tracking
Cross-chain price aggregation
Protocol-level yield optimization
Security Model
Access Control
Role-based permission system
Relayer-specific settlement controls
Role-restricted administrative functions
Emergency override capabilities
Asset Safety
Receiver contract validation system
Cross-chain settlement verification
Minimum output enforcement
Recovery address system for failed operations
Minimum balance requirements for receiver contracts
Gas refund protection mechanisms
Withdrawal queue size constraints (30 vaults max)
Gas Management
refundGas
modifier ensures cross-chain operations don't strand ETHCalculates and refunds unused bridge fees
Integration Points
Superform Protocol
ERC20 asset bridging capabilities
NFT position management
Cross-chain message routing
Settlement verification system
Oracle System
Asset-specific hurdle rates
Cross-chain price verification
Performance benchmarking
Oracle reward distribution
Protocol Parameters
Network Support
Fee Configuration
Technical Considerations for Auditors
Critical Components
Receiver contract deployment and validation
Cross-chain settlement verification
Asset and debt tracking accuracy
Fee calculation precision with watermark
Key Invariants
Total assets = idle assets + allocated assets + pending cross-chain assets
Share price updates maintain a high watermark
Fee calculations respect hurdle rates
Cross-chain positions match SuperPositions balances
Security Checkpoints
Recovery mechanism for failed transactions
Role-based access enforcement
Settlement verification process
Oracle price validation
Protocol Constraints and Limitations
Maximum number of vaults per chain: WITHDRAWAL_QUEUE_SIZE (30)
Asset types supported: ERC20 only
Maximum cross-chain operation timeout: determined by bridge
Price oracle update frequency requirements
Role Access Matrix
addVault
✓
investSingleDirectSingleVault
✓
processRedeemRequest
✓
settleLiquidation
✓
setEmergencyShutdown
✓
Protocol Constants
Getting Started
For detailed implementation guidelines and integration examples, refer to the subsequent sections covering specific protocol components and operations.
Last updated