We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16bdc0f commit 0d3f030Copy full SHA for 0d3f030
third_party/pyth/price-service/src/rest.ts
@@ -220,7 +220,7 @@ export class RestAPI {
220
let stalePrices: Record<HexString, number> = {}
221
222
for (let priceId of priceIds) {
223
- const latency = currentTime - this.priceFeedVaaInfo.getLatestPriceInfo(priceId)!.priceFeed.publishTime
+ const latency = currentTime - this.priceFeedVaaInfo.getLatestPriceInfo(priceId)!.attestationTime
224
if (latency > stalenessThresholdSeconds) {
225
stalePrices[priceId] = latency
226
}
0 commit comments