Skip to main content

createWrapperDepositInstruction

Builds a raw instruction that mints SY from base assets, deposits the SY into the selected tranche, and mints tranche LP shares.

Usage

Accounts

Args

Remaining accounts

Append remaining accounts in this order:
  1. SY mint CPI accounts, with length mintSyAccountsUntil
  2. Tranching getSyState and depositSy CPI accounts
Use TranchingMarket.ixWrapperDeposit to build this ordering automatically.

Returns

TransactionInstruction - a transaction instruction ready to be added to a transaction.