@@ -26,13 +26,15 @@ For a more in-depth explanation on the differences between push and pull oracles
26
26
27
27
## Comparing Push and Pull
28
28
29
+ ![ ] ( ../../images/Push-vs-Pull-Oracle.jpg )
30
+
29
31
Push and pull oracles differ on a number of important dimensions:
30
32
31
33
- ** 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.
33
35
In contrast, pull oracles can update at a much higher frequency.
34
36
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 .
36
38
The higher update frequencies of pull oracles allow applications to access lower-latency data.
37
39
- ** Blockchain support** -- Pull oracles support a wide variety of different blockchains.
38
40
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.
47
49
48
50
Push oracles and pull oracles require applications to integrate in different ways.
49
51
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.
51
53
With a pull oracle, applications need to update the on-chain price before reading it.
52
54
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