Skip to content

Commit 0b3c032

Browse files
authored
Update dia.md (#646)
Amend list of assets in demo oracle Amend return value details
1 parent 5a3dcfe commit 0b3c032

File tree

1 file changed

+4
-12
lines changed
  • docs/build/integrations/oracles

1 file changed

+4
-12
lines changed

docs/build/integrations/oracles/dia.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,13 @@ DIA Development Oracle contracts are not intended to be integrated into a dApp.
5353
The oracle contains information about crypto assets. You can access a price quotation (see [sources](https://docs.diadata.org/documentation/methodology/digital-assets/cryptocurrency-trading-data) and [methodology](https://docs.diadata.org/documentation/methodology/digital-assets/exchangeprices)) and the current circulating supply as well as the timestamp of the last update.
5454

5555
1. Access the corresponding oracle smart contract (see table above).
56-
2. Call `getCoinInfo(coin_name)` with `coin_name` being the full coin name such as `Bitcoin`. You can use the "Read" section on Etherscan to execute this call.
57-
3. The response of the call contains four values:
58-
1. The current asset price in USD with a fix-comma notation of five decimals.
59-
2. The current circulating supply.
60-
3. The [UNIX timestamp](https://www.unixtimestamp.com/) of the last oracle update.
61-
4. The short name of the asset, e.g., `BTC` for Bitcoin.
56+
2. Call `getValue(symbol)` with `symbol` being the asset symbol such as `BTC/USD`. You can use the "Read" section on Etherscan to execute this call.
57+
3. The response of the call contains two values:
58+
1. The current asset price in USD with a fix-comma notation of eight decimals.
59+
2. The [UNIX timestamp](https://www.unixtimestamp.com/) of the last oracle update.
6260

6361
The development oracle supports price quotations for, at the very least, the following assets:
6462

6563
- BTC
66-
- ETH
6764
- DIA
6865
- USDC
69-
- FTM
70-
- SDN
71-
- KSM
72-
- MOVR
73-
- ASTR

0 commit comments

Comments
 (0)