Oracles & Settlement
Last updated
Last updated
Oracles are the core of each market within Perennial. Each market pulls in one or more prices from oracles to be used in the payoff function.
Perennial's modular design supports custom oracles. Currently, Perennial markets use an implementation of low latency oracles, allowing for fast & efficient price updates.
in Perennial are computed directly from oracle prices. To prevent timing advantages or arbitrage against oracle updates, a delay is introduced into the settlement process.
When a user initiates an action to open or close a position, this request is timestamped. The actual change to the position doesn't occur immediately. Instead, it remains in a pending state. A Keeper later finalizes the trade by providing the oracle price that corresponds to the initial timestamp of the request. Settlement effectively occurs based on this specific oracle price, which is delivered at a subsequent oracle update