Skip to content

Commit 97324ab

Browse files
authored
(refactor)-solana sunset (#391)
* (refactor)-solana sunset * requested changes * changes
1 parent 13cc489 commit 97324ab

File tree

5 files changed

+9
-12
lines changed

5 files changed

+9
-12
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ Pyth is a protocol that allows market participants to publish pricing informatio
77
3. _Consumers_ read the price information produced by the oracle program.
88

99
Pyth's oracle program runs on [Pythnet](how-pyth-works/pythnet.md).
10-
[Pythnet Price Feeds](./) are available on 50+ blockchains.
1110
The prices constructed on Pythnet are transferred [cross-chain](how-pyth-works/cross-chain.md) to reach consumers on these blockchains.
1211

1312
The critical component of the system is the [oracle program](how-pyth-works/oracle-program.md) that combines the data from each individual publisher.
14-
This program maintains a number of different [Solana accounts](pythnet-reference/account-structure.md) that list the products on Pyth and their current price data.
13+
This program maintains a number of different [SVM accounts](pythnet-reference/account-structure.md) that list the products on Pyth and their current price data.
1514
Publishers publish their price and confidence by interacting with the oracle program on every slot.
1615
The program stores this information in its accounts.
1716
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.
18-
This aggregate price is written to the Solana account where it is available for transmission to other blockchains.
17+
This aggregate price is written to these SVM accounts of Pythnet where it is available for transmission to other blockchains.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The oracle program is responsible for several tasks:
77
3. Combining the individual data providers' prices into a single aggregate price and confidence interval.
88
4. Performing any additional stateful computations on the resulting price series, such as computing moving averages.
99

10-
The oracle solves these problems by maintaining a collection of [Solana accounts](../pythnet-reference/account-structure.md) to represent the set of price feeds.
10+
The oracle solves these problems by maintaining a collection of [SVM accounts](../pythnet-reference/account-structure.md) to represent the set of price feeds.
1111
Each feed has two accounts: a product account to store [metadata](../pythnet-reference/product-metadata.md) and a price account.
1212
The price account stores a list of authorized data providers for this specific price feed, and allocates storage space for each data provider's price.
1313
The oracle program exposes an instruction called `upd_price` that enables an authorized data provider to update the price account with their current estimate of the price and confidence interval.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Second, the **aggregate price should appropriately weight data sources with diff
1313
![](../../../images/Price_Aggregation_2.png)
1414

1515
Finally, the **aggregate confidence interval should reflect the variation between publishers’ prices.**
16-
Under normal market conditions, we expect the a product to trade at a similar price across exchanges.
16+
Under normal market conditions, we expect a product to trade at a similar price across exchanges.
1717
In these cases, we would like the aggregate confidence interval to reflect the confidence intervals of the individual data providers, as shown in the figure on the left.
1818
However, in some rare situations, a product can trade at different prices on different exchanges.
1919
In these cases, the aggregate confidence interval should widen out to reflect the variation between these prices, as shown in the figure on the right.
@@ -24,7 +24,7 @@ In these cases, the aggregate confidence interval should widen out to reflect th
2424

2525
The aggregation algorithm itself is a simple two-step process.
2626
The first step computes the aggregate price by giving each publisher three votes — one vote at their price and one vote at each of their price +/- their confidence interval — then taking the median of all the votes.
27-
The second step computes distance from the aggregate price to the 25th and 75th percentiles of the votes, then selects the larger of the two as the aggregate confidence interval.
27+
The second step computes the distance from the aggregate price to the 25th and 75th percentiles of the votes, and then selects the larger of the two as the aggregate confidence interval.
2828

2929
This process acts like a hybrid between a mean and a median, giving confident publishers more influence, while still capping the maximum influence of any single publisher.
3030
The algorithm has an interpretation as computing the minimum of an objective function that penalizes the aggregate price from deviating too far from the publishers' prices.

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ Pythnet is an application-specific blockchain operated by Pyth's data providers.
44
This blockchain is a computation substrate to securely combine the data provider's prices into a single aggregate price for each Pyth price feed.
55
Pythnet forms the core of Pyth's off-chain price feeds that serve all blockchains.
66

7-
Pythnet is powered by Solana technology: it runs the same validator software, but is a Pyth specific chain that is independent of Solana's mainnet.
8-
The Pyth Data Association enables each data provider to operate one validator by delegating them the necessary stake.
9-
Once governance is live, it will take over management of validators from the Pyth Data Association.
7+
Pythnet is powered by Solana technology: it runs the same validator software but is a Pyth-specific chain that is independent of Solana's mainnet.
8+
The Pyth Data Association DAO enables each data provider to operate one validator by delegating them the necessary stake.
109

1110
The purpose of Pythnet is to provide a secure and reliable computing substrate for Pyth's price aggregation.
1211
Recall that Pyth's data providers submit their own price measurements for each product.

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
Every Pyth Price Feed has a unique ID, representing the specific pair of assets being 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, 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.
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.
1211

1312
## Solana Price Feed Accounts
1413

0 commit comments

Comments
 (0)