# PriceProvider

* Referenced by: MocState, MoC
* References/uses: SafeMath

Provides the price of a token in US dollars. Currently it's a mock of the future functionality, since the price can be set by anyone and there isn't any consensus mechanism. It's assumed that in a future production release there will be a reliable, decentralized price providing oracle. It's used by MocState to get the token price and moving average.

## BtcPriceProvider (PriceProvider)

* Referenced by: MocState, MoC
* References/uses: SafeMath

Provides the price of bitcoin in US dollars. Currently it's a mock of the future functionality, since the price can be set by anyone and there isn't any consensus mechanism. It's assumed that in a future production release there will be a reliable, decentralized price providing oracle. It's used by MocState to get the bitcoin price and moving average.

## MoCPriceProvider (PriceProvider)

* Referenced by: MocState, MoC
* References/uses: SafeMath

Provides the price of MoC token in US dollars. Currently it's a mock of the future functionality, since the price can be set by anyone and there isn't any consensus mechanism. It's assumed that in a future production release there will be a reliable, decentralized price providing oracle. It's used by MocState to get the MoC token price.


---

# 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.moneyonchain.com/main-rbtc-contract/money-on-chain-platform/contracts-architecture/priceprovider.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.
