🏦 Vaults: The Core Containers
At the heart of Solancer are Vaults, which are on-chain Program Derived Addresses (PDAs). In essence, a vault is a dedicated account on the Solana blockchain that is securely owned and controlled by the Solancer Program. This ownership by a program, rather than a single user, is critical for enabling trustless and autonomous operations.
Each vault's account data is structured to hold all the necessary information for its operation, including:
Asset Storage: The vault holds the SPL tokens that make up the portfolio. These tokens are stored in associated token accounts also owned by the PDA.
Target Weights: A set of predefined, immutable ratios that represent the ideal composition of the portfolio. For example, a vault might have a target weight of 50% USDC and 50% SOL.
Current Balances: The real-time token balances held within the vault.
Deviation Threshold: A configurable parameter (e.g., 5%) that defines the maximum allowable deviation from the target weights before a rebalance is triggered.
When an action is initiated, such as a mint or a rebalance, the Solancer program accesses this account data to perform its logic, ensuring that all operations are transparent and verifiable on-chain.
Last updated

