use MMOracleData to check vamm staleness
This commit is contained in:
@@ -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 =
|
||||||
|
|||||||
Reference in New Issue
Block a user