The VaultManager (implemented as ProtocolVaultManager) is the central automation hub of the Zeur protocol, orchestrating yield generation and management across multiple liquid staking protocols. It serves as the bridge between automated systems and the protocol's vault infrastructure, enabling intelligent yield optimization and distribution.
The contract integrates with two key automation systems:
ElizaOS: AI-powered intelligent rebalancing between staking protocols
Chainlink Automation: Decentralized keepers for yield harvesting and distribution
Purpose: Initializes the contract with access control and pool reference.
Parameters:
initialAuthority: Access manager contract address
pool: Main Pool contract address
Process:
Initializes access control
Sets up UUPS upgradeability
Stores pool contract reference
Access Control & Security
Role-Based Permissions
Permission Structure:
ElizaOS Agent: rebalance() function access
Chainlink Keepers: distributeYield() and harvestYield() access
Protocol Admin: Emergency controls and upgrades
Risk Mitigation
Router Validation: Only whitelisted staking protocols
Asset Validation: Only registered debt assets
Atomic Operations: Prevent partial failures
Error Handling: Graceful failure recovery
Circuit Breakers: Emergency pause capabilities
Configuration
Initialization
Role Setup
Chainlink Automation Setup
Integration Examples
ElizaOS Agent Call
Chainlink Keeper Execution
Events & Monitoring
All functions emit comprehensive events for monitoring automation performance, yield generation, and rebalancing activities. These events enable off-chain analytics and alert systems to track protocol health and optimization effectiveness.
The VaultManager serves as the critical automation layer enabling efficient yield generation while maintaining optimal risk-return profiles through intelligent automation systems.