Skip to main content
Strip assets, manage the vault’s yield positions, and merge PT and YT back into the underlying asset.

Configure the policies

Use a loaded Strategy Vault named vault, connection, and a manager Keypair. Choose an Exponent Core vault from the yield markets; coreVaultAddress identifies that Core vault, rather than your Strategy Vault.
Install the policy using Configure policies. Scope it with 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. Include initializeYieldPosition 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.
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 of actions 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:
Interest collection has policy permissions and public instruction constructors, but no 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.