@drift-labs/jit-proxy 0.13.8 → 0.13.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.
@@ -84,6 +84,7 @@ class BaseJitter {
84
84
  const swiftOrderParamsBuf = Buffer.from(orderMessageRaw['order_message'], 'hex');
85
85
  const { swiftOrderParams, subAccountId: takerSubaccountId, } = this.driftClient.decodeSwiftOrderParamsMessage(swiftOrderParamsBuf);
86
86
  const takerAuthority = new web3_js_1.PublicKey(orderMessageRaw['taker_authority']);
87
+ const signingAuthority = new web3_js_1.PublicKey(orderMessageRaw['signing_authority']);
87
88
  const takerUserPubkey = await (0, sdk_1.getUserAccountPublicKey)(this.driftClient.program.programId, takerAuthority, takerSubaccountId);
88
89
  const takerUserPubkeyString = takerUserPubkey.toBase58();
89
90
  const takerUserAccount = (await this.swiftOrderSubscriber.userMap.mustGet(takerUserPubkey.toString())).getUserAccount();
@@ -137,7 +138,7 @@ class BaseJitter {
137
138
  if (swiftOrder.baseAssetAmount.lt(perpMarketAccount.amm.minOrderSize)) {
138
139
  return;
139
140
  }
140
- const promise = this.createTrySwiftFill(takerAuthority, {
141
+ const promise = this.createTrySwiftFill(signingAuthority, {
141
142
  orderParams: swiftOrderParamsBufHex,
142
143
  signature: Buffer.from(orderMessageRaw['order_signature'], 'base64'),
143
144
  }, (0, tweetnacl_util_1.decodeUTF8)(orderMessageRaw['uuid']), takerUserAccount, takerUserPubkey, (0, sdk_1.getUserStatsAccountPublicKey)(this.driftClient.program.programId, takerUserAccount.authority), swiftOrder, orderSignature, orderMessageRaw['market_index']).bind(this)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/jit-proxy",
3
- "version": "0.13.8",
3
+ "version": "0.13.9",
4
4
  "scripts": {
5
5
  "clean": "rm -rf lib",
6
6
  "build": "yarn clean && tsc"
@@ -208,6 +208,9 @@ export abstract class BaseJitter {
208
208
  const takerAuthority = new PublicKey(
209
209
  orderMessageRaw['taker_authority']
210
210
  );
211
+ const signingAuthority = new PublicKey(
212
+ orderMessageRaw['signing_authority']
213
+ );
211
214
  const takerUserPubkey = await getUserAccountPublicKey(
212
215
  this.driftClient.program.programId,
213
216
  takerAuthority,
@@ -289,7 +292,7 @@ export abstract class BaseJitter {
289
292
  }
290
293
 
291
294
  const promise = this.createTrySwiftFill(
292
- takerAuthority,
295
+ signingAuthority,
293
296
  {
294
297
  orderParams: swiftOrderParamsBufHex,
295
298
  signature: Buffer.from(