Skip to content

Commit

Permalink
feat: optimize governance positions (#1990)
Browse files Browse the repository at this point in the history
* feat: optimize governance positions

* cleanup

* cleanup

* go

* go
  • Loading branch information
guibescos authored Oct 3, 2024
1 parent 4d199c8 commit 69ac6d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions governance/pyth_staking_sdk/src/pyth-staking-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,12 @@ export class PythStakingClient {
stakeAccountPositions,
})
.instruction(),
await this.stakingProgram.methods
.mergeTargetPositions({ voting: {} })
.accounts({
stakeAccountPositions,
})
.instruction(),
);

return sendTransaction(instructions, this.connection, this.wallet);
Expand Down

0 comments on commit 69ac6d7

Please sign in to comment.