Price Oracle Mechanism
A price oracle is a specialized service that provides smart contracts with external, real-world data, most commonly asset price feeds. Because blockchains are isolated systems, they cannot inherently access information from the outside world.
Oracles bridge this gap by fetching data from various sources and delivering it on-chain so that protocols can perform functions like liquidations or trade execution. The security of a protocol is heavily dependent on the accuracy and reliability of its oracle.
If an oracle is manipulated or provides stale data, it can lead to catastrophic failures in lending protocols or derivative platforms. Decentralized oracle networks attempt to solve this by aggregating data from multiple independent nodes to prevent single points of failure.
They are a critical infrastructure component for any financial application on a blockchain.