> For the complete documentation index, see [llms.txt](https://funarchy.gitbook.io/funarchy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://funarchy.gitbook.io/funarchy/security-for-prediction-market/oracle-and-data/equality-boundary-settlement-precision-risk.md).

# Equality Boundary Settlement Precision Risk

#### Description

In ultra-short-term crypto prediction markets, if the settlement price is calculated based on higher precision (additional decimal places) than the value displayed in the UI, a discrepancy may occur between the price perceived by the user and the actual settlement price.

In particular, while only rounded prices are displayed in the UI, actual settlements may differ if full decimal precision of Oracle data is used, even if users perceive them as the same price.

In this case, even if market participants correctly understand the rulebook, it becomes difficult to predict the actual settlement results, and market reliability and predictability may be reduced.

#### Real World Case

{% stepper %}
{% step %}
In Polymarket's Solana 15-minute Up/Down market, there were instances where the market result was settled as Down even though the start and end prices were displayed identically in the UI.
{% endstep %}

{% step %}
The market rulebook defined that if the closing price is greater than or equal to the starting price, the settlement is to be Up.
{% endstep %}

{% step %}
However, the actual settlement was performed based on the full decimal precision of the Chainlink SOL/USD data stream, and the closing price was calculated to be slightly lower than the starting price due to additional decimal value differences not displayed in the UI.
{% endstep %}

{% step %}
As a result, although it was expected to end as 'Up' based on the UI price, a discrepancy occurred where it was processed as 'Down' during the actual settlement.
{% endstep %}
{% endstepper %}

#### Mitigation

* **Sort Display Precision = Settlement Precision.**
  * Match between user perception and actual settlement results
  * Eliminating hidden precision-based result discrepancies
* **Specify Settlement Rounding Rule**
  * Apply explicit rounding rules before settlement comparison
* **Precision Disclosure**
  * The UI displays the actual comparison precision.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://funarchy.gitbook.io/funarchy/security-for-prediction-market/oracle-and-data/equality-boundary-settlement-precision-risk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
