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’.
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.