From 0e70ce0da347e70fe0f5490d27f470b7ce6f5ba0 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 12:26:43 +0000 Subject: [PATCH 1/5] docs: replace deprecated getPrice() with getPriceNoOlderThan() in EVM troubleshooting guide Co-Authored-By: Nidhi Singh --- .../docs/price-feeds/core/troubleshoot/evm.mdx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/apps/developer-hub/content/docs/price-feeds/core/troubleshoot/evm.mdx b/apps/developer-hub/content/docs/price-feeds/core/troubleshoot/evm.mdx index edeb2c4b64..29ad84a91c 100644 --- a/apps/developer-hub/content/docs/price-feeds/core/troubleshoot/evm.mdx +++ b/apps/developer-hub/content/docs/price-feeds/core/troubleshoot/evm.mdx @@ -7,20 +7,19 @@ slug: /price-feeds/core/troubleshoot/evm This reference page is designed to help you troubleshoot common issues you may encounter when using Pyth Price Feeds on EVM chains. Follow the steps provided below to diagnose and resolve the issue. -#### getPrice() reverts with `StalePrice()` or `0x19abf40e` error +#### getPriceNoOlderThan() reverts with `StalePrice()` or `0x19abf40e` error -This error occurs when the requested price feed has not been updated in the last `validTimePeriod`. -The valid time period for the feed can queried using the [`getValidTime()`](https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/ethereum/sdk/solidity/AbstractPyth.sol#L22) method. +This error occurs when the requested price feed has not been updated within the specified `age` parameter. To resolve this issue: -- Update the prices by calling [`updatePriceFeeds()`]("https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/ethereum/sdk/solidity/AbstractPyth.sol#L88") +- Update the prices by calling [`updatePriceFeeds()`](https://api-reference.pyth.network/price-feeds/evm/updatePriceFeeds) by passing the latest updateData from [Hermes](https://hermes.pyth.network/docs/#/rest/latest_vaas). -- Another method to fetch the price is [`getPriceUnsafe()`](https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/ethereum/sdk/solidity/AbstractPyth.sol#L41) +- Another method to fetch the price is [`getPriceUnsafe()`](https://api-reference.pyth.network/price-feeds/evm/getPriceUnsafe) If the price feed is available, the method will return the latest prices with timestamp of last update. NOTE: `getPriceUnsafe()` method does not check the freshness of the price. -#### getPrice() reverts with `PriceFeedNotFound()` or `0x14aebe68` error +#### getPriceNoOlderThan() reverts with `PriceFeedNotFound()` or `0x14aebe68` error This error occurs when the requested price feed has not been updated on-chain, or the price feed id is incorrect. @@ -35,5 +34,5 @@ To resolve this issue: This error occurs when the fee provided for updating the price feed is insufficient. To resolve this issue: -- Fetch the latest fee by calling [`getUpdateFee()`](https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/ethereum/sdk/solidity/IPyth.sol#L112) method and - provide the required fee to `msg.value` when calling [`updatePriceFeeds()`](https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/ethereum/sdk/solidity/IPyth.sol#L112) method. +- Fetch the latest fee by calling [`getUpdateFee()`](https://api-reference.pyth.network/price-feeds/evm/getUpdateFee) method and + provide the required fee to `msg.value` when calling [`updatePriceFeeds()`](https://api-reference.pyth.network/price-feeds/evm/updatePriceFeeds) method. From 0536d2a8e1b12b21f9a90604330d6e26f95541c4 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 14:17:27 +0000 Subject: [PATCH 2/5] docs: update getPriceUnsafe() link to GitHub source per review feedback Co-Authored-By: Nidhi Singh --- .../content/docs/price-feeds/core/troubleshoot/evm.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/developer-hub/content/docs/price-feeds/core/troubleshoot/evm.mdx b/apps/developer-hub/content/docs/price-feeds/core/troubleshoot/evm.mdx index 29ad84a91c..3e05ddbbad 100644 --- a/apps/developer-hub/content/docs/price-feeds/core/troubleshoot/evm.mdx +++ b/apps/developer-hub/content/docs/price-feeds/core/troubleshoot/evm.mdx @@ -15,7 +15,7 @@ To resolve this issue: - Update the prices by calling [`updatePriceFeeds()`](https://api-reference.pyth.network/price-feeds/evm/updatePriceFeeds) by passing the latest updateData from [Hermes](https://hermes.pyth.network/docs/#/rest/latest_vaas). -- Another method to fetch the price is [`getPriceUnsafe()`](https://api-reference.pyth.network/price-feeds/evm/getPriceUnsafe) +- Another method to fetch the price is [`getPriceUnsafe()`](https://github.com/pyth-network/pyth-crosschain/blob/9825470036fc24de3d52b139087ea0cd4117624a/target_chains/ethereum/sdk/solidity/AbstractPyth.sol#L43) If the price feed is available, the method will return the latest prices with timestamp of last update. NOTE: `getPriceUnsafe()` method does not check the freshness of the price. From 210b354e849fbc0a3a61ca8a3a0a063a4819b4db Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 14:17:57 +0000 Subject: [PATCH 3/5] docs: update updatePriceFeeds() link to GitHub source per review feedback Co-Authored-By: Nidhi Singh --- .../content/docs/price-feeds/core/troubleshoot/evm.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/developer-hub/content/docs/price-feeds/core/troubleshoot/evm.mdx b/apps/developer-hub/content/docs/price-feeds/core/troubleshoot/evm.mdx index 3e05ddbbad..995f561cc1 100644 --- a/apps/developer-hub/content/docs/price-feeds/core/troubleshoot/evm.mdx +++ b/apps/developer-hub/content/docs/price-feeds/core/troubleshoot/evm.mdx @@ -13,7 +13,7 @@ This error occurs when the requested price feed has not been updated within the To resolve this issue: -- Update the prices by calling [`updatePriceFeeds()`](https://api-reference.pyth.network/price-feeds/evm/updatePriceFeeds) +- Update the prices by calling [`updatePriceFeeds()`](https://github.com/pyth-network/pyth-crosschain/blob/9825470036fc24de3d52b139087ea0cd4117624a/target_chains/ethereum/sdk/solidity/AbstractPyth.sol#L90) by passing the latest updateData from [Hermes](https://hermes.pyth.network/docs/#/rest/latest_vaas). - Another method to fetch the price is [`getPriceUnsafe()`](https://github.com/pyth-network/pyth-crosschain/blob/9825470036fc24de3d52b139087ea0cd4117624a/target_chains/ethereum/sdk/solidity/AbstractPyth.sol#L43) If the price feed is available, the method will return the latest prices with timestamp of last update. From 240984c60334ad2e6160155c207697418dff204c Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 14:19:26 +0000 Subject: [PATCH 4/5] docs: update all method links to GitHub source per review feedback Co-Authored-By: Nidhi Singh --- .../content/docs/price-feeds/core/troubleshoot/evm.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/developer-hub/content/docs/price-feeds/core/troubleshoot/evm.mdx b/apps/developer-hub/content/docs/price-feeds/core/troubleshoot/evm.mdx index 995f561cc1..09e1a4516c 100644 --- a/apps/developer-hub/content/docs/price-feeds/core/troubleshoot/evm.mdx +++ b/apps/developer-hub/content/docs/price-feeds/core/troubleshoot/evm.mdx @@ -25,7 +25,7 @@ This error occurs when the requested price feed has not been updated on-chain, o To resolve this issue: -- Update the prices by calling [`updatePriceFeeds()`](https://api-reference.pyth.network/price-feeds/evm/updatePriceFeeds) +- Update the prices by calling [`updatePriceFeeds()`](https://github.com/pyth-network/pyth-crosschain/blob/9825470036fc24de3d52b139087ea0cd4117624a/target_chains/ethereum/sdk/solidity/AbstractPyth.sol#L90) by passing the latest updateData from [Hermes](https://hermes.pyth.network/docs/#/rest/latest_vaas). - Check the entered [price feed id](../price-feeds) and [pyth-contract address](https://docs.pyth.network/price-feeds/contract-addresses/evm) to make sure they are correct. @@ -34,5 +34,5 @@ To resolve this issue: This error occurs when the fee provided for updating the price feed is insufficient. To resolve this issue: -- Fetch the latest fee by calling [`getUpdateFee()`](https://api-reference.pyth.network/price-feeds/evm/getUpdateFee) method and - provide the required fee to `msg.value` when calling [`updatePriceFeeds()`](https://api-reference.pyth.network/price-feeds/evm/updatePriceFeeds) method. +- Fetch the latest fee by calling [`getUpdateFee()`](https://github.com/pyth-network/pyth-crosschain/blob/9825470036fc24de3d52b139087ea0cd4117624a/target_chains/ethereum/sdk/solidity/IPyth.sol#L93) method and + provide the required fee to `msg.value` when calling [`updatePriceFeeds()`](https://github.com/pyth-network/pyth-crosschain/blob/9825470036fc24de3d52b139087ea0cd4117624a/target_chains/ethereum/sdk/solidity/AbstractPyth.sol#L90) method. From 7b931438548a0f2ba3d972b61ed08cef0b456e23 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 14:29:33 +0000 Subject: [PATCH 5/5] docs: revert updatePriceFeeds() link in PriceFeedNotFound section to API reference per review feedback Co-Authored-By: Nidhi Singh --- .../content/docs/price-feeds/core/troubleshoot/evm.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/developer-hub/content/docs/price-feeds/core/troubleshoot/evm.mdx b/apps/developer-hub/content/docs/price-feeds/core/troubleshoot/evm.mdx index 09e1a4516c..bdc3eb5211 100644 --- a/apps/developer-hub/content/docs/price-feeds/core/troubleshoot/evm.mdx +++ b/apps/developer-hub/content/docs/price-feeds/core/troubleshoot/evm.mdx @@ -25,7 +25,7 @@ This error occurs when the requested price feed has not been updated on-chain, o To resolve this issue: -- Update the prices by calling [`updatePriceFeeds()`](https://github.com/pyth-network/pyth-crosschain/blob/9825470036fc24de3d52b139087ea0cd4117624a/target_chains/ethereum/sdk/solidity/AbstractPyth.sol#L90) +- Update the prices by calling [`updatePriceFeeds()`](https://api-reference.pyth.network/price-feeds/evm/updatePriceFeeds) by passing the latest updateData from [Hermes](https://hermes.pyth.network/docs/#/rest/latest_vaas). - Check the entered [price feed id](../price-feeds) and [pyth-contract address](https://docs.pyth.network/price-feeds/contract-addresses/evm) to make sure they are correct.