CDR #053: zkFinance | Token Price Feed

  1. Jun, 2023

INTRODUCTION

Protocol: zkFinance

Integration: One-stop-shop DeFi solution. Cheaper, faster and more secure transactions with zkSync. Forget about high fees and network congestion.

REQUEST INFORMATION

Assets

Following assets will be included in the Oracle:

Asset Ticker Asset Blockchain Asset Address Asset Markets Overview Trades Aggregation Window Size Comments
USDC ETH 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 USDC | USD Coin API & Price Oracle | DIA 120
USDT ETH 0xdAC17F958D2ee523a2206206994597C13D831ec7 USDT | Tether USD API & Price Oracle | DIA 120
BUSD ETH 0x4Fabb145d64652a948d72533023f6E7A623C7C53 BUSD | BUSD API & Price Oracle | DIA 120
DAI ETH 0x6B175474E89094C44Da98b954EedeAC495271d0F DAI | Dai Stablecoin API & Price Oracle | DIA 120
WBTC ETH 0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599 https://app.diadata.org/price/asset/Ethereum/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/?asset=WBTC 120
ETH ETH 0x0000000000000000000000000000000000000000 https://app.diadata.org/price/asset/Ethereum/0x0000000000000000000000000000000000000000/?asset=ETH 120

Methodology

  • Moving Average Price with Interquartile Range (MAIR) will be used to calculate the price for the assets. Learn more about it here. The three resulting prices are aggregated by making a volume weight average.
  • 1% deviation threshold for updates trigger will be applied for each asset
  • The feed will be updated every 24h period if there are no deviation based updates

DELIVERY INFORMATION

Delivery Method Oracle on ZKsync Era
Is testnet deploy required? Yes
Delivery Estimate 7 days

NOTES

Additional relevant information:

Additional pools may benefit from a longer trade aggregation window size. Additions/ changes in methodology and parameters will be noted in the CDR.

1 Like

Thank you for requesting a data feed via DIA CDR. We confirm the CDR specifications were requested correctly. Find the oracle information below:

Oracle

The oracle is deployed and can be accessed here:

You can query for assets by calling the read function getValue() with parameters such as “ETH/USD”. It will return two values:

  1. The price of the asset queried with 8 decimals
  2. The unix timestamp of the last update

You can see Solidity and Vyper code integration examples here or use a dedicated DIA oracles integration library described in detail here.

Funding

Each deployed oracle has a separate gas wallet which is the only entity allowed to update oracle values based on selected parameters. To find out more information on how it works, visit the following link.

Please make sure to top up the gas wallet, as we only put in some gas to deploy and start the oracle.

Gas Wallet addresses:

Markets

You can view the markets included for each feed by pressing on a link to DIA App in the deployed assets list:

  1. Ethereum/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
  2. Ethereum-0x0000000000000000000000000000000000000000
  3. Ethereum-0xdAC17F958D2ee523a2206206994597C13D831ec7
  4. Ethereum-0x4Fabb145d64652a948d72533023f6E7A623C7C53
  5. Ethereum-0x6B175474E89094C44Da98b954EedeAC495271d0F
  6. Ethereum-0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599

Note: DIA uses Blockchain-Address querying formatting to ensure asset selection precision (token symbols might duplicate)

You can also query current asset prices and find other market information on the asset by using the DIA API as described here.

1 Like

Please add $ZK to the oracle above. Thank you team

The feed has been added to the oracle.