Skip to content

No total TVL aggregate across all pools in Factory #249

Description

@ritaifeoluwa

Description

The Factory contract does not have a way to query the total value locked across all pools. While individual pool TVL can be calculated, there is no aggregate.

Current behavior

No TVL aggregate.

Expected behavior

Add a total_tvl() -> i128 function that returns the sum of all pool TVLs. This would require iterating all pools, so consider maintaining an incremental counter.

Why this matters

Protocol dashboards need total TVL for display and analytics.

Labels

enhancement, factory, hard

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programenhancementNew feature or requestfactoryFactory contracthardRequires deep domain knowledge and careful design — not a quick fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions