Skip to content

DX-086: Document the SyntheticsReader contract #598

Description

@IbrahimIjai

Context

SyntheticsReader is the read path integrators will use most: positions, market
state, and derived values without reconstructing them from raw storage. Getting
its units and scaling right is the difference between a working integration and
one that is off by six decimal places.

Scope

  • The contract's role and when to use it instead of DataStore.
  • Every read function with parameters, return shapes, and errors, following the
    DX-084 template.
  • Decimal scaling for every returned value, stated explicitly, with a conversion
    helper example.
  • Worked examples: reading a position, reading market state, computing a
    liquidation price from returned values.
  • Cross-links to the concept pages that explain what the numbers mean.

Acceptance criteria

  • Function coverage asserted against the generated bindings.
  • Every returned numeric value has its scale documented.
  • The liquidation-price example agrees with what the interface displays for
    the same position.
  • Uses <ParamTable> consistently.

Out of scope

  • Indexer-based reads (DX-088).

Spec: docs/dx_1/003_content_map.md §2 · Depends on: DX-085

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programdocumentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions