settle serum after placing order

This commit is contained in:
tjs 2022-12-27 18:50:29 -05:00
parent f72c3cd0ae
commit d2ed61328a
1 changed files with 7 additions and 1 deletions

View File

@ -1263,9 +1263,15 @@ export class MangoClient {
limit,
);
const ix2 = await this.serum3SettleFundsIx(
group,
mangoAccount,
externalMarketPk,
);
return await sendTransaction(
this.program.provider as AnchorProvider,
[ix],
[ix, ix2],
group.addressLookupTablesList,
{
postSendTxCallback: this.postSendTxCallback,