Skip to main content
The deposit_vault instruction deposits assets into a Voltr vault and mints LP tokens to the depositor.

Discriminator

Parameters

Accounts

CPI Struct

Implementation

The user_transfer_authority must sign the transaction. The vault’s internal PDAs (vault_asset_idle_auth, vault_lp_mint_auth) are signed by the Voltr Vault program during the CPI — your program does not need to provide their seeds.
Full reference implementation: deposit_vault.rs