From 572a80d1d0a139c027526579ae82192f4d877e28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Brzezin=CC=81ski?= Date: Sun, 15 Jan 2023 01:31:06 +0100 Subject: [PATCH] review fix --- ts/client/src/client.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ts/client/src/client.ts b/ts/client/src/client.ts index 6535a223b..5139b3616 100644 --- a/ts/client/src/client.ts +++ b/ts/client/src/client.ts @@ -842,16 +842,12 @@ export class MangoClient { serum3Account.marketIndex, )!; - const openOrders = mangoAccount.serum3.find( - (account) => account.marketIndex === serum3Market.marketIndex, - )!.openOrders; - const closeOOIx = await this.serum3CloseOpenOrdersIx( group, mangoAccount, serum3Market.serumMarketExternal, ); - healthAccountsToExclude.push(openOrders); + healthAccountsToExclude.push(serum3Account.openOrders); instructions.push(closeOOIx); }