Skip to content

Commit

Permalink
Ignoring error.
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-silva-funttastic committed Sep 22, 2023
1 parent 1a812b8 commit e6ef504
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions src/connectors/kujira/kujira.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1313,16 +1313,23 @@ export class Kujira {
).idx;
}

partialResponse = await this.kujiraQueryClientWasmQueryContractSmart(
market.connectorMarket.address,
{
orders_by_user: {
address: ownerAddress,
limit: KujiraConfig.config.orders.open.paginationLimit,
start_after: startAfter,
},
try {
partialResponse =
await this.kujiraQueryClientWasmQueryContractSmart(
market.connectorMarket.address,
{
orders_by_user: {
address: ownerAddress,
limit: KujiraConfig.config.orders.open.paginationLimit,
start_after: startAfter,
},
}
);
} catch (error: any) {
if (error.message.includes('Cannot Sub with 0 and 1')) {
break;
}
);
}

const combinedOrders = [
...response.orders,
Expand Down

0 comments on commit e6ef504

Please sign in to comment.