Managers: the
sdk-scripts CLI does this with vault:add-adaptor followed by a per-integration *:init command (e.g. kamino:market:init, spot:earn:init) — it derives the strategy, discriminator, and accounts for you. This page shows the programmatic SDK path for embedding strategy setup in your own code.Setup
The v2 SDK uses direct instruction builders:1. Add The Adaptor
2. Initialize The Strategy
Strategy initialization is protocol-specific. You need:- the target
strategyPDA or address - the adaptor program address
- the protocol-specific
instructionDiscriminator - any extra serialized arguments
- the required remaining accounts
What Is Protocol-Specific
The Voltr side is stable. The following pieces vary by adaptor and target protocol:- how the
strategyaddress is derived - the instruction discriminator
- the remaining accounts list
- any extra arguments required by the adaptor