File tree Expand file tree Collapse file tree 5 files changed +20
-17
lines changed
Expand file tree Collapse file tree 5 files changed +20
-17
lines changed Original file line number Diff line number Diff line change 55 "main" : " lib/index.js" ,
66 "license" : " Apache-2.0" ,
77 "dependencies" : {
8- "@drift-labs/jit-proxy" : " 0.21.74 " ,
9- "@drift-labs/sdk" : " 2.143.0-beta.8 " ,
8+ "@drift-labs/jit-proxy" : " 0.21.75 " ,
9+ "@drift-labs/sdk" : " 2.143.0-beta.9 " ,
1010 "@drift/common" : " file:./drift-common/common-ts" ,
1111 "@opentelemetry/api" : " 1.7.0" ,
1212 "@opentelemetry/auto-instrumentations-node" : " ^0.62.1" ,
9898 "engines" : {
9999 "node" : " >=20.18.0"
100100 }
101- }
101+ }
Original file line number Diff line number Diff line change @@ -944,7 +944,7 @@ export class FillerBot extends TxThreaded implements Bot {
944944 mmOraclePriceData ,
945945 this . getMaxSlot ( ) ,
946946 Date . now ( ) / 1000 ,
947- this . driftClient . getStateAccount ( ) . minPerpAuctionDuration
947+ this . driftClient . getStateAccount ( )
948948 ) ;
949949
950950 if (
Original file line number Diff line number Diff line change @@ -1411,7 +1411,7 @@ export class FillerMultithreaded {
14111411 mmOraclePriceData ,
14121412 this . slotSubscriber . getSlot ( ) ,
14131413 Date . now ( ) / 1000 ,
1414- this . driftClient . getStateAccount ( ) . minPerpAuctionDuration
1414+ this . driftClient . getStateAccount ( )
14151415 )
14161416 ) {
14171417 return false ;
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ import {
4949 calculateBaseAssetAmountForAmmToFulfill ,
5050 isOrderExpired ,
5151 MMOraclePriceData ,
52+ StateAccount ,
5253} from '@drift-labs/sdk' ;
5354import {
5455 NATIVE_MINT ,
@@ -1599,7 +1600,7 @@ export function isFillableByVAMMDetails(
15991600 mmOraclePriceData : MMOraclePriceData ,
16001601 slot : number ,
16011602 ts : number ,
1602- minAuctionDuration : number
1603+ state : StateAccount
16031604) : {
16041605 fillable : boolean ;
16051606 fallbackAvailableLiquiditySource : boolean ;
@@ -1609,8 +1610,10 @@ export function isFillableByVAMMDetails(
16091610} {
16101611 const fallbackAvailableLiquiditySource = isFallbackAvailableLiquiditySource (
16111612 order ,
1612- minAuctionDuration ,
1613- slot
1613+ mmOraclePriceData ,
1614+ slot ,
1615+ state ,
1616+ market
16141617 ) ;
16151618 const baseAssetAmountForAmmToFulfill =
16161619 calculateBaseAssetAmountForAmmToFulfill (
Original file line number Diff line number Diff line change 112112 enabled "2.0.x"
113113 kuler "^2.0.0"
114114
115- " @drift-labs/[email protected] .74 " :
116- version "0.21.74 "
117- resolved "https://registry.yarnpkg.com/@drift-labs/jit-proxy/-/jit-proxy-0.21.74 .tgz#37fd2d24f1011eb59aa26aaca452249bc18c5699 "
118- integrity sha512-Cp/Eg1YlWijeAJzFgtyI0kcKVxzpualFUpq2cOMec6qQ0jbxVThaep5C/E/2bz22egd2tC7PxHKmnb/KqQigzQ ==
115+ " @drift-labs/[email protected] .75 " :
116+ version "0.21.75 "
117+ resolved "https://registry.yarnpkg.com/@drift-labs/jit-proxy/-/jit-proxy-0.21.75 .tgz#8a299da95e3c96f10d3bbfbec1b7f61a00d37660 "
118+ integrity sha512-9R0PeypmQppWcet1+5G+d+82IrpCP2u+yhvCgS112T14eqxw9XaZxnrXPZUxU1/7cEp9YWfT1Vw+ZKgUwHmZAQ ==
119119 dependencies :
120120 " @coral-xyz/anchor" " 0.29.0"
121- " @drift-labs/sdk" " 2.143.0-beta.8 "
121+ " @drift-labs/sdk" " 2.143.0-beta.9 "
122122 " @solana/web3.js" " 1.98.0"
123123 tweetnacl-util "^0.15.1"
124124 typescript "5.4.5"
125125
126- " @drift-labs/[email protected] .8 " :
127- version "2.143.0-beta.8 "
128- resolved "https://registry.yarnpkg.com/@drift-labs/sdk/-/sdk-2.143.0-beta.8 .tgz#6b20dcc75f321a29f6becf9dd49685096ccfe58d "
129- integrity sha512-otfg8S88pvv4TH0+VBaB9BvkF7fJhV1wGQkiUHhWP1vx/mqd2vUqPvebTd2YChVvV5F8O8jYWn6N6XONmUlgMA ==
126+ " @drift-labs/[email protected] .9 " :
127+ version "2.143.0-beta.9 "
128+ resolved "https://registry.yarnpkg.com/@drift-labs/sdk/-/sdk-2.143.0-beta.9 .tgz#7f8427ee552bdf9997035049dbbf1deca634c1d9 "
129+ integrity sha512-yo4BAxUkzrD9KsHcNggo7xWmmLAgCDjFzjVil0/DgrqNy08gulWbZf6rPUp1oxIopBOE6EcPBNaQ1psEN+tuSg ==
130130 dependencies :
131131 " @coral-xyz/anchor" " 0.29.0"
132132 " @coral-xyz/anchor-30" " npm:@coral-xyz/[email protected] "
You can’t perform that action at this time.
0 commit comments