Merge pull request #531 from blockworks-foundation/pan/fix-reload-oos
Don't reload OpenOrders if there's no active markets
This commit is contained in:
commit
268ccfd03c
|
@ -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