Skip to content

Commit

Permalink
added missing parameters in SettleFundsIx function
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbridges committed Dec 30, 2023
1 parent 2394d7d commit 697ef56
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ts/client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,10 @@ export class OpenBookV2Client {
openOrdersAccount: OpenOrdersAccount,
marketPublicKey: PublicKey,
market: MarketAccount,
userBaseAccount: PublicKey,
userQuoteAccount: PublicKey,
referrerAccount: PublicKey | null,
penaltyPayer: PublicKey | null,
openOrdersDelegate?: Keypair,
): Promise<[TransactionInstruction, Signer[]]> {
const ix = await this.program.methods
Expand All @@ -896,8 +900,14 @@ export class OpenBookV2Client {
marketBaseVault: market.marketBaseVault,
marketQuoteVault: market.marketQuoteVault,
tokenProgram: TOKEN_PROGRAM_ID,
SystemProgram: SystemProgram.programId,
userBaseAccount: userBaseAccount,
userQuoteAccount: userQuoteAccount,
referrerAccount: referrerAccount,
penaltyPayer: penaltyPayer
})
.instruction();

const signers: Signer[] = [];
if (openOrdersDelegate != null) {
signers.push(openOrdersDelegate);
Expand Down

0 comments on commit 697ef56

Please sign in to comment.