Skip to main content

Voting on Proposals

LP holders participate in governance by staking their LP tokens to vote on active proposals. See ActionProposal for how the voting model works.

Stake Vote

createStakeVoteInstruction

Stakes LP tokens to cast a vote on an active proposal. The voter chooses either Reject (block the proposal) or OptOut (don’t block, but queue LP for withdrawal if it passes).

Accounts

Args


Unstake Vote

createUnstakeVoteInstruction

Unstakes LP tokens after the voting period has ended. Returns staked LP to the voter.

Accounts

Args

None.
Unstaking is only possible after the proposal has been finalized (either approved or rejected). If you voted OptOut and the proposal passed, your LP is automatically queued for withdrawal instead of being returned.