diff --git a/package-lock.json b/package-lock.json index b5af743b..f46df126 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8231,9 +8231,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001492", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001492.tgz", - "integrity": "sha512-2efF8SAZwgAX1FJr87KWhvuJxnGJKOnctQa8xLOskAXNXq8oiuqgl6u1kk3fFpsp3GgvzlRjiK1sl63hNtFADw==", + "version": "1.0.30001644", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001644.tgz", + "integrity": "sha512-YGvlOZB4QhZuiis+ETS0VXR+MExbFf4fZYYeMTEE0aTQd/RdIjkTyZjLrbYVKnHzppDvnOhritRVv+i7Go6mHw==", "funding": [ { "type": "opencollective", @@ -28963,9 +28963,9 @@ "integrity": "sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ==" }, "caniuse-lite": { - "version": "1.0.30001492", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001492.tgz", - "integrity": "sha512-2efF8SAZwgAX1FJr87KWhvuJxnGJKOnctQa8xLOskAXNXq8oiuqgl6u1kk3fFpsp3GgvzlRjiK1sl63hNtFADw==" + "version": "1.0.30001644", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001644.tgz", + "integrity": "sha512-YGvlOZB4QhZuiis+ETS0VXR+MExbFf4fZYYeMTEE0aTQd/RdIjkTyZjLrbYVKnHzppDvnOhritRVv+i7Go6mHw==" }, "ccount": { "version": "2.0.1", diff --git a/pages/price-feeds/create-your-first-pyth-app/evm/part-1.mdx b/pages/price-feeds/create-your-first-pyth-app/evm/part-1.mdx index 3e7c654d..52d4c321 100644 --- a/pages/price-feeds/create-your-first-pyth-app/evm/part-1.mdx +++ b/pages/price-feeds/create-your-first-pyth-app/evm/part-1.mdx @@ -68,7 +68,7 @@ rm -r src/* test/* ### Install the Pyth SDK Pyth provides a Solidity SDK that can be used to interact with one-chain Pyth Price Feed contracts. -It exposes multiple [methods](../api-reference/evm) to read and interact with the contracts. +It exposes multiple [methods](/price-feeds/api-reference/evm) to read and interact with the contracts. Use `npm` to add the Pyth SDK: @@ -333,9 +333,9 @@ contract MyFirstPythContract { ``` The end of this function calls the `mint` function we defined before. -Before that, however, the function calls `[updatePriceFeeds]`(https://docs.pyth.network/price-feeds/api-reference/evm/update-price-feeds) on the Pyth contract. +Before that, however, the function calls [`updatePriceFeeds`](https://docs.pyth.network/price-feeds/api-reference/evm/update-price-feeds) on the Pyth contract. This function takes a payload of `bytes[]` that is passed into the function itself. -The Pyth contract requires a fee to perform this update; the code snippet above calculates the needed fee using `[getUpdateFee]`(https://docs.pyth.network/price-feeds/api-reference/evm/get-update-fee). +The Pyth contract requires a fee to perform this update; the code snippet above calculates the needed fee using [`getUpdateFee`](https://docs.pyth.network/price-feeds/api-reference/evm/get-update-fee). The caller of this function can pass in a recent Pyth price update as this payload, guaranteeing that the `StalePrice` error won't occur. We can test this function by adding the following snippet to the test file: @@ -445,7 +445,7 @@ contract MyFirstPythContract { ``` -And out test file should look like this: +And our test file should look like this: ```solidity copy filename="MyFirstPythContract.t.sol" // SPDX-License-Identifier: UNLICENSED