From d02873989744d304536b963ffe44698c89526bdd Mon Sep 17 00:00:00 2001 From: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 20 Aug 2025 19:49:00 +0000 Subject: [PATCH 1/7] Bumping drift-common to f6c387457b7525b5bbbd06e9126c6a2b05814b6c --- drift-common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drift-common b/drift-common index d97d5d7..f6c3874 160000 --- a/drift-common +++ b/drift-common @@ -1 +1 @@ -Subproject commit d97d5d7799d8b39aa9a1c5cc79cbb7c9a2f3379c +Subproject commit f6c387457b7525b5bbbd06e9126c6a2b05814b6c From 3b7d321cb62e0ab7e0d6edf4fa297407823cbc9b Mon Sep 17 00:00:00 2001 From: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 20 Aug 2025 21:23:39 +0000 Subject: [PATCH 2/7] Bumping drift-common to 17282999f7848c33165503fe6064289982921ff0 --- drift-common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drift-common b/drift-common index f6c3874..1728299 160000 --- a/drift-common +++ b/drift-common @@ -1 +1 @@ -Subproject commit f6c387457b7525b5bbbd06e9126c6a2b05814b6c +Subproject commit 17282999f7848c33165503fe6064289982921ff0 From 3f2cc8de1c6e8b3a4cbc45874c729063a53f13fa Mon Sep 17 00:00:00 2001 From: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 20 Aug 2025 22:36:20 +0000 Subject: [PATCH 3/7] Bumping drift-common to 93383c51baefcc3f7761d483596517b3e5098b81 --- drift-common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drift-common b/drift-common index 1728299..93383c5 160000 --- a/drift-common +++ b/drift-common @@ -1 +1 @@ -Subproject commit 17282999f7848c33165503fe6064289982921ff0 +Subproject commit 93383c51baefcc3f7761d483596517b3e5098b81 From 1b63a03782b740e9eddbc4fb28e063276028e2da Mon Sep 17 00:00:00 2001 From: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 21 Aug 2025 15:33:55 +0000 Subject: [PATCH 4/7] Bumping drift-common to bab4cd61ae3ae65c0a63b202d292cf03f16bf1cb --- drift-common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drift-common b/drift-common index 93383c5..bab4cd6 160000 --- a/drift-common +++ b/drift-common @@ -1 +1 @@ -Subproject commit 93383c51baefcc3f7761d483596517b3e5098b81 +Subproject commit bab4cd61ae3ae65c0a63b202d292cf03f16bf1cb From 747c63424b52e714eea28ecb8b9d01c9f32ad804 Mon Sep 17 00:00:00 2001 From: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 21 Aug 2025 15:38:25 +0000 Subject: [PATCH 5/7] Bumping drift-common to a1b47d132117b3d474182e12b887a8156a30e62d --- drift-common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drift-common b/drift-common index bab4cd6..a1b47d1 160000 --- a/drift-common +++ b/drift-common @@ -1 +1 @@ -Subproject commit bab4cd61ae3ae65c0a63b202d292cf03f16bf1cb +Subproject commit a1b47d132117b3d474182e12b887a8156a30e62d From f64e7202321010ae24ef3bbf3626af27e7a00f3d Mon Sep 17 00:00:00 2001 From: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 21 Aug 2025 17:03:45 +0000 Subject: [PATCH 6/7] Bumping drift-common to de78e923d2225db0515c6655335fd3d9a340b6f5 --- drift-common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drift-common b/drift-common index a1b47d1..de78e92 160000 --- a/drift-common +++ b/drift-common @@ -1 +1 @@ -Subproject commit a1b47d132117b3d474182e12b887a8156a30e62d +Subproject commit de78e923d2225db0515c6655335fd3d9a340b6f5 From de29c402620c2753390411937a702bd73cb2e88f Mon Sep 17 00:00:00 2001 From: Nour Alharithi Date: Thu, 21 Aug 2025 10:20:46 -0700 Subject: [PATCH 7/7] include latest slot in get vamm l2 generator and in calcualteBidAskPrice --- src/dlob-subscriber/DLOBSubscriberIO.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/dlob-subscriber/DLOBSubscriberIO.ts b/src/dlob-subscriber/DLOBSubscriberIO.ts index 5c726c1..67b2969 100644 --- a/src/dlob-subscriber/DLOBSubscriberIO.ts +++ b/src/dlob-subscriber/DLOBSubscriberIO.ts @@ -186,7 +186,9 @@ export class DLOBSubscriberIO extends DLOBSubscriber { this.driftClient.getMMOracleDataForPerpMarket( marketArgs.marketIndex ), - true + true, + undefined, + new BN(this.slotSource.getSlot()) ); bestBid = @@ -362,7 +364,11 @@ export class DLOBSubscriberIO extends DLOBSubscriber { includeVamm = false; } - const l2 = this.getL2({ ...l2FuncArgs, includeVamm }); + const l2 = this.getL2({ + ...l2FuncArgs, + includeVamm, + latestSlot: new BN(this.slotSource.getSlot()), + }); const { markPrice, bestBidPrice, bestAskPrice, spreadPct, spreadQuote } = COMMON_MATH.calculateSpreadBidAskMark(l2); const slot = l2.slot;