Skip to main content

createWrapperWithdrawFundsInstruction

Builds a raw instruction that withdraws idle funds (PT, YT, or SY) from the order book with automatic SY redemption to the base asset. This combines the withdrawal and SY redemption steps atomically.

Usage

Accounts

Args

Returns

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