Skip to content

Commit 69ac6d7

Browse files
authored
feat: optimize governance positions (#1990)
* feat: optimize governance positions * cleanup * cleanup * go * go
1 parent 4d199c8 commit 69ac6d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

governance/pyth_staking_sdk/src/pyth-staking-client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,12 @@ export class PythStakingClient {
266266
stakeAccountPositions,
267267
})
268268
.instruction(),
269+
await this.stakingProgram.methods
270+
.mergeTargetPositions({ voting: {} })
271+
.accounts({
272+
stakeAccountPositions,
273+
})
274+
.instruction(),
269275
);
270276

271277
return sendTransaction(instructions, this.connection, this.wallet);

0 commit comments

Comments
 (0)