Architecture
Component Overview
1. MetaVault (Core Vault)
Primary user-facing contract
Manages deposits and withdrawals
Handles fee calculations
Controls investment strategies
Key Responsibilities:
2. ERC7540Engine (Async Operations)
Handles asynchronous operations
Manages withdrawal queues
Processes redemption requests
Calculates optimal routes
Core Functions:
3. SuperformGateway (Cross-chain Bridge)
Manages cross-chain communication
Handles token bridging
Processes cross-chain settlements
Maintains receiver contracts
Key Features:
State Transitions
1. Deposit Flow
2. Cross-chain Investment Flow
3. Withdrawal Flow
Type Definitions
VaultData
VaultConfig
State Management
Accounting States
Cross-chain States
Last updated