Skip to content

Commit

Permalink
adjust settle for token 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
abrzezinski94 committed Nov 19, 2024
1 parent 6547855 commit f978dde
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions client/ts/src/uiWrapperObj.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,12 @@ export class UiWrapper {

public settleIx(
market: Market,
platformTokenAccount: PublicKey,
referrerTokenAccount: PublicKey,
accounts: {
platformTokenAccount: PublicKey;
referrerTokenAccount: PublicKey;
baseTokenProgram?: PublicKey;
quoteTokenProgram?: PublicKey;
},
params: SettleFundsInstructionArgs,
): TransactionInstruction {
const { owner } = this.data;
Expand Down Expand Up @@ -246,11 +250,11 @@ export class UiWrapper {
vaultQuote,
mintBase,
mintQuote,
tokenProgramBase: TOKEN_PROGRAM_ID,
tokenProgramQuote: TOKEN_PROGRAM_ID,
tokenProgramBase: accounts.baseTokenProgram || TOKEN_PROGRAM_ID,
tokenProgramQuote: accounts.quoteTokenProgram || TOKEN_PROGRAM_ID,
manifestProgram: MANIFEST_PROGRAM_ID,
platformTokenAccount,
referrerTokenAccount,
platformTokenAccount: accounts.platformTokenAccount,
referrerTokenAccount: accounts.referrerTokenAccount,
},
params,
);
Expand Down

0 comments on commit f978dde

Please sign in to comment.