Contract to get asset prices, manage price sources and update the fallback oracle. Themis Protocol V2 uses Chainlink Aggregators as the source of all asset prices.
function getAssetPrice(address asset)
Returns the price of the supported asset in BASE_CURRENCY of the Themis Market in wei.
function getAssetsPrices(address calldata assets)
Returns the prices of the supported assets in BASE_CURRENCY of the Themis Market. All prices are in wei.
function getSourceOfAsset(address asset)
Returns the address of the price source for
Returns the address of the fallback oracle.
function setAssetSources(address calldata assets, address calldata sources)
Sets the price source for given list of assets.
function setFallbackOracle(address fallbackOracle)
Sets/updates the fallback oracle.