use MMOracleData to check vamm staleness

This commit is contained in:
Nick Caradonna
2025-10-22 12:31:55 -04:00
parent 60b7fab7bc
commit b4a0675a0e

View File

@@ -343,7 +343,7 @@ export class DLOBSubscriberIO extends DLOBSubscriber {
const dlobSlot = this.slotSource.getSlot(); const dlobSlot = this.slotSource.getSlot();
const oracleData = const oracleData =
marketType === 'perp' marketType === 'perp'
? this.driftClient.getOracleDataForPerpMarket(marketArgs.marketIndex) ? this.driftClient.getMMOracleDataForPerpMarket(marketArgs.marketIndex)
: this.driftClient.getOracleDataForSpotMarket(marketArgs.marketIndex); : this.driftClient.getOracleDataForSpotMarket(marketArgs.marketIndex);
const oracleSlot = oracleData.slot; const oracleSlot = oracleData.slot;
const isPerpMarketAndPrelaunchMarket = const isPerpMarketAndPrelaunchMarket =