# ChainlinkOracle

[ChainlinkOracle](https://github.com/zkBob/bob-cdp-contracts/blob/main/src/oracles/ChainlinkOracle.sol) smart contract provides an easy way for uniformly obtaining normalized prices of any of the whitelisted ERC20 asset from the corresponding chainlink (or chainlink interface compatible oracle).

## Key concepts

### Chailink feed heartbeat

Each whitelisted Chainlink price feed has an associated heartbeat duration, which describes the timeout for latest submitted price validity. BOB CDP price oracle will stop consider Chainlink price if it's update timestamp falls outside of the configured heartbeat time window.

### Fallback prices

Whenever Chainlink price feeds don't respond, or fails to give a answer within acceptable heartbeat period, ChainlinkOracle will fallback to the price configured by contract owner, if any.

Submitted fallback prices has their own validity period specified by the contract owner.

## Methods

TBD


---

# 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://bob-docs.zkbob.com/bob-cdp/technical-docs/smart-contracts/chainlinkoracle.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.
