Oracle Use: Pyth and SEDA

SEDA provides the aggregation logic that combines Pyth prices with other sources (like Hyperliquid mark prices) to create a composite rate. Pyth provides the relayer infrastructure that connects to SEDA FAST, and serves as the oracle updater. Importantly, Pyth will be operating the relayers in a decentralized manner.

Architecture & Actors

The following table depicts the different roles played by various actors in delivering price data to Nunchi:

Component

Role

Responsibility

Pyth

Data Source

Provides high-quality, real-time price feeds

HIP-3 Pusher (Pyth)

Relayer

Listens to SEDA and updates HIP-3 oracles

Oracle Updater (Pyth)

Executor

Calls ‘SetOracle’ with SEDA composite rate

SEDA

Aggregator

Combines Pyth + other sources into composite rate

Step-by-Step Flow

The flow of this architecture is depicted below:

Additional details on these steps are provided below:

circle-info

Note: All code below is in Python.

Step 1: Pyth Provides Price Data

Step 2: Hyperliquid Provides Mark Price

Step 3: SEDA Aggregates Prices

Step 4: Relayer (Pyth) Updates Oracle

Weighted Blending

SEDA uses weighted blending to combine Pyth and Hyperliquid prices:

Last updated

Was this helpful?