Skip to content

Commit 1c28ea2

Browse files
authored
initial commit (#322)
1 parent 6bfd067 commit 1c28ea2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

images/Push-vs-Pull-Oracle.jpg

579 KB
Loading

pages/price-feeds/pull-updates.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@ For a more in-depth explanation on the differences between push and pull oracles
2626

2727
## Comparing Push and Pull
2828

29+
![](../../images/Push-vs-Pull-Oracle.jpg)
30+
2931
Push and pull oracles differ on a number of important dimensions:
3032

3133
- **Update frequency** -- In a push oracle, every price feed updates at a fixed update frequency.
32-
The frequency is determined by the oracle operator, but typically is in the range of every 10 minutes to 1 hour.
34+
The oracle operator determines the frequency, but it typically ranges from every 10 minutes to 1 hour.
3335
In contrast, pull oracles can update at a much higher frequency.
3436
For example, every Pyth price feed updates every 400 milliseconds.
35-
- **Latency** -- The update frequency of an oracle also affects the latency of its prices.
37+
- **Latency** -- An oracle's update frequency also affects its prices' latency.
3638
The higher update frequencies of pull oracles allow applications to access lower-latency data.
3739
- **Blockchain support** -- Pull oracles support a wide variety of different blockchains.
3840
Push oracles typically support a smaller number of blockchains, as each additional chain requires ongoing gas expenditures.
@@ -47,6 +49,6 @@ These gas costs limit their scalability across all of the dimensions above.
4749

4850
Push oracles and pull oracles require applications to integrate in different ways.
4951
With a push oracle, applications typically read the current price out of a smart contract.
50-
Since the push oracle is periodically updating the price, the application can assume the data in the smart contract is (reasonably) fresh.
52+
Since the push oracle periodically updates the price, the application can assume the data in the smart contract is (reasonably) fresh.
5153
With a pull oracle, applications need to update the on-chain price before reading it.
5254
Developers using Pyth can refer to [How to Use Real-Time Price Data](/price-feeds/use-real-time-data) to learn how to perform these steps.

0 commit comments

Comments
 (0)