104: EMC Perps: show estimated Jupiter Value and mark affected totals with ≈

This commit is contained in:
2026-10-26 09:18:29 +01:00
parent cfb49ed896
commit 805e2e7e6e
18 changed files with 338 additions and 36 deletions
@@ -119,3 +119,21 @@ Snapshots SHALL preserve isolated risk prices and Cross account tiers/thresholds
- **WHEN** isolated distance reaches/crosses zero or effective collateral is nonpositive
- **THEN** the signed boundary is preserved or MM percentage is unavailable respectively
- **AND** display rounding does not determine risk classification
### Requirement: Value estimates preserve their sources through totals
Snapshots SHALL preserve Jupiter's reported Value and identify available Jupiter and Phoenix Values as estimates. Every complete Value total SHALL inherit its contributing estimate sources independently of UI expansion. Missing required values SHALL keep totals unavailable. Cross capital SHALL count once. Failed reads SHALL retain the prior values, qualifications and original times with failure status; success SHALL replace them.
#### Scenario: Mixed complete totals
- **WHEN** a wallet has a Jupiter estimate of 12 USD and a Phoenix Cross account estimate of 84 USD with multiple children
- **THEN** wallet and root Value are 96 USD and identify both estimate sources
- **AND** collapsing any group changes neither total nor qualification
#### Scenario: Missing contribution and successful empty scope
- **WHEN** a required Jupiter Value is missing
- **THEN** the dependent Value totals remain unavailable without losing other metrics
- **AND** a successfully read empty scope can still contribute zero
#### Scenario: Failed estimate and recovery
- **WHEN** a valid Jupiter estimate is followed by a malformed observation
- **THEN** the original estimate, its qualification and success/observation times remain with failure status
- **AND** successful subsequent observations replace the estimate, including replacing it with missing Value or clearing an empty scope