review fix
This commit is contained in:
parent
d2b8d76ab6
commit
572a80d1d0
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue