add oracle price to calculateSpreadBidAskMark

This commit is contained in:
Nick Caradonna
2025-10-22 12:27:00 -04:00
parent a7fa02dedd
commit 60b7fab7bc

View File

@@ -370,7 +370,7 @@ export class DLOBSubscriberIO extends DLOBSubscriber {
latestSlot: new BN(this.slotSource.getSlot()),
});
const { markPrice, bestBidPrice, bestAskPrice, spreadPct, spreadQuote } =
COMMON_MATH.calculateSpreadBidAskMark(l2);
COMMON_MATH.calculateSpreadBidAskMark(l2, oracleData?.price);
const slot = l2.slot;
if (slot) {