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’.
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
How does it work?
Just query read function “getAPriceInB()” and you will get three return values:
Price of Asset A measured in Asset B with 8 decimals
Timestamp of last update of Asset A in the underlying oracle
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.