A developer is creating a decentralized finance (DeFi) application that allows users to lend and borrow assets. To prevent price manipulation of the collateral, the smart contract needs to fetch the latest asset prices from multiple off-chain exchanges. What is the most appropriate component to integrate for this purpose?
-
A
A state channel to directly communicate with exchange APIs.
-
B
A centralized server managed by the development team to push prices on-chain.
-
C
A decentralized oracle network to retrieve and aggregate price data.
-
D
An on-chain library that calculates prices based on transaction volumes.