Skip to content

Commit 68a5f71

Browse files
committed
chore(price-feeds) Price Pusher rename
1 parent e16d469 commit 68a5f71

File tree

5 files changed

+25
-19
lines changed

5 files changed

+25
-19
lines changed

pages/price-feeds/use-pyth-for-morpho.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@ Pyth provides a wrapper which implements Morpho's `IOracle` interface called [`p
88

99
There are two steps to use Pyth price feeds for Morpho markets:
1010

11-
1. Run the [Price Pusher](https://github.com/pyth-network/pyth-crosschain/tree/main/apps/price_pusher).
11+
1. Schedule Price Updates.
1212
2. Deploy the [`MorphoPythOracle.sol`](https://github.com/pyth-network/pyth-morpho-wrapper/blob/main/src/morpho-pyth/MorphoPythOracle.sol) contract for the respective price feed pair.
1313

1414
<Steps>
1515

16-
### Run the Price Pusher
16+
### Schedule Price Updates
1717

1818
As a pull oracle, Pyth's users are typically responsible for updating the state of on-chain feeds.
1919
Please see [What is a Pull Oracle?](/price-feeds/pull-updates) to learn more about pull updates.
2020

21+
Consult [Schedule Price Updates](/price-feeds/schedule-price-updates) guide for more information.
22+
2123
The Pyth Data Association sponsors regular on-chain updates for some price feeds.
2224
See [Sponsored Feeds](./sponsored-feeds.mdx) for the current list of feeds and their update parameters.
2325

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ If your blockchain is not supported, please [ask in the dev-forum](https://dev-f
1212

1313
## Choosing Your Integration Method
1414

15-
**Pull integration** is the default choice for most applications. You manually pull the latest price data in your smart contract when needed.
15+
**Pull integration** is the default choice for most applications. In this integration, the application retrieves price data from a [webserveice](./how-pyth-works/hermes) and submits it to
16+
an on-chain smart contact as part of the transaction. This integration provides the lowest-latency access to Pyth price data.
1617

17-
**Push integration** is for applications that don't want to manually pull prices in every transaction and prefer to rely on [Price Pushers](/price-feeds/schedule-price-updates) or [Push-Feeds](/price-feeds/push-feeds) that automatically maintain up-to-date prices on-chain.
18+
**Push integration** is for applications that don't want to pull prices in every transaction and prefer a purely on-chain integration.
1819

1920
<Callout type="info">
20-
Pyth is fundamentally a pull oracle, and all feeds are available through both
21-
integration methods. If you want to use push integration, you can push the
22-
prices for the feeds you need. You can run a [Price
23-
Pusher](/price-feeds/schedule-price-updates) or ask the team to add the feeds
24-
you need by filling out [this form](https://tally.so/r/nGz2jj).
21+
All feeds are available through both integration methods. However, for the to
22+
use push integration, the application needs to submit the prices to the
23+
on-chain smart contract as part of the transaction. Check out the [Push
24+
Integration](use-real-time-data/push-integration) guide to get started.
2525
</Callout>
2626

2727
## Pull Integration

pages/price-feeds/use-real-time-data/pull-integration/evm.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ import { Callout } from "nextra/components";
22

33
# How to Use Real-Time Data in EVM Contracts
44

5-
This guide explains how to use real-time Pyth data in EVM contracts. For an interactive playground to explore the methods supported by the Pyth contract, see the [EVM API reference](../api-reference/evm/).
5+
This guide explains how to use real-time Pyth data in EVM contracts using the pull integration.
6+
7+
For an interactive playground to explore the methods supported by the Pyth contract, see the [EVM API reference](../api-reference/evm/).
68

79
<Callout type="info" emoji="ℹ️">
8-
If you want to use real-time price data using push integration instead, you can use the following code snippet:
10+
If you want to use real-time price data using the push integration instead, you can use the following code snippet:
911
```solidity copy
1012
PythStructs.Price memory price = pyth.getPriceNoOlderThan(priceFeedId, 60);
1113
```

pages/price-feeds/use-real-time-data/pull-integration/starknet.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,15 @@ Pyth also provides a javascript SDK to interact with the Pyth contract on Starkn
2121

2222
<Tabs items={["npm", "yarn"]}>
2323
<Tabs.Tab>
24-
```sh copy npm install --save @pythnetwork/pyth-starknet-js ```
24+
```sh copy
25+
npm install --save @pythnetwork/pyth-starknet-js
26+
```
27+
</Tabs.Tab>
28+
<Tabs.Tab>
29+
```sh copy
30+
yarn add @pythnetwork/pyth-starknet-js
31+
```
2532
</Tabs.Tab>
26-
<Tabs.Tab>```sh copy yarn add @pythnetwork/pyth-starknet-js ```</Tabs.Tab>
2733
</Tabs>
2834

2935
## Write Contract Code

pages/price-feeds/use-real-time-data/push-integration.mdx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,8 @@ To use the push integration, developers first need to ensure the feeds used by t
66
Refer to the [Push Feeds page](../push-feeds) to see which feeds are being updated on each blockchain.
77
If your feeds are not listed there, you have several options:
88

9-
- **Run Price Pusher**: Set up and run a [price-pusher](/price-feeds/schedule-price-updates/using-price-pusher) to automate the process of updating the on-chain price
10-
- **Request Feeds**: Fill out [this form](https://tally.so/r/nGz2jj) to request the feeds you need.
11-
12-
Pyth is a decentralized oracle network that provides real-time price data to blockchain applications.
13-
It follows a design where price updates are pulled from pythnet, but it can be integrated into applications using push integration as well.
14-
[What is a Pull Oracle](/price-feeds/pull-updates) explains this difference in detail.
9+
- **Request Feeds**: Fill out [this form](https://tally.so/r/nGz2jj) to request the feeds you need. This is the fastest and simplest way to get your feeds pushed on chain.
10+
- **Run Price Pusher**: Set up and run a [Price Pusher](/price-feeds/schedule-price-updates/using-price-pusher) to automate the process of updating the on-chain price
1511

1612
To use real-time price data using push feeds, developers can use the following code snippet based on the ecosystem:
1713

0 commit comments

Comments
 (0)