Oracles
A lending market needs to know what your collateral is worth. The oracle tells it, and it is the most important part of any position you open.
The oracle reports the price of your collateral. A price that is too low can liquidate a healthy position. A price that is too high can leave debt that nothing covers. DeVOLT reads the oracle. It does not supply it.
The kinds you will see
On a market's page you may see a short label beside its oracle: Price, Fundamental, or the name of a combined kind such as Price × rate, PT discount curve or Fixed. Here is each kind of oracle and the word it shows.
- exchange rate
- Shows Fundamental. For collateral that is a claim on something else, such as a staked token or a vault share, the price comes from what one share is worth in the underlying. It does not read a market at all.
- reporting network
- Shows Price. Independent parties publish a price on-chain and agree on it. This is the common way for assets with real markets.
- time-averaged
- Shows Price. The price is averaged over a period, not taken at one moment. This makes it costly to push around for a short time.
- discount curve
- Shows PT discount curve. For dated products that mature at a known value, the price comes from how far away that date is.
- venue internal
- The lending venue supplies its own price instead of reading an outside feed.
Fundamental: valued by the asset’s own redemption or exchange rate. Price: valued by a traded market price. Price × rate: a traded price times a rate. PT discount curve: a set curve toward par at maturity. Fixed: a fixed value. DeVOLT works out the word from the feed it identified. It does not copy anyone's interface. “Inferred” beside the word means it is a guess from the type of pair, not read from the contract. With no word at all, the feed could not be classified.
What DeVOLT checks, and publishes
For every market it reads, DeVOLT checks and records:
- feed kind
- What kind of feed is behind the price.
- price history
- How that price has moved over time.
- past falls and recoveries
- How far the price has fallen and recovered before. This is graded for pairs meant to hold a peg, because a peg that broke before can break again. A pair whose price floats is not graded on its falls: how far a position can fall is the health factor you choose.
Where DeVOLT cannot tell what the feed is, it says unknown instead of guessing. A wrong description is worse than saying unknown, because people use it to decide how much to trust the feed.
Why some markets have none
If a market's price cannot be read, it is refused for leverage instead of sized on a guess. This is one of the reasons in the chapter on why a market will not open.