createCancelWithdrawalInstruction
Builds a raw instruction to cancel a previously queued withdrawal. The LP tokens locked in escrow are returned to the owner’s token account and the withdrawal account is closed. Called by the withdrawal account owner.Usage
Accounts
| Name | Signer | Writable | Description |
|---|---|---|---|
owner | Yes | Yes | The withdrawal account owner |
vault | No | No | The Strategy Vault account |
withdrawalAccount | No | Yes | The withdrawal request account to cancel |
tokenLpEscrow | No | Yes | Vault’s LP token escrow account |
tokenLpDst | No | Yes | Owner’s destination LP token account |
tokenProgram | No | No | SPL Token program |
Returns
TransactionInstruction — a transaction instruction ready to be added to a transaction.