Skip to main content
LP holders stake LP tokens as Reject or OptOut. Both choices count toward rejection. Finalization rejects the proposal when their combined LP reaches the threshold frozen at activation.

Builder contract

eventAuthority is vault.eventAuthority. Account layouts and stored vote fields are listed in the proposal schema.

Stake

createStakeVoteInstruction is exported from @exponent-labs/exponent-sdk and returns a TransactionInstruction. This example casts an OptOut vote:
The vote builders append the optional withdrawal account after the event accounts. Move it before them to match the program’s account order:
The voter signs. Staking requires an active proposal with voting still open. Use VoteChoice.Reject and omit withdrawalAccount for a rejection vote. In that case, insert a read-only vault.programId placeholder at index 9 instead of moving a withdrawal account. A voter can add more LP to the same choice; changing choices requires unstaking first. OptOut creates or tops up the withdrawal PDA immediately and adds that LP to the vault’s pending-withdrawal total. Its creation timestamp is the proposal’s voting deadline. Managers can fill it only after finalization approves the proposal, passing the proposal account to the fill instruction. OptOut is unavailable while withdrawals are blocked or the NAV/AUM circuit breaker is active.

Unstake

createUnstakeVoteInstruction returns a TransactionInstruction signed by the original voter. For the OptOut vote above:
For Reject, omit withdrawalAccount and insert the read-only program-ID placeholder at index 9, as for staking. Accepted opt-out withdrawals follow the fill and claim workflow, and must be filled before the proposal can execute.