Skip to content

Commit

Permalink
feat: update validation on market and position decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiajia-Cui committed Mar 26, 2024
1 parent bace2df commit f799eaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocol/0070-MKTD-market-decimal-places.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ Trades of course result in transfers. The amounts transferred (for the trade as
## Acceptance criteria

- As a user, I can propose a market with a different precision than its settlement asset
- This proposal is valid if the precision is NOT greater than the settlement asset (<a name="0070-MKTD-001" href="#0070-MKTD-001">0070-MKTD-001</a>). For product spot: (<a name="0070-MKTD-016" href="#0070-MKTD-016">0070-MKTD-016</a>)
- This proposal is NOT valid if the precision is greater than the settlement asset (<a name="0070-MKTD-002" href="#0070-MKTD-002">0070-MKTD-002</a>). For product spot: (<a name="0070-MKTD-009" href="#0070-MKTD-009">0070-MKTD-009</a>)
- This proposal is valid if the precision is NOT greater than the settlement asset precision - position precision (<a name="0070-MKTD-021" href="#0070-MKTD-021">0070-MKTD-021</a>). For product spot: (<a name="0070-MKTD-022" href="#0070-MKTD-022">0070-MKTD-022</a>)
- This proposal is NOT valid if the precision is greater than the settlement asset precision - position precision (<a name="0070-MKTD-023" href="#0070-MKTD-023">0070-MKTD-023</a>). For product spot: (<a name="0070-MKTD-024" href="#0070-MKTD-024">0070-MKTD-024</a>)
- Assert that the settlement calculation can be correctly calculated when:
- settlement data precision is > than the settlement asset precision (i.e. settlement data has more precision (decimal places) than the settlement asset and precision will be lost) (<a name="0070-MKTD-018" href="#0070-MKTD-018">0070-MKTD-018</a>)
- settlement data precision is < than the settlement asset precision (i.e. settlement data has less precision (decimal places) than the settlement asset and no precision will be lost) (<a name="0070-MKTD-019" href="#0070-MKTD-019">0070-MKTD-019</a>)
Expand Down

0 comments on commit f799eaf

Please sign in to comment.