review fix

This commit is contained in:
Adrian Brzeziński 2023-01-15 01:31:06 +01:00
parent d2b8d76ab6
commit 572a80d1d0
1 changed files with 1 additions and 5 deletions

View File

@ -842,16 +842,12 @@ export class MangoClient {
serum3Account.marketIndex, serum3Account.marketIndex,
)!; )!;
const openOrders = mangoAccount.serum3.find(
(account) => account.marketIndex === serum3Market.marketIndex,
)!.openOrders;
const closeOOIx = await this.serum3CloseOpenOrdersIx( const closeOOIx = await this.serum3CloseOpenOrdersIx(
group, group,
mangoAccount, mangoAccount,
serum3Market.serumMarketExternal, serum3Market.serumMarketExternal,
); );
healthAccountsToExclude.push(openOrders); healthAccountsToExclude.push(serum3Account.openOrders);
instructions.push(closeOOIx); instructions.push(closeOOIx);
} }