An essential part of the DeFi ecosystem, oracles allow protocols to incorporate of both on and off-chain data for use in their smart contracts.
Unit Protocol uses oracles to gather current price data on the dozens of tokens accepted as collateral.
You can see Unit Protocol oracle contracts here: https://github.com/unitprotocol/core/blob/master/CONTRACTS.md
Price quote from Chainlink oracle
Detail feeding Chainlink oracle price quote
Unit Protocol risk and liquidation calculation based on oracle price feed
You need to have access to accurate and reliable pricing information to set the parameters for borrowing USDP, managing collateralised debt positions (CDPs), and, when necessary, liquidating those positions.
Initial attempts to use Keep3r and Chainlink proved to be unreliable. It was clear that a new solution was needed. So, in April 2021, Unit Protocol underwent a major upgrade to address the issue. During that time, all $USDP borrowing limits were temporarily set to zero on all collaterals except ETH, which used Chainlink. During the upgrade, all oracles were successfully migrated to Chainlink. This solution meant that we could add even more collaterals, while also bringing down the overall expense of retrieving data. As we inherited the security underpinning Chainlink oracles, Unit Protocol now has the most accurate pricing data possible.
As a backup to the Chainlink price oracles, Unit Protocol maintains a Keydonix-based oracle solution which relies on a time weighted average price (TWAP) from Uniswap v2.