Key Features
- Complete verifiability from source to destination smart contract.
- Direct data sourcing from 100+ primary markets eliminating intermediary risk.
- Support for 20,000+ assets across all major asset classes.
- Custom oracle configuration with tailored sources and methodologies.
Oracle Contracts
| Chain | Contract Address |
|---|---|
| LitVM Testnet | 0xE7F65d4bAdcfABc4eA57B8F66bBa044363D89eec |
Oracle Configuration
| Parameter | Value |
|---|---|
| Pricing Methodology | Median |
| Deviation (%) | 0.5% for stablecoins, 1% for other assets |
| Heartbeat | 1h |
Available Asset Feeds
| Chain | Price Feed | Type | Adapter Address (AggregatorV3Interface) |
|---|---|---|---|
| LitVM Testnet | LTC | Market | 0x45dDa5d881BD2C917976CCfde74fFd6f6412da29 |
| LitVM Testnet | USDC | Market | 0x4f91a950ed73c8B6F28dFE460f9444ed8866894f |
| LitVM Testnet | USDT | Market | 0xd7ff0A3DdE1FdC2137Ff4CaAde5396f009739645 |
| LitVM Testnet | ETH | Market | 0xc760B46beF9eD3F9A3d2b825164324D6703F0185 |
| LitVM Testnet | BTC | Market | 0x7d0445782E383223c7B4B660bb96b87213e9b605 |
| LitVM Testnet | XAU | Market | 0x519A391D8999F0A18E1E9A5649FEA3D942A1bDdF |
| LitVM Testnet | XAG | Market | 0xfb49F5C1eFF83Cc392357Cb979a9432C90eE0eb7 |
| LitVM Testnet | WTI | Market | 0x9cee709Fc9Da87d958a468859b8C02d591b7245A |
| LitVM Testnet | XBR | Market | 0x41bb23dD937C5733BF8c0826b9d99d89790c0cAF |
How to Access Data
Adapter contracts
To consume price data from the oracle, use the adapter smart contract for the asset you want to query on LitVM Testnet. This will allow you to access the same methods on the AggregatorV3Interface such asgetRoundData & latestRoundData.
Below is an example of a contract consuming $USDC from the oracle using the DiaAssetSpecificCallingConvention interface. It will return the most recent price of USDC in USD with 18 decimal places (e.g. 999799952400000000 is $0.9997999524) along with the Unix timestamp of the last price update.
Request a Custom Oracle
DIA offers highly customizable oracles that are individually tailored to each dApp’s needs. Each oracle can be customized in the following ways, including:- Data Sources & Asset Feeds
- Pricing Methodologies
- Update Triggers (Frequency, Deviation, Heartbeat, …etc)