LUKSO Price Oracles
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. Learn how to access DIA oracles on LUKSO.
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:
latestAnswer
- provides the latest available price data for BTC/USD with 8 decimals accuracylatestRoundData
- 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.
Price feed | Adapter address | Data sources |
---|---|---|
EUR/USD | 0xbCfD839664B5Ad4D0C0C58db0c716D7a28dCd15E | |
LYX/USD | 0x3153e4d03Cf97B230fc9c9d0ECCE5b2F0834d130 | |
GBP/USD | 0x7EA5b4bb2D89B1EfEF00FCC95E139B77Da27d460 | |
BTC/USD | 0xD19856Bd3Dbd9Cb00BaC76Fc90603FA3bB05aCEA | |
ETH/USD | 0xc7f3aceBe05482eeCD668df1FCF1B59e6d14f77b | |
wstETH/USD | 0x18f2182B37d46deC1dc236Cf3Aad3a02981796cB | |
DAI/USD | 0x1bB6c1A90c9449A14C184Dd141D2c7d7b788a679 | |
USDC/USD | 0xc675A8d220E1ba6d14a77C9FbcFDd5f9474BD07A | |
USDT/USD | 0xC00c10499DEF24352475Ae873C51FaFcFC894f03 | |
stETH/USD | 0x2b94002cfFA638B37E4DDe54EDfcF6Efdcb29E6A |
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.