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

# oracle

## Purpose

{% hint style="info" %}

{% endhint %}

\
The purpose of the price oracle is to balance the payout of $GOLD earned through mining with the cost of minting the current USD value of $GOLD.\
\
This means that if the dollar value per $GOLD increases, the following will happen:\ <br>

* $GOLD spend less<br>

* Mint Hero Costs Less $GOLD\
  \
  If the price of $GOLD USD decreases, the above situation is reversed.\
  \
  The oracle will dynamically adjust costs and rewards based on changes in the dollar value of $GOLD.\ <br>

* ## Reason

  The reason for using an oracle is to keep the game's economy balanced around a set dollar value. There is a limited amount of $GOLD tokens that can be circulated in the economy, and an influx of players could exhaust all $GOLD tokens present in the game contract.\
  \
  Through the use of oracles, Dragon War establishes a connection between active users and the dollar value of $GOLD. The assumption is that when the price of $GOLD rises, demand for $GOLD also increases with the release of new game features or an influx of new players. The oracle ensures that each transaction pays a consistent dollar value at the time of the transaction, while also ensuring that the minting cost of NFTs maintains a consistent dollar value\
  \
  This means that entry costs and rewards can be balanced and maintained over the long term, and will accurately reflect the required minting costs to give new players a chance to play even as the dollar value of $GOLD increases.


---

# 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://dragon-war.gitbook.io/dragon-war/rewards/oracle.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.
