How Are Oracles Used to Settle Perpetual Futures Contracts On-Chain?
Oracles are essential for settling perpetual futures contracts by providing the reliable, real-time index price of the underlying asset. They feed this price to the smart contract, which uses it to calculate the 'funding rate' and determine when a trader's position falls below the maintenance margin.
This automated price feed triggers liquidation, ensuring the solvency of the derivatives platform without the need for a centralized exchange to intervene.