# 🧿 | Oracle System

To ensure the accuracy, timeliness, and protection against external tampering of the price information showcased on the <mark style="color:green;">**EasyX**</mark> platform, we implement an **advanced framework of Pyth Oracles and smart contracts.**

The <mark style="color:green;">**Pyth Oracle System**</mark> functions by gathering data from two distinct origins:

1. <mark style="color:green;">**Custom Pricing Oracle:**</mark> The principal and favored data source consists of an off-chain custom pricing oracle that has been meticulously developed for <mark style="color:green;">**EasyX**</mark>'s exclusive use. This oracle amalgamates trade pair prices from multiple exchanges to compute an average price.
2. <mark style="color:green;">**Pyth:**</mark> The second data source stems from **Pyth**, a reputable and reliable supplier of oracle data in the ecosystem.

The <mark style="color:green;">**Pyth Oracle System**</mark> subsequently contrasts the prices acquired from **Pyth** with the primary custom data. In instances where the prices diverge beyond an established threshold, the transaction will be <mark style="color:orange;">**reverted**</mark>. This mechanism guarantees the swift identification and resolution of any inconsistencies or irregularities in data, thereby ensuring the dependability and precision of the price information employed on the platform.

{% hint style="success" %}
To comprehend the inner workings of the <mark style="color:green;">**Pyth Oracle System**</mark>, it's crucial to delve into how **Pyth** operates. **Pyth** functions as a real-time data provider, constantly sourcing information directly from high-quality data producers, such as financial institutions and market makers. These data producers provide accurate and dependable data points, encompassing a diverse array of financial instruments and assets.

**Pyth** employs a groundbreaking mechanism known as the "<mark style="color:green;">**Pyth Data Oracle**</mark>," which is responsible for validating, aggregating, and disseminating this real-time data onto the blockchain. Through a meticulously designed process, **Pyth** ensures the integrity of the data by leveraging cryptographic proofs and consensus mechanisms. This approach not only maintains the accuracy of the information but also shields it from any tampering or manipulation.
{% endhint %}
