Strategies Initialization
Voltr Protocol - Strategy Integration Guide
This guide explains how to add adaptors and initialize strategies in the Voltr Protocol. It covers the process of adding adaptors to vaults and managing strategy lifecycles.
Setup
Import the required dependencies:
Vault owners can integrate with the default adaptor or custom adaptors created by DeFi teams.
Adding Adaptor
Define Required Variables:
Create Add Adaptor Instruction:
Send and Confirm Instruction:
Initializing Strategies
Derive Strategy Address:
Create Strategy Initialization Instruction:
Send and Confirm Transaction:
Required Account Structure
The strategy initialization requires several key accounts:
Core Accounts:
payer
: Account paying for the transactionvault
: The initialized vaultmanager
: Vault manager authoritystrategy
: Derived strategy PDAprotocolProgram
: Target protocol program ID
Protocol-Specific Accounts:
Protocol program account
Any required protocol state accounts
Token accounts and authorities
System accounts (RENT, etc.)
Best Practices
Strategy Selection:
Choose strategies that match your vault's risk profile
Understand the underlying protocol's mechanisms
Verify strategy program compatibility
Risk Management:
Start with small deposits to test strategy
Monitor strategy performance regularly
Have a withdrawal plan for emergencies
Security:
Keep admin keys secure
Test on devnet first
Verify all account permissions
Double-check program IDs
Operations:
Always check strategy balance before removal
Maintain accurate records of deployed assets
Monitor gas costs for operations
Troubleshooting
Strategy Creation Fails:
Verify admin authority
Check counterparty token account exists
Ensure protocol program ID is correct
Strategy Addition Fails:
Verify vault admin authority
Check strategy account exists
Ensure adaptor program matches
Strategy Removal Fails:
Verify strategy has zero balance
Check admin authority
Ensure all funds are withdrawn
Initialization Fails:
Check account permissions
Verify rent exemption
Validate program IDs
For additional support or questions, refer to the Voltr SDK documentation or example scripts.
Last updated