Vault System and Liquid Staking Integration

Overview

The ZEUR vault system automatically stakes deposited collateral across multiple liquid staking token (LST) protocols to maximize yield while maintaining liquidity. This innovative approach allows users to earn staking rewards on their collateral while simultaneously using it for borrowing, significantly improving capital efficiency.

Vault Architecture

VaultETH (Ethereum Vault)

The ETH vault manages Ethereum deposits and distributes them across multiple LST protocols:

contract VaultETH is AccessManagedUpgradeable, UUPSUpgradeable, IVault {
    // Staking routers for different LST protocols
    mapping(address => bool) public stakingRouters;

    // Track staked amounts per protocol
    mapping(address => uint256) public stakedAmounts;
}

Supported LST Protocols:

  • Lido: stETH integration

  • RocketPool: rETH integration

  • EtherFi: eETH integration

  • Morpho: Morpho vault integration

The LINK vault manages LINK token deposits and stakes them via StakeLink:

Supported Staking:

  • StakeLink: stLINK integration

Staking Router System

Router Architecture

Each LST protocol has a dedicated staking router that handles protocol-specific interactions:

Router Interface

All staking routers implement a common interface:

ETH Staking Integration

1. Lido Integration (stETH)

StakingRouterETHLido manages stETH staking:

Key Features:

  • Automatic stETH accumulation

  • Withdrawal queue management

  • Rebase token handling

2. RocketPool Integration (rETH)

StakingRouterETHRocketPool manages rETH staking:

Key Features:

  • Direct ETH deposits

  • rETH exchange rate handling

  • Instant liquidity via rETH/ETH trading

3. EtherFi Integration (eETH)

StakingRouterETHEtherfi manages eETH staking:

Key Features:

  • Native restaking integration

  • Eigenlayer compatibility

  • Enhanced yields through restaking

4. Morpho Integration

StakingRouterETHMorpho manages Morpho vault deposits:

Key Features:

  • Lending market yields

  • Morpho optimization

  • Variable rate returns

StakingRouterLINK manages LINK staking via StakeLink:

Key Features:

  • Native LINK staking rewards

  • stLINK liquid staking token

  • Withdrawal queue management

Staking Strategy Management

Distribution Strategy

The vault automatically distributes deposits across multiple protocols based on:

  1. Target Allocations: Predefined percentages per protocol

  2. Yield Optimization: Dynamic allocation based on returns

  3. Risk Management: Diversification across protocols

  4. Liquidity Needs: Maintain adequate unstaking capacity

Example ETH Distribution

Rebalancing Logic

Vault Operations

1. Lock Collateral (Stake)

When users supply collateral:

2. Unlock Collateral (Unstake)

When users withdraw collateral:

3. Emergency Unstaking

For liquidations or urgent withdrawals:

Yield Management

Reward Collection

Staking rewards are automatically collected and managed:

Reward Distribution

Options for reward handling:

  1. Auto-Compound: Automatically restake rewards

  2. Protocol Fee: Take percentage for protocol treasury

  3. User Distribution: Distribute proportionally to depositors

Liquidity Management

Withdrawal Queue

For protocols with withdrawal delays:

Liquidity Buffer

Maintain liquid reserves for immediate withdrawals:

Integration Benefits

For Users

  1. Passive Income: Automatic staking rewards

  2. Diversification: Risk spread across multiple protocols

  3. No Management: Set-and-forget staking

  4. Liquidity: Collateral remains borrowable

For Protocol

  1. Yield Generation: Additional revenue streams

  2. Competitive Advantage: Higher effective APY

  3. Risk Mitigation: Protocol diversification

  4. Capital Efficiency: Productive use of idle assets

Risk Management

Protocol Risk Mitigation

  1. Diversification: Multiple LST protocols

  2. Allocation Limits: Maximum exposure per protocol

  3. Emergency Controls: Pause and withdraw mechanisms

  4. Insurance Integration: Slashing protection where available

Slashing Risk Management

Monitoring and Alerts

Gas Optimization

Batch Operations

Efficient Rebalancing

  • Minimize number of transactions

  • Optimize gas usage across protocols

  • Batch reward collection and distribution

The vault system provides a sophisticated foundation for automated yield generation while maintaining the liquidity and composability required for the ZEUR lending protocol.

Last updated