For DeFi Protocols

The Ranger protocol consists of two main programs, vault and adaptor, that enable customizable yield strategies.

Vault (voltr-vault program)

Vaults are the primary user interface, managing deposits and handling the accounting of user shares.

Adaptor (voltr-adaptor program)

Adaptors are specialized components, plugged into vaults by vault managers, 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

Fund Flow

Vault <-> Adaptor <-> External Protocol

Integration Paths

  • Building a new adaptor? See the Adaptor Creation Guide for implementing protocol-specific deposit, withdraw, and strategy logic.

  • Integrating with existing vaults via CPI? See the CPI Integration Guide for on-chain deposit and withdrawal instructions.

Last updated