Skip to content

Commit

Permalink
Start refresh vault PnL task. (#2603)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwschau authored Nov 25, 2024
1 parent 8d0570d commit 8f0899e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions indexer/services/roundtable/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import marketUpdaterTask from './tasks/market-updater';
import orderbookInstrumentationTask from './tasks/orderbook-instrumentation';
import performComplianceStatusTransitionsTask from './tasks/perform-compliance-status-transitions';
import pnlInstrumentationTask from './tasks/pnl-instrumentation';
import refreshVaultPnlTask from './tasks/refresh-vault-pnl';
import removeExpiredOrdersTask from './tasks/remove-expired-orders';
import removeOldOrderUpdatesTask from './tasks/remove-old-order-updates';
import subaccountUsernameGeneratorTask from './tasks/subaccount-username-generator';
Expand Down Expand Up @@ -272,6 +273,13 @@ async function start(): Promise<void> {
config.LOOPS_INTERVAL_MS_DELETE_FIREBASE_NOTIFICATION_TOKENS_MONTHLY,
);
}
if (config.LOOPS_ENABLED_REFRESH_VAULT_PNL) {
startLoop(
refreshVaultPnlTask,
'refresh-vault-pnl',
config.LOOPS_INTERVAL_MS_REFRESH_VAULT_PNL,
);
}

logger.info({
at: 'index',
Expand Down

0 comments on commit 8f0899e

Please sign in to comment.