> For the complete documentation index, see [llms.txt](https://astonic.gitbook.io/astonic-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://astonic.gitbook.io/astonic-docs/astonic-protocol-concepts/astonic-protocol-oracles.md).

# Astonic Protocol Oracles

An oracle in blockchain is a service that provides real-world data (like prices, weather, or events) to smart contracts on a blockchain, enabling them to interact with external information.

### The Oracle Architecture

The oracle system operates through a sophisticated dual-layer architecture, combining off-chain data gathering with on-chain validation and storage. At its core, the SortedOracles smart contract acts as a secure vault, meticulously collecting and organizing exchange rate data from various cryptocurrency markets. This creates a robust foundation for stable asset creation and management.

### Protocol Integration and Stability Mechanism

The beauty of this system lies in its elegant simplicity and effectiveness. Think of oracles as the protocol's market analysts, constantly monitoring and reporting price movements across multiple trading pairs. Each exchange pair receives its dedicated rate feed, ensuring precise and timely market alignment.

The stability mechanism relies on this continuous flow of accurate pricing data, much like a ship's navigation system depends on constant stellar readings. This allows for the seamless exchange of collateral assets at market-accurate prices, maintaining the protocol's stability and reliability.


---

# 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://astonic.gitbook.io/astonic-docs/astonic-protocol-concepts/astonic-protocol-oracles.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.
