Introduction to DIA

DIA is a cross-chain oracle provider that aggregates market data from a wide range of sources, including CEXs and DEXs. Its first-party data sourcing is thorough, enabling unparalleled transparency and customizability for resilient price feeds for 20,000+ assets. Its versatile data processing and delivery ensures adaptability and reliability for any decentralized application.

Usage of DIA Oracles on LUKSO

Overview

The DIA oracle on LUKSO is free of use. dApps built on LUKSO can leverage the oracle to access up-to-date asset price information. This oracle is designed for production environments and comes with a predefined list of feeds and settings.

The main oracle contract is deployed at the following address 0x245ad685F4D89D30fD1a14682C030c6128d08d17.

If dApps require a custom oracle with different assets and configurations, please contact DIA on Telegram.

How to Access DIA Oracles

Developers can access specific asset prices via dedicated smart contract adapters listed in the next section. Each adapter contract provides price data by calling functions without additional parameters.

For example, to retrieve the latest BTC/USD price, you can call:

  1. latestAnswer - provides the latest available price data for BTC/USD with 8 decimals accuracy

  2. latestRoundData - provides the latest available price data for BTC/USD (8 decimals) with the Unix timestamp (UTC timezone) of the last update

More info on the Asset Specific Value Calling Convention.

Included Price Feeds

Below is the list of included price feeds. Use the corresponding adapter address to query the latest price information.

AssetQuery SymbolAdapter AddressSources Overview
Euro (EUR)EUR/USD0xbCfD839664B5Ad4D0C0C58db0c716D7a28dCd15EEUR Sources
Lukso (LYX)LYX/USD0x3153e4d03Cf97B230fc9c9d0ECCE5b2F0834d130LYX Sources
British Pound (GBP)GBP/USD0x7EA5b4bb2D89B1EfEF00FCC95E139B77Da27d460GBP Sources
Bitcoin (BTC)BTC/USD0xD19856Bd3Dbd9Cb00BaC76Fc90603FA3bB05aCEABTC Sources
Ether (ETH)ETH/USD0xc7f3aceBe05482eeCD668df1FCF1B59e6d14f77bETH Sources
Wrapped Staked ETH (wstETH)wstETH/USD0x18f2182B37d46deC1dc236Cf3Aad3a02981796cBwstETH Sources
Dai (DAI)DAI/USD0x1bB6c1A90c9449A14C184Dd141D2c7d7b788a679DAI Sources
USD Coin (USDC)USDC/USD0xc675A8d220E1ba6d14a77C9FbcFDd5f9474BD07AUSDC Sources
Tether (USDT)USDT/USD0xC00c10499DEF24352475Ae873C51FaFcFC894f03USDT Sources
Staked ETH (stETH)stETH/USD0x2b94002cfFA638B37E4DDe54EDfcF6Efdcb29E6AstETH Sources

Learn more about DIA’s data sourcing and data computation architecture.

Oracle Configuration Settings

Methodology: VWAPIR

The final price point for each asset is calculated by computing the assets’ trade information across multiple DEXs and CEXs. This is done using a Volume Weighted Average Price with Interquartile Range (VWAPIR) methodology.

Update frequency: 0.5% deviation + 24-hour heartbeat

Each asset is updated every two minutes, if the new price deviates from the old one by more than 0.5%. Additionally, a heartbeat of 24 hours is applied, which means that each price is updated at least once per day even if it moves by less than 0.5%.

Oracle Support

For developer assistance, connect with the DIA team directly on Discord or Telegram.

Developers seeking other oracles with tailored price feeds and configurations can initiate the request by contacting the DIA BD Team via Telegram.