From 135e3975ddea72d4f2334773bca01f7f3b747aa5 Mon Sep 17 00:00:00 2001 From: nidhi-singh02 Date: Thu, 9 Oct 2025 14:33:30 +0530 Subject: [PATCH 1/2] fix broken links for evm guide pull --- .../use-real-time-data/pull-integration/evm.mdx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/price-feeds/use-real-time-data/pull-integration/evm.mdx b/pages/price-feeds/use-real-time-data/pull-integration/evm.mdx index f497a6e1..af815356 100644 --- a/pages/price-feeds/use-real-time-data/pull-integration/evm.mdx +++ b/pages/price-feeds/use-real-time-data/pull-integration/evm.mdx @@ -4,14 +4,14 @@ import { Callout } from "nextra/components"; This guide explains how to use real-time Pyth data in EVM contracts using the pull integration. -For an interactive playground to explore the methods supported by the Pyth contract, see the [EVM API reference](../api-reference/evm/). +For an interactive playground to explore the methods supported by the Pyth contract, see the [EVM API reference](../../api-reference). If you want to use real-time price data using the push integration instead, you can use the following code snippet: ```solidity copy PythStructs.Price memory price = pyth.getPriceNoOlderThan(priceFeedId, 60); ``` -Developers only need to pass the price feed ID to the above method from the [Push Feeds list](../push-feeds). +Developers only need to pass the price feed ID to the above method from the [Push Feeds list](../../push-feeds/evm). For complete example, refer to the [Push Integration guide](../push-integration). @@ -96,10 +96,10 @@ contract SomeContract { The code snippet above does the following things: 1. Instantiate the `IPyth` interface from the Solidity SDK using the price feeds [contract address](../contract-addresses/evm). -2. Select the [Price Feed IDs](../price-feeds.mdx) for the assets you want to fetch prices for. Price feeds come in two varieties, Stable and Beta. You should select Stable feed ids +2. Select the [Price Feed IDs](../../price-feeds) for the assets you want to fetch prices for. Price feeds come in two varieties, Stable and Beta. You should select Stable feed ids 3. Call `IPyth.getUpdateFee` to calculate the fee charged by Pyth to update the price. 4. Call `IPyth.updatePriceFeeds` to update the price, paying the fee calculated in the previous step. -5. Call `IPyth.getPriceNoOlderThan` to read the current price, providing the [price feed ID](../price-feeds.mdx) that you wish to read and your acceptable staleness threshold for +5. Call `IPyth.getPriceNoOlderThan` to read the current price, providing the [price feed ID](../../price-feeds) that you wish to read and your acceptable staleness threshold for the price. ## Additional Resources @@ -108,15 +108,15 @@ You may find these additional resources helpful for developing your EVM applicat ### API Reference -The [EVM API reference](../api-reference/evm/) lets you interactively explore the complete API of the Pyth contract. +The [EVM API reference](../../api-reference) lets you interactively explore the complete API of the Pyth contract. ### Current Fees -The [Current Fees](../current-fees/) page lists the current fees for each network. +The [Current Fees](../../current-fees) page lists the current fees for each network. ### Error Codes -The [EVM error codes](../error-codes/evm/) page lists the error codes that the Pyth contract may return. +The [EVM error codes](../../error-codes/evm) page lists the error codes that the Pyth contract may return. ### Example Applications From ee09bddebeff0533e075bfb8420900b668382f55 Mon Sep 17 00:00:00 2001 From: nidhi-singh02 Date: Thu, 9 Oct 2025 14:41:57 +0530 Subject: [PATCH 2/2] fix contract address link --- pages/price-feeds/use-real-time-data/pull-integration/evm.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/price-feeds/use-real-time-data/pull-integration/evm.mdx b/pages/price-feeds/use-real-time-data/pull-integration/evm.mdx index af815356..85efcb3e 100644 --- a/pages/price-feeds/use-real-time-data/pull-integration/evm.mdx +++ b/pages/price-feeds/use-real-time-data/pull-integration/evm.mdx @@ -95,7 +95,7 @@ contract SomeContract { The code snippet above does the following things: -1. Instantiate the `IPyth` interface from the Solidity SDK using the price feeds [contract address](../contract-addresses/evm). +1. Instantiate the `IPyth` interface from the Solidity SDK using the price feeds [contract address](../../contract-addresses/evm). 2. Select the [Price Feed IDs](../../price-feeds) for the assets you want to fetch prices for. Price feeds come in two varieties, Stable and Beta. You should select Stable feed ids 3. Call `IPyth.getUpdateFee` to calculate the fee charged by Pyth to update the price. 4. Call `IPyth.updatePriceFeeds` to update the price, paying the fee calculated in the previous step.