Are prices in the contract updated automatically every so often, or fetched only when needed?
With on-demand fetching, prices are put on-chain only when needed, so they can be updated more promptly. However, the app has to check whether a price is too old; otherwise, it might read a stale price.
Don’t laugh—I only remembered this after learning the hard way.
Understanding how it works is about knowing what you’re getting into before making a decision, not predicting whether prices will go up or down.
$PYTH 0.04967(+6.31%)
#PYTH
With on-demand fetching, prices are put on-chain only when needed, so they can be updated more promptly. However, the app has to check whether a price is too old; otherwise, it might read a stale price.
Don’t laugh—I only remembered this after learning the hard way.
Understanding how it works is about knowing what you’re getting into before making a decision, not predicting whether prices will go up or down.
$PYTH 0.04967(+6.31%)
#PYTH