Introduction
MetaVault Overview
Introduction
MetaVault is a sophisticated ERC7540 implementation enabling cross-chain yield aggregation through integration with the Superform protocol. The vault manages assets across multiple blockchain networks while providing advanced performance tracking, fee distribution systems, and robust risk management controls.
Key Features
Cross-Chain Asset Management
Integration with 7 major blockchain networks
Asynchronous request-based operations
Secure cross-chain messaging via Superform protocol
Advanced Fee System
Performance-based fee calculation
Management fee distribution
Oracle reward mechanism
High watermark tracking
Security Controls
Multi-layer access control
Emergency shutdown capability
Share locking mechanism
Slippage protection
Oracle Integration
Price tracking across chains
Performance monitoring
Yield optimization
Technical Specifications
Inheritance
Dependencies
Libraries
Architecture
State Variables
Constants
Core Storage
Access Control
Roles
Role Permissions
ADMIN_ROLE: Contract configuration and vault management
EMERGENCY_ADMIN_ROLE: Emergency controls and risk management
ORACLE_ROLE: Price updates and performance tracking
MANAGER_ROLE: Investment and divestment operations
RELAYER_ROLE: Cross-chain message handling
Supported Networks
Quick Reference
Operation Matrix
Deposit
requestDeposit
-
-
Investment
investSingleDirectSingleVault
investSingleXChainSingleVault
divestSingleXChainSingleVault
Divestment
divestSingleDirectSingleVault
divestSingleXChainSingleVault
divestMultiXChainMultiVault
Withdrawal
requestRedeem
-
-
Common Flows
Deposit Flow
requestDeposit
: Initiates deposit requestdeposit
: Processes deposit → See Deposit Section_afterDeposit
: Post-deposit processing
Investment Flow
Single Chain:
investSingleDirectSingleVault
→ See Investment SectionCross Chain:
investSingleXChainSingleVault
→ See Cross-Chain Section
Withdrawal Flow
requestRedeem
: Initiates withdrawal → See Withdrawal Sectionredeem
: Processes redemptionwithdraw
: Completes withdrawal
Last updated