oracle

Orchid’s oracle layer provides prices used for:

  • borrow power

  • health factor calculations

  • liquidation thresholds

  • risk controls

Oracles are governed by protocol administration. If an oracle source is degraded, Orchid can pause markets to protect users.

View methods

getAssetPrice

function getAssetPrice(address asset) external view returns (uint256);

Returns the asset price in the protocol base currency with protocol-defined decimals.


getAssetsPrices

function getAssetsPrices(address[] calldata assets)
  external
  view
  returns (uint256[] memory);

Batch price query.


getSourceOfAsset

Returns the configured primary price source.


getFallbackOracle

Returns the configured fallback oracle if one exists.

Last updated