@drift-labs/sdk 2.48.0-beta.8 → 2.48.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/lib/dlob/orderBookLevels.js +1 -1
- package/package.json +1 -1
- package/src/dlob/orderBookLevels.ts +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.48.0-beta.
|
|
1
|
+
2.48.0-beta.9
|
|
@@ -93,7 +93,7 @@ function getVammL2Generator({ marketAccount, oraclePriceData, numOrders, now, to
|
|
|
93
93
|
}
|
|
94
94
|
const updatedAmm = (0, __1.calculateUpdatedAMM)(marketAccount.amm, oraclePriceData);
|
|
95
95
|
let [openBids, openAsks] = (0, __1.calculateMarketOpenBidAsk)(updatedAmm.baseAssetReserve, updatedAmm.minBaseAssetReserve, updatedAmm.maxBaseAssetReserve, updatedAmm.orderStepSize);
|
|
96
|
-
const minOrderSize = marketAccount.amm.
|
|
96
|
+
const minOrderSize = marketAccount.amm.minOrderSize;
|
|
97
97
|
if (openBids.lt(minOrderSize.muln(2))) {
|
|
98
98
|
openBids = __1.ZERO;
|
|
99
99
|
}
|
package/package.json
CHANGED
|
@@ -173,7 +173,7 @@ export function getVammL2Generator({
|
|
|
173
173
|
updatedAmm.orderStepSize
|
|
174
174
|
);
|
|
175
175
|
|
|
176
|
-
const minOrderSize = marketAccount.amm.
|
|
176
|
+
const minOrderSize = marketAccount.amm.minOrderSize;
|
|
177
177
|
if (openBids.lt(minOrderSize.muln(2))) {
|
|
178
178
|
openBids = ZERO;
|
|
179
179
|
}
|