Vaults

Product Overview

Vaults are specialized asset managers in the ZeUSD protocol, implementing the BaseVault interface to handle specific asset types and their interactions. The current implementation focuses on USYC vault management with support for secondary assets.

Core Components

1. Asset Management System

The Asset Management System handles both primary (USYC) and secondary assets through a structured approach:

1.1 Asset Registry

Key Features:

  • Primary asset immutability

  • Dynamic secondary asset support

  • Asset validation checks

  • Event emission for tracking

2. Deposit Flow

Key Components:

  • Asset type detection

  • Amount validation

  • Slippage protection

  • Transfer security

3. Emergency Control System

Features:

  • Emergency mode activation

  • Time-delayed withdrawals

  • Admin-only controls

  • Event logging

4. Asset Support Management

Implementation:

5. Error Handling

Comprehensive error system:

6. Events

7. Security Features

Key Security Features:

  • Role-based access control

  • Pausable operations

  • Emergency mode

  • Slippage protection

  • Amount validation

  • Asset verification

8. Integration Flow

Integration Points:

  • Router interface

  • Registry validation

  • Asset transfers

  • Event emission

This documentation reflects the current implementation focusing on:

  • USYC vault specifics

  • Secondary asset support

  • Emergency controls

  • Security features

  • Integration patterns

The system provides a secure and flexible framework for managing USYC and secondary assets while maintaining protocol security and efficiency.

Last updated