Skip to content

feat: add public protocol-wide statistics aggregation view#360

Merged
OxDev-max merged 2 commits into
OpenLedger-Foundation:mainfrom
Neche58:feature/protocol-stats-aggregation-view
Jun 30, 2026
Merged

feat: add public protocol-wide statistics aggregation view#360
OxDev-max merged 2 commits into
OpenLedger-Foundation:mainfrom
Neche58:feature/protocol-stats-aggregation-view

Conversation

@Neche58

@Neche58 Neche58 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor
  • Add ProtocolStats struct to shared/types.rs
  • Fix missing closing brace on PositionSaleOffer in shared/types.rs
  • Add DataKey variants: AggregateFunded, MaxPositionBps, ProtocolStats
  • Increment pools_opened and active_pools in release_funds
  • Increment total_repaid and decrement active_pools in repay on close
  • Increment pools_defaulted and decrement active_pools in mark_default
  • Increment total_repaid and decrement active_pools in accept_early_settlement
  • Add get_protocol_stats() public view returning ProtocolStats

Closes #272

- Add ProtocolStats struct to shared/types.rs
- Fix missing closing brace on PositionSaleOffer in shared/types.rs
- Add DataKey variants: AggregateFunded, MaxPositionBps, ProtocolStats
- Increment pools_opened and active_pools in release_funds
- Increment total_repaid and decrement active_pools in repay on close
- Increment pools_defaulted and decrement active_pools in mark_default
- Increment total_repaid and decrement active_pools in accept_early_settlement
- Add get_protocol_stats() public view returning ProtocolStats

Closes OpenLedger-Foundation#272
@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@Neche58 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@OxDev-max OxDev-max merged commit 60e2d68 into OpenLedger-Foundation:main Jun 30, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement a public protocol-stats aggregation view for analytics/dashboards

2 participants