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
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() -> i128function 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