@@ -362,8 +362,8 @@ export class DriftClient {
362362 this . authoritySubAccountMap = config . authoritySubAccountMap
363363 ? config . authoritySubAccountMap
364364 : config . subAccountIds
365- ? new Map ( [ [ this . authority . toString ( ) , config . subAccountIds ] ] )
366- : new Map < string , number [ ] > ( ) ;
365+ ? new Map ( [ [ this . authority . toString ( ) , config . subAccountIds ] ] )
366+ : new Map < string , number [ ] > ( ) ;
367367
368368 this . includeDelegates = config . includeDelegates ?? false ;
369369 if ( config . accountSubscription ?. type === 'polling' ) {
@@ -848,8 +848,8 @@ export class DriftClient {
848848 this . authoritySubAccountMap = authoritySubaccountMap
849849 ? authoritySubaccountMap
850850 : subAccountIds
851- ? new Map ( [ [ this . authority . toString ( ) , subAccountIds ] ] )
852- : new Map < string , number [ ] > ( ) ;
851+ ? new Map ( [ [ this . authority . toString ( ) , subAccountIds ] ] )
852+ : new Map < string , number [ ] > ( ) ;
853853
854854 /* Reset user stats account */
855855 if ( this . userStats ?. isSubscribed ) {
@@ -1001,7 +1001,7 @@ export class DriftClient {
10011001 [ ...this . authoritySubAccountMap . values ( ) ] [ 0 ] [ 0 ] ?? 0 ,
10021002 new PublicKey (
10031003 [ ...this . authoritySubAccountMap . keys ( ) ] [ 0 ] ??
1004- this . authority . toString ( )
1004+ this . authority . toString ( )
10051005 )
10061006 ) ;
10071007 }
@@ -3311,19 +3311,19 @@ export class DriftClient {
33113311
33123312 const depositCollateralIx = isFromSubaccount
33133313 ? await this . getTransferDepositIx (
3314- amount ,
3315- marketIndex ,
3316- fromSubAccountId ,
3317- subAccountId
3318- )
3314+ amount ,
3315+ marketIndex ,
3316+ fromSubAccountId ,
3317+ subAccountId
3318+ )
33193319 : await this . getDepositInstruction (
3320- amount ,
3321- marketIndex ,
3322- userTokenAccount ,
3323- subAccountId ,
3324- false ,
3325- false
3326- ) ;
3320+ amount ,
3321+ marketIndex ,
3322+ userTokenAccount ,
3323+ subAccountId ,
3324+ false ,
3325+ false
3326+ ) ;
33273327
33283328 if ( subAccountId === 0 ) {
33293329 if (
@@ -4363,14 +4363,14 @@ export class DriftClient {
43634363
43644364 const marketOrderTxIxs = positionMaxLev
43654365 ? this . getPlaceOrdersAndSetPositionMaxLevIx (
4366- [ orderParams , ...bracketOrdersParams ] ,
4367- positionMaxLev ,
4368- userAccount . subAccountId
4369- )
4366+ [ orderParams , ...bracketOrdersParams ] ,
4367+ positionMaxLev ,
4368+ userAccount . subAccountId
4369+ )
43704370 : this . getPlaceOrdersIx (
4371- [ orderParams , ...bracketOrdersParams ] ,
4372- userAccount . subAccountId
4373- ) ;
4371+ [ orderParams , ...bracketOrdersParams ] ,
4372+ userAccount . subAccountId
4373+ ) ;
43744374
43754375 ixPromisesForTxs . marketOrderTx = marketOrderTxIxs ;
43764376
@@ -4518,10 +4518,10 @@ export class DriftClient {
45184518
45194519 const user = isDepositToTradeTx
45204520 ? getUserAccountPublicKeySync (
4521- this . program . programId ,
4522- this . authority ,
4523- subAccountId
4524- )
4521+ this . program . programId ,
4522+ this . authority ,
4523+ subAccountId
4524+ )
45254525 : await this . getUserAccountPublicKey ( subAccountId ) ;
45264526
45274527 const remainingAccounts = this . getRemainingAccounts ( {
@@ -5158,14 +5158,14 @@ export class DriftClient {
51585158 const marketIndex = order
51595159 ? order . marketIndex
51605160 : userAccount . orders . find (
5161- ( order ) => order . orderId === userAccount . nextOrderId - 1
5162- ) . marketIndex ;
5161+ ( order ) => order . orderId === userAccount . nextOrderId - 1
5162+ ) . marketIndex ;
51635163
51645164 makerInfo = Array . isArray ( makerInfo )
51655165 ? makerInfo
51665166 : makerInfo
5167- ? [ makerInfo ]
5168- : [ ] ;
5167+ ? [ makerInfo ]
5168+ : [ ] ;
51695169
51705170 const userAccounts = [ userAccount ] ;
51715171 for ( const maker of makerInfo ) {
@@ -5381,14 +5381,14 @@ export class DriftClient {
53815381 const marketIndex = order
53825382 ? order . marketIndex
53835383 : userAccount . orders . find (
5384- ( order ) => order . orderId === userAccount . nextOrderId - 1
5385- ) . marketIndex ;
5384+ ( order ) => order . orderId === userAccount . nextOrderId - 1
5385+ ) . marketIndex ;
53865386
53875387 makerInfo = Array . isArray ( makerInfo )
53885388 ? makerInfo
53895389 : makerInfo
5390- ? [ makerInfo ]
5391- : [ ] ;
5390+ ? [ makerInfo ]
5391+ : [ ] ;
53925392
53935393 const userAccounts = [ userAccount ] ;
53945394 for ( const maker of makerInfo ) {
@@ -6727,8 +6727,8 @@ export class DriftClient {
67276727 makerInfo = Array . isArray ( makerInfo )
67286728 ? makerInfo
67296729 : makerInfo
6730- ? [ makerInfo ]
6731- : [ ] ;
6730+ ? [ makerInfo ]
6731+ : [ ] ;
67326732
67336733 const userAccounts = [ this . getUserAccount ( subAccountId ) ] ;
67346734 for ( const maker of makerInfo ) {
@@ -6974,13 +6974,13 @@ export class DriftClient {
69746974 prefix ,
69756975 delegateSigner
69766976 ? this . program . coder . types . encode (
6977- 'SignedMsgOrderParamsDelegateMessage' ,
6978- withBuilderDefaults as SignedMsgOrderParamsDelegateMessage
6979- )
6977+ 'SignedMsgOrderParamsDelegateMessage' ,
6978+ withBuilderDefaults as SignedMsgOrderParamsDelegateMessage
6979+ )
69806980 : this . program . coder . types . encode (
6981- 'SignedMsgOrderParamsMessage' ,
6982- withBuilderDefaults as SignedMsgOrderParamsMessage
6983- ) ,
6981+ 'SignedMsgOrderParamsMessage' ,
6982+ withBuilderDefaults as SignedMsgOrderParamsMessage
6983+ ) ,
69846984 ] ) ;
69856985 return buf ;
69866986 }
@@ -10699,8 +10699,8 @@ export class DriftClient {
1069910699 ) : Promise < TransactionInstruction > {
1070010700 const remainingAccounts = userAccount
1070110701 ? this . getRemainingAccounts ( {
10702- userAccounts : [ userAccount ] ,
10703- } )
10702+ userAccounts : [ userAccount ] ,
10703+ } )
1070410704 : undefined ;
1070510705
1070610706 const ix = await this . program . instruction . disableUserHighLeverageMode (
0 commit comments