Skip to content

Commit c5ccdea

Browse files
committed
prettify
1 parent 0e9a454 commit c5ccdea

File tree

3 files changed

+22
-23
lines changed

3 files changed

+22
-23
lines changed

sdk/src/adminClient.ts

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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(

tests/lpPool.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ describe('LP Pool', () => {
195195
periodicity,
196196
new BN(200 * PEG_PRECISION.toNumber())
197197
);
198-
await adminClient.updatePerpMarketLpPoolStatus(0, 1);
198+
await adminClient.updatePerpMarketLpPoolStatus(0, 1);
199199

200200
await adminClient.initializePerpMarket(
201201
1,
@@ -215,7 +215,7 @@ describe('LP Pool', () => {
215215
periodicity,
216216
new BN(200 * PEG_PRECISION.toNumber())
217217
);
218-
await adminClient.updatePerpMarketLpPoolStatus(2, 1);
218+
await adminClient.updatePerpMarketLpPoolStatus(2, 1);
219219

220220
await adminClient.updatePerpAuctionDuration(new BN(0));
221221

@@ -951,9 +951,7 @@ describe('LP Pool', () => {
951951
[0, 1, 2]
952952
)
953953
);
954-
settleTx.add(
955-
await adminClient.getUpdateLpPoolAumIxs(lpPool, [0, 1, 2])
956-
);
954+
settleTx.add(await adminClient.getUpdateLpPoolAumIxs(lpPool, [0, 1, 2]));
957955
await adminClient.sendTransaction(settleTx);
958956

959957
lpPool = (await adminClient.program.account.lpPool.fetch(

tests/lpPoolSwap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ describe('LP Pool', () => {
185185
periodicity,
186186
new BN(224 * PEG_PRECISION.toNumber())
187187
);
188-
await adminClient.updatePerpMarketLpPoolStatus(1, 1);
188+
await adminClient.updatePerpMarketLpPoolStatus(1, 1);
189189

190190
const optimalUtilization = SPOT_MARKET_RATE_PRECISION.div(
191191
new BN(2)

0 commit comments

Comments
 (0)