@@ -970,12 +970,10 @@ export class AdminClient extends DriftClient {
970970
971971 public async updatePerpMarketLpPoolStatus (
972972 perpMarketIndex : number ,
973- lpStatus : number ,
973+ lpStatus : number
974974 ) {
975- const updatePerpMarketLpPoolStatusIx = await this . getUpdatePerpMarketLpPoolStatusIx (
976- perpMarketIndex ,
977- lpStatus
978- ) ;
975+ const updatePerpMarketLpPoolStatusIx =
976+ await this . getUpdatePerpMarketLpPoolStatusIx ( perpMarketIndex , lpStatus ) ;
979977
980978 const tx = await this . buildTransaction ( updatePerpMarketLpPoolStatusIx ) ;
981979
@@ -988,18 +986,21 @@ export class AdminClient extends DriftClient {
988986 perpMarketIndex : number ,
989987 lpStatus : number
990988 ) : Promise < TransactionInstruction > {
991- return await this . program . instruction . updatePerpMarketLpPoolStatus ( lpStatus , {
992- accounts : {
993- state : await this . getStatePublicKey ( ) ,
994- admin : this . isSubscribed
995- ? this . getStateAccount ( ) . admin
996- : this . wallet . publicKey ,
997- perpMarket : await getPerpMarketPublicKey (
998- this . program . programId ,
999- perpMarketIndex
1000- ) ,
1001- } ,
1002- } ) ;
989+ return await this . program . instruction . updatePerpMarketLpPoolStatus (
990+ lpStatus ,
991+ {
992+ accounts : {
993+ state : await this . getStatePublicKey ( ) ,
994+ admin : this . isSubscribed
995+ ? this . getStateAccount ( ) . admin
996+ : this . wallet . publicKey ,
997+ perpMarket : await getPerpMarketPublicKey (
998+ this . program . programId ,
999+ perpMarketIndex
1000+ ) ,
1001+ } ,
1002+ }
1003+ ) ;
10031004 }
10041005
10051006 public async moveAmmToPrice (
0 commit comments