Skip to main content

createWrapperWithdrawInstruction

Builds a raw instruction that burns tranche LP shares, withdraws SY, and redeems SY back to base assets.

Usage

Accounts

Args

Remaining accounts

Append remaining accounts in this order:
  1. SY redeem CPI accounts, with length redeemSyAccountsUntil
  2. Tranching getSyState and withdrawSy CPI accounts
Use TranchingMarket.ixWrapperWithdraw to build this ordering automatically.

Returns

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