# Price Oracle

Hummus Exchange pool design for stablecoins assumes the peg is maintained, however, it is possible that one of them becomes unpegged due to unforeseen reasons. \
\
Hence, Hummus Exchange tracks each token’s exchange rate via [DIA](https://www.diadata.org/), helping protect liquidity providers deposits in case of an unpeg of more of 2% (max price deviation).&#x20;

The use of an oracle is then seen as an additional layer of security for LP. In case there is significant price deviation detected by oracle, this will stop all trades to and from that asset, and also disable withdrawInOtherAsset for that asset.

Please note also that in the case of a bank run (which does not imply unpeg), LP providers may be obliged to withdraw in the most covered asset in the pool.


---

# Agent Instructions: 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:

```
GET https://hummus-exchange.gitbook.io/hummus-exchange/security/price-oracle.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
