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:
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.