@drift-labs/jit-proxy 0.18.29 → 0.18.31
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.
|
@@ -284,7 +284,7 @@ class JitterSniper extends baseJitter_1.BaseJitter {
|
|
|
284
284
|
? this.perpParams.get(order.marketIndex)
|
|
285
285
|
: this.spotParams.get(order.marketIndex);
|
|
286
286
|
const oraclePrice = (0, sdk_1.isVariant)(order.marketType, 'perp')
|
|
287
|
-
? this.driftClient.
|
|
287
|
+
? this.driftClient.getMMOracleDataForPerpMarket(order.marketIndex)
|
|
288
288
|
: this.driftClient.getOracleDataForSpotMarket(order.marketIndex);
|
|
289
289
|
const makerOrderDir = (0, sdk_1.isVariant)(order.direction, 'long') ? 'sell' : 'buy';
|
|
290
290
|
const auctionStartPrice = (0, sdk_1.convertToNumber)((0, sdk_1.isVariant)(order.orderType, 'oracle')
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drift-labs/jit-proxy",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.31",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"clean": "rm -rf lib",
|
|
6
6
|
"build": "yarn clean && tsc"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@coral-xyz/anchor": "0.29.0",
|
|
10
|
-
"@drift-labs/sdk": "2.
|
|
10
|
+
"@drift-labs/sdk": "2.133.0-beta.0",
|
|
11
11
|
"@solana/web3.js": "1.91.7",
|
|
12
12
|
"tweetnacl-util": "^0.15.1"
|
|
13
13
|
},
|
|
@@ -444,7 +444,7 @@ export class JitterSniper extends BaseJitter {
|
|
|
444
444
|
? this.perpParams.get(order.marketIndex)
|
|
445
445
|
: this.spotParams.get(order.marketIndex);
|
|
446
446
|
const oraclePrice = isVariant(order.marketType, 'perp')
|
|
447
|
-
? this.driftClient.
|
|
447
|
+
? this.driftClient.getMMOracleDataForPerpMarket(order.marketIndex)
|
|
448
448
|
: this.driftClient.getOracleDataForSpotMarket(order.marketIndex);
|
|
449
449
|
|
|
450
450
|
const makerOrderDir = isVariant(order.direction, 'long') ? 'sell' : 'buy';
|