diff --git a/third_party/pyth/price-service/src/rest.ts b/third_party/pyth/price-service/src/rest.ts index b67b220aa6..48b8100a5c 100644 --- a/third_party/pyth/price-service/src/rest.ts +++ b/third_party/pyth/price-service/src/rest.ts @@ -220,7 +220,7 @@ export class RestAPI { let stalePrices: Record = {} for (let priceId of priceIds) { - const latency = currentTime - this.priceFeedVaaInfo.getLatestPriceInfo(priceId)!.priceFeed.publishTime + const latency = currentTime - this.priceFeedVaaInfo.getLatestPriceInfo(priceId)!.attestationTime if (latency > stalenessThresholdSeconds) { stalePrices[priceId] = latency }