diff --git a/indexer/services/roundtable/src/index.ts b/indexer/services/roundtable/src/index.ts index 22f1697e67..5a2db7c728 100644 --- a/indexer/services/roundtable/src/index.ts +++ b/indexer/services/roundtable/src/index.ts @@ -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'; @@ -272,6 +273,13 @@ async function start(): Promise { 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',