If you are able to donate and contribute to the Haven project, please click here. Thank you.
What is an Oracle?
In order for the Haven network to retrieve accurate and reliable price feed for XHV and all xAssets it requires an oracle. The oracle connects to a range of different price sources and feeds this to the network.
The price given in the Haven Vault for conversions can vary from the spot price on exchanges. This is because it uses a moving average based on the following:
- 2880 pricing records per day get pulled from the oracle at 30 second intervals. This forms the 24hr moving average price.
- The most recent price record then gets included in each block header at ~2 minute intervals (block time) and is given to the vault as the price a user can convert at at that time.
The live price feed from Chainlink can be found here