diff --git a/components/trade/OraclePrice.tsx b/components/trade/OraclePrice.tsx index f010ff7f..6283e5d1 100644 --- a/components/trade/OraclePrice.tsx +++ b/components/trade/OraclePrice.tsx @@ -102,10 +102,11 @@ const OraclePrice = () => { oracleWriteSlot, accountSlot ) + const maxStalenessSlots = marketOrBank.oracleConfig.maxStalenessSlots.toNumber() setHighestSlot(highestSlot) setIsStale( - highestSlot - lastUpdatedSlot > - marketOrBank.oracleConfig.maxStalenessSlots.toNumber() + maxStalenessSlots > 0 && + highestSlot - lastUpdatedSlot > maxStalenessSlots ) if (selectedMarket instanceof PerpMarket) {