Configure the policies
Use a loaded Strategy Vault namedvault, connection, and a manager Keypair. Choose an Exponent Core vault from the yield markets; coreVaultAddress identifies that Core vault, rather than your Strategy Vault.
allowedVaults or allowedSyMints: a nonempty vault list takes precedence over the SY list. Omitting both, or supplying empty lists, allows any Core vault for the selected actions.
Prepare a yield position
The builder prepares supported token accounts and yield-position initialization for Core actions. IncludeinitializeYieldPosition in the installed policy when that account may need creation. Configure price paths for the base, SY, PT, and YT holdings involved.
For manual preparation, coreAction.initializeYieldPosition({ vault: coreVaultAddress }) initializes the Squads owner’s yield position. Register that yield position and the token accounts used by the actions before the sync example. Use AddYieldPositionEntry through vault settings with the Core vault and both PT/SY price references, then refresh AUM and reload. Explicit initialization with automatic tracking enabled can prepare that registration for you.
Strip and merge assets
The amount below is in the base token’s smallest units; use the selected mint’s decimals.- Transaction builder
- Sync helpers
build() returns an execution plan: ordered transactionSets containing instructions, additional signers, and lookup table addresses. The builder schedules supported setup and refreshes; send() simulates and submits the sequence.Manage YT and merge
Use these actions in place ofactions above. merge consumes equal amounts of PT and YT from token accounts. If the YT is in the yield position, withdraw it first, confirm that execution, and refresh AUM before merging.
Construct an interest instruction with the public amount helper:
coreAction descriptor. Package its vault-signed instructions using manual transaction construction; create any required ATAs with the manager as payer and the Squads vault as owner. Do not submit wrapper-returned ATA setup unchanged when its payer is the Squads PDA. Authorize any additional SY-program calls and package instructions that require the Squads signature inside its execution.
Market Two is a legacy AMM and is no longer used. For PT and YT trading, see Exponent CLMM.