Prices Oracles used by nYUSD
nYUSD is designed to stay pegged at 1 USD and be 1:1 backed with its underlying stablecoins. This is trickier than it sounds because these underlying stablecoins are constantly deviating from their own desired 1 USD pegs. While the majority of daily fluctuations are minor, there have been major swings in price that have occurred in the past and are likely to occur again in the future.
The rebasing function treats 1 stablecoin as 1 nYUSD for simplicity and to protect nYUSD balances from being affected by the daily fluctuations in the price of the underlying stablecoins. Since the rebase function only counts coins, nYUSD balances should only increase.
In order to mint and redeem the appropriate number of nYUSD on entry and exit, the smart contracts need to accurately price the DAI, USDC, USDT, UST, TUSD, BUSD, USDP, FEI, USDN, FRAX, & HUSD that is entering and exiting the system. As a decentralized protocol, nYUSD must rely on non-centralized sources for these prices.
In order to prevent malicious attacks and to encourage long-term investors over short-term speculators, the nYUSD contract will compare price feeds from multiple sources and will use whichever exchange rate benefits the entire vault over the individual. This mechanism protects the vault funds from arbitrageurs and prevents any individual from being able to take advantage of any temporary inefficiencies caused by mispriced oracles to deplete the shared pool of assets.
This protects the funds in the vault while rewarding long-term holders. Since the safest price depends on the direction of the trade, the NEPRIDAO oracle will expose both a
Here is the initial set of oracles that are being used to design nYUSD:
The specific smart contract address for each oracle being used will be listed on our registry page.
It is possible that additional oracles will be added to the protocol over time. Support may also be removed if any of these oracles become unreliable.