# Oracle Module

Fyde Protocol operates by allowing users to deposit/withdraw assets by minting/burning $TRSY, and swapping the USD value of one asset for another. To facilitate these functionalities, accurate and current price information for all supported assets is crucial. This is where oracles come into play - providing reliable and real-time price feeds to ensure that the protocol functions accurately and securely.

## Fyde’s Oracle Design <a href="#fydes-oracle-design" id="fydes-oracle-design"></a>

Fyde’s design incorporates a blend of Chainlink and Uniswap V3 TWAP (Time-Weighted Average Price) oracles, utilizing a 30-minute time window to fetch price data. This hybrid approach aims to harness the benefits of both Chainlink’s decentralized oracle network and Uniswap V3’s on-chain TWAP oracles to achieve more robust and reliable price feeds.

## Aggregation and Circuit Breakers <a href="#aggregation-and-circuit-breakers" id="aggregation-and-circuit-breakers"></a>

When the protocol needs to ascertain the value of an asset, it doesn’t rely on a single source (however some assets may have a single source). Instead, it aggregates prices from Chainlink and Uniswap V3 TWAP, enhancing reliability and accuracy. Alongside aggregation, the implementation of circuit breakers adds an extra layer of security. Circuit breakers can halt operations based on predefined conditions, adding robustness against abnormal price movements or possible oracle failures.

## Managing Risks and Asset Whitelisting <a href="#managing-risks-and-asset-whitelisting" id="managing-risks-and-asset-whitelisting"></a>

Recognizing the potential risks associated with on-chain TWAPs, such as susceptibility to attacks and price manipulations, Fyde implements several in-depth risk management strategies. One such strategy is the application of a stringent whitelist criterion, ensuring that only assets meeting specific standards, such as substantial liquidity in Uniswap V3 pools, notable trading volumes and market caps, doxxed founders, etc. are integrated into the protocol. Another strategy involves assessing the historical price performance of a token in comparison to a broad spectrum of crypto tokens over the same timeframe (drilling down to the minute level), ensuring that the token exhibits “normal” price behavior in the moments leading up to it’s deposit into the vault. These precautions aim to mitigate the risks of price manipulations, thereby maintaining the integrity and stability of the Fyde Protocol’s operations.


---

# 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://docs.fyde.fi/technical-overview/high-level-architecture/oracle-module.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.
