Skip to content

Standardise all Oracle output prices to 18 decimals via canonical view #773

Description

@nanaf6203-bit

Problem Statement

Oracle prices come in different decimal scales, confusing UI display.

Why it matters

Heterogeneous scales break charts and lending collaterals.

Technical Context

Add get_valuation_18_decimals(property_id) returning normalised scale.

Expected Outcome

All consumers read normalised prices.

Acceptance Criteria

  1. New view message solid.
  2. Docs state normalisation constant.
  3. SDK wrapper.
  4. Tests for rounding.

Implementation Notes

Helper that multiplies by 10^16.

Files or modules likely to be affected

contracts/oracle/src/lib.rs.

Dependencies

None.

Difficulty level

MEDIUM.

Estimated effort

S (~1 day).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions