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
Out of scope
- Indexer-based reads (DX-088).
Spec: docs/dx_1/003_content_map.md §2 · Depends on: DX-085
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
DX-084 template.
helper example.
liquidation price from returned values.
Acceptance criteria
the same position.
<ParamTable>consistently.Out of scope
Spec:
docs/dx_1/003_content_map.md§2 · Depends on: DX-085