CDR #048: Y2K Finance | Asset Price Feed

INTRODUCTION

Protocol: Y2K

Integration: Y2K Finance is a suite of structured products designed for exotic peg derivatives, that will allow market participants the ability to robustly hedge or speculate on the risk of a particular pegged asset (or basket of pegged assets), deviating from their ‘fair implied market value’.

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
Y2K Arbitrum 0x65c9…977f Y2K Markets 120 sec Y2K/ USD based on BALANCER Y2K/ WETH pool

Methodology

  • Moving Average Price with Interquartile Range (MAIR) will be used to calculate the price for the assets. Learn more about it here
  • 0.5% deviation threshold for updates trigger will be applied for each asset
  • 120 sec updates frequency check will be applied
  • The feed will be updated every 24h period if there are no deviation based updates

Thank you for requesting a DIA CDR. We confirm the CDR specifications were requested correctly. Find the oracle / API endpoint below:

Markets

By querying for blockchain and asset, the API provides the markets used for calculating this feed.

API endpoint

By querying for blockchain and asset, the API provides the asset quotation for each asset in the feed.

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 “Y2K/USD”. It will return two values:

  • The price of the asset queried with 8 decimals
  • The timestamp of the last update

Please make sure to top up the gas wallets very soon, as we only put in some gas to deploy and start the oracle.
Gas wallet: 0x061Db714440c8F9BD1c41A509eE423ffE5Ee471a

Also make sure it always has sufficient funding.

The adapter for Y2K/ETH is here: DIATwoAssetAdapter | Address 0xbf267b64256f50cb4de4bf00b106502a89edce3f | Arbiscan

How does it work?
Just query read function “getAPriceInB()” and you will get three return values:

  1. Price of Asset A measured in Asset B with 8 decimals
  2. Timestamp of last update of Asset A in the underlying oracle
  3. Timestamp of last update of Asset B in the underlying oracle

A is “Y2K/USD” and B is “ETH/USD”. We are flexible to amend this in later times should that ever be needed.
Please be aware that the underlying oracle contract needs to remain operational (i.e. funding needs to be provided for gas from time to time).
We also strongly recommend implementing a timestamp check to ensure relative freshness whenever a value is used onchain.