From 07f4247286e38f311e964c842cd978c4ed2a3f38 Mon Sep 17 00:00:00 2001 From: gmbronco <83549293+gmbronco@users.noreply.github.com> Date: Thu, 19 Oct 2023 12:14:34 +0200 Subject: [PATCH] dep info --- modules/pool/lib/pool-usd-data.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/pool/lib/pool-usd-data.service.ts b/modules/pool/lib/pool-usd-data.service.ts index 24b7cff6c..da03195d0 100644 --- a/modules/pool/lib/pool-usd-data.service.ts +++ b/modules/pool/lib/pool-usd-data.service.ts @@ -260,6 +260,10 @@ export class PoolUsdDataService { await prismaBulkExecuteOperations(operations); } + /** + * This function depends on pools data to be up to date, so it should be called after + * poolService.syncAllPoolsFromSubgraph or mutation poolSyncAllPoolsFromSubgraph + */ public async updateLifetimeValuesForAllPools() { let updates: any[] = []; const subgraphPools = await this.balancerSubgraphService.getAllPools({});