Core Components
The Voltr protocol consists of two main programs, vault and adaptor, that enable customizable yield strategies.
Last updated
The Voltr protocol consists of two main programs, vault and adaptor, that enable customizable yield strategies.
Last updated
voltr-vault program
)Vaults are the primary user interface, managing deposits and handling the accounting of user shares:
Manages vault creation and initialization
Handles user deposits and withdrawals
Controls adaptor addition and removal
Track total assets under management
Handle fee collection and distribution
Maintain security through role separation and max caps
voltr-adaptor program
)Adaptors are specialized components, plugged into vaults by vault owners, that handle the actual interaction with DeFi protocols:
Connect to specific DeFi protocols (e.g. Solend, Drift, Marginfi, Kamino)
Execute deposits and withdrawals of vault funds into external DeFi protocols
Track protocol-specific balances
Handle protocol-specific logic and state management
Maintain standardized interfaces for vault interaction