From 697ef568598073c66ee744282830eeff5dbaefc3 Mon Sep 17 00:00:00 2001 From: 0xbridges Date: Sat, 30 Dec 2023 05:26:06 +0400 Subject: [PATCH] added missing parameters in SettleFundsIx function --- ts/client/src/client.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ts/client/src/client.ts b/ts/client/src/client.ts index 8858b3ac5..42839a5c2 100644 --- a/ts/client/src/client.ts +++ b/ts/client/src/client.ts @@ -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 @@ -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);