Skip to content

Commit

Permalink
Merge pull request #208 from 0xbridges/master
Browse files Browse the repository at this point in the history
added missing parameters in SettleFundsIx function
  • Loading branch information
binyebarwe authored Dec 30, 2023
2 parents 2394d7d + 697ef56 commit 095e569
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 095e569

Please sign in to comment.