Skip to content

Commit 20fac81

Browse files
committed
(refactor)-sunset-solana push oracle
1 parent a09d071 commit 20fac81

File tree

2 files changed

+13
-21
lines changed

2 files changed

+13
-21
lines changed

pages/price-feeds/how-pyth-works.mdx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
# Design Overview
22

3-
Pyth is a protocol that allows market participants to publish pricing information on-chain for others to use. The protocol is an interaction between three parties:
3+
Pyth is a protocol that allows market participants to publish pricing information on-chain for others to use.
4+
The protocol is an interaction between three parties:
45

5-
1. _Publishers_ submit pricing information to Pyth's oracle program. Pyth has multiple data publishers for every product to improve the accuracy and robustness of the system.
6+
1. _Publishers_ submit pricing information to Pyth's Oracle program.
7+
Pyth has multiple data publishers for every product to improve the accuracy and robustness of the system.
68
2. Pyth's _oracle program_ combines publishers' data to produce a single aggregate price and confidence interval.
7-
3. _Consumers_ read the price information produced by the oracle program.
9+
3. _Consumers_ read the price information produced bsy the Oracle program.
810

9-
Pyth's oracle program runs simultaneously on both Solana mainnet and [Pythnet](how-pyth-works/pythnet.md).
10-
Each instance of the program is responsible for its own set of price feeds.
11-
[Solana Price Feeds](solana-price-feeds.md) are available for use by Solana protocols.
12-
In this case, since the oracle program itself runs on Solana, the resulting prices are immediately available to consumers without requiring any additional work.
13-
[Pythnet Price Feeds](pythnet-price-feeds.md) are available on 12+ blockchains.
11+
Pyth's oracle program runs on [Pythnet](how-pyth-works/pythnet.md).
1412
The prices constructed on Pythnet are transferred [cross-chain](how-pyth-works/cross-chain.md) to reach consumers on these blockchains.
1513

1614
In both cases, the critical component of the system is the [oracle program](how-pyth-works/oracle-program.md) that combines the data from each individual publisher.
17-
This program maintains a number of different [Solana accounts](how-pyth-works/account-structure.md) that list the products on Pyth and their current price data.
18-
Publishers publish their price and confidence by interacting with the oracle program on every slot.
15+
This program maintains a number of different [Pythnet accounts](how-pyth-works/account-structure.md) that list the products on Pyth and their current price data.
16+
Publishers publish their prices and confidence by interacting with the Oracle program on every slot.
1917
The program stores this information in its accounts.
2018
The first price update in a slot additionally triggers [price aggregation](how-pyth-works/price-aggregation.md), which combines the price data from the previous slot into a single aggregate price and confidence interval.
21-
This aggregate price is written to the Solana account where it is readable by other on-chain programs and available for transmission to other blockchains.
19+
This aggregate price is written to the Pythnet account where it is readable by other on-chain programs and available for transmission to different blockchains.

pages/price-feeds/price-feed-ids.mdx

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
# Price Feed IDs
22

3-
Every Pyth Price Feed has a unique ID, representing the specific pair of assets being priced (e.g., BTC/USD).
3+
Every Pyth Price Feed has a unique ID, representing the specific pair of assets priced (e.g., BTC/USD).
44
Every price update is tagged with the corresponding price feed ID.
55
Applications need to store the IDs of the feeds they wish to read.
6-
However, the ids may be represented in different formats (e.g., hex or base58) depending on the blockchain.
7-
Price feeds also have different ids in the Stable and Beta channels.
6+
However, depending on the blockchain, the IDs may be represented in different formats (e.g., hex or base58).
7+
Price feeds also have different IDs in the Stable and Beta channels.
88

99
The full catalog of price feeds is listed on the [pyth.network website](https://pyth.network/price-feeds/).
1010
The [Price Feed ID reference](https://pyth.network/developers/price-feed-ids) also lets you identify a feed's ID in your chosen ecosystem.
11-
To use a price feed on-chain, look up its ID using these page, then store the feed id in your program to use for price feed queries.
12-
13-
## Solana Price Feed Accounts
14-
15-
On Solana, each feed additionally has a collection of **price feed accounts** containing the feed's data.
16-
The addresses of these accounts are programmatically derived from the feed id and a shard id, which is simply a 16-bit number.
17-
See [How to Use Real-Time Data on Solana](price-feeds/use-real-time-data/solana#write-frontend-code) for more information on price feed accounts.
11+
To use a price feed on-chain, look up its ID using these pages, then store the feed ID in your program to use for price feed queries.

0 commit comments

Comments
 (0)