Skip to main content
Close a vote and return LP when its proposal state permits. unstake_vote returns no data. Instruction data is one discriminator byte (0x0e), followed by Borsh arguments in the order shown.

Authority and conditions

Voter signs. While status Active, allowed only BEFORE voting ends. After voting ends, finalize first. Approved/Executed OptOut leaves LP allocated to withdrawal; other choices/states return LP.

Accounts

Fixed accounts use zero-based indices. S means signer; W means writable. Unmarked accounts are read-only non-signers.

Arguments

None.

Remaining accounts

None consumed by this handler. The optional withdrawal slot is index 9, before the event accounts. Use the vault program ID as a read-only None sentinel for Reject. The voting reference corrects the SDK constructor order. See common accounts for shared PDA conventions.