@drift-labs/jit-proxy 0.14.1 → 0.14.2

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.
@@ -108,6 +108,13 @@ class BaseJitter {
108
108
  const takerUserPubkeyString = takerUserPubkey.toBase58();
109
109
  const takerUserAccount = await this.swiftOrderSubscriber.userAccountGetter.mustGetUserAccount(takerUserPubkey.toString());
110
110
  const orderSlot = Math.min(signedMsgOrderParamsMessage.slot.toNumber(), this.slotSubscriber.getSlot());
111
+ /**
112
+ * Base asset amount equalling u64::max is a special case that signals to program
113
+ * to bring taker to max leverage. Program will calculate the max base asset amount to do this
114
+ * once the tx lands on chain.
115
+ *
116
+ * You will see this is base asset amount is ffffffffffffffff
117
+ */
111
118
  const signedMsgOrder = {
112
119
  status: sdk_1.OrderStatus.OPEN,
113
120
  orderType: signedMsgOrderParams.orderType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/jit-proxy",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "scripts": {
5
5
  "clean": "rm -rf lib",
6
6
  "build": "yarn clean && tsc"
@@ -253,6 +253,14 @@ export abstract class BaseJitter {
253
253
  signedMsgOrderParamsMessage.slot.toNumber(),
254
254
  this.slotSubscriber.getSlot()
255
255
  );
256
+
257
+ /**
258
+ * Base asset amount equalling u64::max is a special case that signals to program
259
+ * to bring taker to max leverage. Program will calculate the max base asset amount to do this
260
+ * once the tx lands on chain.
261
+ *
262
+ * You will see this is base asset amount is ffffffffffffffff
263
+ */
256
264
  const signedMsgOrder: Order = {
257
265
  status: OrderStatus.OPEN,
258
266
  orderType: signedMsgOrderParams.orderType,