-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program
Description
Description
Expose a backend endpoint that returns the latest health metrics and compliance score for a commitment, as computed by the attestation engine.
Implementation Requirements
- Path:
src/app/api/commitments/[id]/health/route.ts. - Use contracts/attestation service:
get_health_metrics(commitmentId)calculate_compliance_score(commitmentId)if separate.
- Response:
currentValue,initialValue,drawdownPercent,feesGenerated,volatilityExposure,lastAttestation,complianceScore.
Acceptance Criteria
- Endpoint exists and returns health metrics.
- Handles missing or invalid commitment IDs.
- Shape matches what frontend health UI expects.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program