How Does a Decentralized Oracle Provide the Index Price for a Perpetual Future?
A decentralized oracle network aggregates price data from multiple external centralized and decentralized exchanges. It calculates a robust, tamper-proof median or time-weighted average price (TWAP) and securely feeds this "index price" to the perpetual futures smart contract for use in margin calculation and liquidation.