createUnstakeVoteInstruction
Builds a raw instruction to reclaim LP tokens that were previously staked for voting on a governance proposal. Can only be called after the proposal has been finalized. The original voter receives their staked LP tokens back from the escrow.Usage
Accounts
| Name | Signer | Writable | Description |
|---|---|---|---|
voter | Yes | Yes | The original voter reclaiming their LP tokens |
vault | No | No | Vault account associated with the proposal |
proposal | No | No | Finalized proposal |
voteAccount | No | Yes | Per-voter account tracking their vote |
tokenLpDst | No | Yes | Voter’s LP token account (destination) |
tokenLpEscrow | No | Yes | Escrow account holding staked LP tokens |
mintLp | No | No | LP token mint |
tokenProgram | No | No | SPL Token program |
Returns
TransactionInstruction — a transaction instruction ready to be added to a transaction.