Skip to content

Commit 76accd9

Browse files
committed
fix: zero core-vault-infow timespan
1 parent 5e2ec17 commit 76accd9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/fasset-indexer-api/src/analytics/dashboard.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export class DashboardAnalytics extends SharedAnalytics {
241241
}
242242

243243
async coreVaultInflowTimespan(timestamps: number[]): Promise<FAssetTimespan<bigint>> {
244-
return this.prepareTimespan(this.coreVaultInflowDuring.bind(this), timestamps)
244+
return this.prepareTimespan(this.coreVaultInflowAt.bind(this), timestamps)
245245
}
246246

247247
async coreVaultBalanceTimespan(timestamps: number[]): Promise<FAssetTimespan<bigint>> {
@@ -500,6 +500,10 @@ export class DashboardAnalytics extends SharedAnalytics {
500500
return this.convertOrmResultToFAssetValueResult(result, 'total_agent_balance')
501501
}
502502

503+
protected async coreVaultInflowAt(em: EntityManager, timestamp: number): Promise<FAssetValueResult> {
504+
return this.coreVaultInflowDuring(em, 0, timestamp)
505+
}
506+
503507
protected async trackedAgentBackingAt(em: EntityManager, timestamp: number): Promise<FAssetValueResult> {
504508
return this.trackedAgentBackingDuring(em, 0, timestamp)
505509
}

0 commit comments

Comments
 (0)