add oracle price to calculateSpreadBidAskMark
This commit is contained in:
@@ -370,7 +370,7 @@ export class DLOBSubscriberIO extends DLOBSubscriber {
|
|||||||
latestSlot: new BN(this.slotSource.getSlot()),
|
latestSlot: new BN(this.slotSource.getSlot()),
|
||||||
});
|
});
|
||||||
const { markPrice, bestBidPrice, bestAskPrice, spreadPct, spreadQuote } =
|
const { markPrice, bestBidPrice, bestAskPrice, spreadPct, spreadQuote } =
|
||||||
COMMON_MATH.calculateSpreadBidAskMark(l2);
|
COMMON_MATH.calculateSpreadBidAskMark(l2, oracleData?.price);
|
||||||
const slot = l2.slot;
|
const slot = l2.slot;
|
||||||
|
|
||||||
if (slot) {
|
if (slot) {
|
||||||
|
|||||||
Reference in New Issue
Block a user