Skip to content

Commit

Permalink
add slicing?
Browse files Browse the repository at this point in the history
  • Loading branch information
dydxwill committed May 15, 2024
1 parent 09ac132 commit be92f67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion indexer/services/roundtable/src/helpers/pnl-ticks-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export async function getPnlTicksCreateObjects(
const accountsToUpdate: string[] = [
...getAccountsToUpdate(accountToLastUpdatedBlockTime, blockTime),
...newSubaccountIds,
];
].slice(0, 200);
stats.gauge(
`${config.SERVICE_NAME}_get_ticks_accounts_to_update`,
accountsToUpdate.length,
Expand Down Expand Up @@ -172,6 +172,7 @@ export async function getPnlTicksCreateObjects(
message: 'got subaccountTotalTransfersMap',
});


// Find open positions for subaccounts
const openPerpetualPositions: SubaccountToPerpetualPositionsMap = await
PerpetualPositionTable.findOpenPositionsForSubaccounts(
Expand Down

0 comments on commit be92f67

Please sign in to comment.