Skip to content

Commit c57c436

Browse files
authored
fix(price-feed-id) Redirected to the legacy website (#771)
1 parent 41934c0 commit c57c436

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

pages/price-feeds/derive-cross-rate.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,4 @@ The [How to use real-time data in EVM contracts](./use-real-time-data/evm) guide
9898

9999
### Price Feed IDs
100100

101-
The [Price Feed IDs](https://www.pyth.network/developers/price-feed-ids) page lists the price feed IDs for each asset supported by Pyth.
101+
The [Price Feed IDs](https://legacy.pyth.network/developers/price-feed-ids#stable) page lists the price feed IDs for each asset supported by Pyth.

pages/price-feeds/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Developers interested in using Pyth can refer to the following resources:
1616

1717
In addition to the resources above, the following reference materials will be useful for developers as they integrate:
1818

19-
- [Price Feed IDs](https://www.pyth.network/developers/price-feed-ids) lists the price feed IDs for all the assets supported by Pyth.
19+
- [Price Feed IDs](https://legacy.pyth.network/developers/price-feed-ids#stable) lists the price feed IDs for all the assets supported by Pyth.
2020
- [Contract Addresses](./contract-addresses/) provides the contract addresses for Pyth on different chains.
2121
- [Error Codes](./error-codes.mdx) lists the error codes that can be returned by the Pyth contracts.
2222
- [Best Practices](./best-practices.mdx) explains how to use Pyth price feeds safely and effectively in your application.

pages/price-feeds/price-feeds.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Applications need to store the IDs of the feeds they wish to read.
2222
However, the IDs may be represented in different formats (e.g. hex or base58) depending on the blockchain.
2323
Price feeds also have different IDs in the Stable and Beta channels.
2424

25-
Refer to the [Price Feed ID reference catalog](https://www.pyth.network/developers/price-feed-ids) to identify a feed's ID in your chosen ecosystem.
25+
Refer to the [Price Feed ID reference catalog](https://legacy.pyth.network/developers/price-feed-ids#stable) to identify a feed's ID in your chosen ecosystem.
2626

2727
### Solana Price Feed Accounts
2828

pages/price-feeds/use-real-time-data/near.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ To get started with Pyth oracle you will need to gather the following informatio
3636
- HermesAPI Endpoint
3737
- Smart contract address
3838

39-
| Network | Price Feed IDs | Hermes API Address | Contract Address |
40-
| --------- | ------------------------------------------------------------------------------------------------ | -------------------------- | -------------------------------------------------------------------------------- |
41-
| `testnet` | [NEAR `testnet` Price Feed IDs](https://www.pyth.network/developers/price-feed-ids#near-testnet) | `hermes-beta.pyth.network` | [pyth-oracle.testnet](https://testnet.nearblocks.io/address/pyth-oracle.testnet) |
42-
| `mainnet` | [NEAR `mainnet` Price Feed IDs](https://www.pyth.network/developers/price-feed-ids#near-mainnet) | `hermes.pyth.network` | [pyth-oracle.near](https://nearblocks.io/address/pyth-oracle.near) |
39+
| Network | Price Feed IDs | Hermes API Address | Contract Address |
40+
| --------- | ---------------------------------------------------------------------------------------------------------- | -------------------------- | -------------------------------------------------------------------------------- |
41+
| `testnet` | [NEAR `testnet` Price Feed IDs](https://legacy.pyth.network/developers/price-feed-ids#stable#near-testnet) | `hermes-beta.pyth.network` | [pyth-oracle.testnet](https://testnet.nearblocks.io/address/pyth-oracle.testnet) |
42+
| `mainnet` | [NEAR `mainnet` Price Feed IDs](https://legacy.pyth.network/developers/price-feed-ids#stable#near-mainnet) | `hermes.pyth.network` | [pyth-oracle.near](https://nearblocks.io/address/pyth-oracle.near) |
4343

4444
Note: When using Price Feed IDs, you will need to remove the `0x` prefix.
4545

@@ -212,7 +212,7 @@ const receiver = "pyth-oracle.testnet";
212212
const network = "testnet";
213213

214214
const PRICE_IDS = [
215-
// Price ids can be found at https://www.pyth.network/developers/price-feed-ids#near-testnet
215+
// Price ids can be found at https://legacy.pyth.network/developers/price-feed-ids#stable#near-testnet
216216
// NOTE: Ensure you are using NEAR specific price ids & remove the '0x' prefix before using them
217217
"f9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b", // BTC/USD price id
218218
"ca80ba6dc32e08d06f1aa886011eed1d77c77be9eb761cc10d72b7d0a2fd57a6", // ETH/USD price id
@@ -292,7 +292,7 @@ Create a `get-price.js` file that will perform the view call from the Pyth Oracl
292292
const { getTestnetRpcProvider, view } = require("@near-js/client");
293293

294294
const PRICE_IDS = [
295-
// Price ids can be found at https://www.pyth.network/developers/price-feed-ids#near-testnet
295+
// Price ids can be found at https://legacy.pyth.network/developers/price-feed-ids#stable#near-testnet
296296
// NOTE: Ensure you are using NEAR specific price ids & remove the '0x' prefix before using them
297297
"f9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b", // BTC/USD price id
298298
"ca80ba6dc32e08d06f1aa886011eed1d77c77be9eb761cc10d72b7d0a2fd57a6", // ETH/USD price id

pages/price-feeds/use-real-time-data/sui.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const connection = new SuiPriceServiceConnection(
141141
const priceIDs = [
142142
// You can find the IDs of prices at:
143143
// - https://pyth.network/developers/price-feed-ids for Mainnet
144-
// - https://www.pyth.network/developers/price-feed-ids#beta for Testnet
144+
// - https://legacy.pyth.network/developers/price-feed-ids#stable#beta for Testnet
145145
"0x50c67b3fd225db8912a424dd4baed60ffdde625ed2feaaf283724f9608fea266", // SUI/USD price ID
146146
];
147147
const priceUpdateData = await connection.getPriceFeedsUpdateData(priceIDs);

0 commit comments

Comments
 (0)