Don't reload openorders if there's no active markets
This commit is contained in:
parent
8156e2396d
commit
cd3f6a684a
|
@ -115,6 +115,7 @@ export class MangoAccount {
|
|||
|
||||
async reloadSerum3OpenOrders(client: MangoClient): Promise<MangoAccount> {
|
||||
const serum3Active = this.serum3Active();
|
||||
if (!serum3Active.length) return this;
|
||||
const ais =
|
||||
await client.program.provider.connection.getMultipleAccountsInfo(
|
||||
serum3Active.map((serum3) => serum3.openOrders),
|
||||
|
|
Loading…
Reference in New Issue