flash-sdk 2.12.0 → 2.12.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/PerpetualsClient.d.ts +0 -4
- package/dist/PerpetualsClient.js +30 -163
- package/dist/PoolConfig.d.ts +3 -3
- package/dist/PoolConfig.js +4 -4
- package/dist/PoolConfig.json +20 -20
- package/dist/idl/perp_composability.d.ts +0 -119
- package/dist/idl/perp_composability.js +0 -119
- package/dist/idl/perpetuals.d.ts +190 -0
- package/dist/idl/perpetuals.js +190 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
@@ -2427,10 +2427,6 @@ export declare class PerpetualsClient {
|
|
2427
2427
|
instructions: TransactionInstruction[];
|
2428
2428
|
additionalSigners: Signer[];
|
2429
2429
|
}>;
|
2430
|
-
addLiquidityAndStakeComposibility: (inputSymbol: string, amountIn: BN, minLpAmountOut: BN, poolConfig: PoolConfig, skipBalanceChecks?: boolean) => Promise<{
|
2431
|
-
instructions: TransactionInstruction[];
|
2432
|
-
additionalSigners: Signer[];
|
2433
|
-
}>;
|
2434
2430
|
removeLiquidity: (recieveTokenSymbol: string, liquidityAmountIn: BN, minTokenAmountOut: BN, poolConfig: PoolConfig, closeLpATA?: boolean, createUserATA?: boolean, closeUsersWSOLATA?: boolean) => Promise<{
|
2435
2431
|
instructions: TransactionInstruction[];
|
2436
2432
|
additionalSigners: Signer[];
|
package/dist/PerpetualsClient.js
CHANGED
@@ -603,7 +603,7 @@ var PerpetualsClient = (function () {
|
|
603
603
|
.accounts({
|
604
604
|
perpetuals: this.perpetuals.publicKey,
|
605
605
|
pool: poolConfig.poolAddress,
|
606
|
-
lpTokenMint: poolConfig.
|
606
|
+
lpTokenMint: poolConfig.stakedLpTokenMint,
|
607
607
|
ixSysvar: web3_js_1.SYSVAR_INSTRUCTIONS_PUBKEY
|
608
608
|
})
|
609
609
|
.remainingAccounts(__spreadArray(__spreadArray(__spreadArray([], custodyAccountMetas, true), custodyOracleAccountMetas, true), markets, true))
|
@@ -650,7 +650,7 @@ var PerpetualsClient = (function () {
|
|
650
650
|
.accounts({
|
651
651
|
perpetuals: this.perpetuals.publicKey,
|
652
652
|
pool: poolConfig.poolAddress,
|
653
|
-
lpTokenMint: poolConfig.
|
653
|
+
lpTokenMint: poolConfig.stakedLpTokenMint,
|
654
654
|
ixSysvar: web3_js_1.SYSVAR_INSTRUCTIONS_PUBKEY
|
655
655
|
})
|
656
656
|
.remainingAccounts(__spreadArray(__spreadArray(__spreadArray([], custodyAccountMetas, true), custodyOracleAccountMetas, true), markets, true))
|
@@ -697,7 +697,7 @@ var PerpetualsClient = (function () {
|
|
697
697
|
.accounts({
|
698
698
|
perpetuals: this.perpetuals.publicKey,
|
699
699
|
pool: poolConfig.poolAddress,
|
700
|
-
lpTokenMint: poolConfig.
|
700
|
+
lpTokenMint: poolConfig.stakedLpTokenMint,
|
701
701
|
ixSysvar: web3_js_1.SYSVAR_INSTRUCTIONS_PUBKEY
|
702
702
|
})
|
703
703
|
.remainingAccounts(__spreadArray(__spreadArray(__spreadArray([], custodyAccountMetas, true), custodyOracleAccountMetas, true), markets, true))
|
@@ -3135,7 +3135,7 @@ var PerpetualsClient = (function () {
|
|
3135
3135
|
return [4, (0, spl_token_1.getAssociatedTokenAddress)(payTokenCustodyConfig.mintKey, publicKey)];
|
3136
3136
|
case 2:
|
3137
3137
|
userPayingTokenAccount = _f.sent();
|
3138
|
-
return [4, (0, spl_token_1.getAssociatedTokenAddress)(poolConfig.
|
3138
|
+
return [4, (0, spl_token_1.getAssociatedTokenAddress)(poolConfig.stakedLpTokenMint, publicKey)];
|
3139
3139
|
case 3:
|
3140
3140
|
lpTokenAccount = _f.sent();
|
3141
3141
|
custodyAccountMetas = [];
|
@@ -3165,7 +3165,7 @@ var PerpetualsClient = (function () {
|
|
3165
3165
|
return [4, (0, utils_1.checkIfAccountExists)(lpTokenAccount, this.provider.connection)];
|
3166
3166
|
case 4:
|
3167
3167
|
if (!(_f.sent())) {
|
3168
|
-
instructions.push((0, spl_token_1.createAssociatedTokenAccountInstruction)(publicKey, lpTokenAccount, publicKey, poolConfig.
|
3168
|
+
instructions.push((0, spl_token_1.createAssociatedTokenAccountInstruction)(publicKey, lpTokenAccount, publicKey, poolConfig.stakedLpTokenMint));
|
3169
3169
|
}
|
3170
3170
|
if (!(payTokenSymbol == 'SOL')) return [3, 7];
|
3171
3171
|
console.log("payTokenSymbol === SOL", payTokenSymbol);
|
@@ -3226,7 +3226,7 @@ var PerpetualsClient = (function () {
|
|
3226
3226
|
custody: payTokenCustodyConfig.custodyAccount,
|
3227
3227
|
custodyOracleAccount: this.useExtOracleAccount ? payTokenCustodyConfig.extOracleAccount : payTokenCustodyConfig.intOracleAccount,
|
3228
3228
|
custodyTokenAccount: payTokenCustodyConfig.tokenAccount,
|
3229
|
-
lpTokenMint: poolConfig.
|
3229
|
+
lpTokenMint: poolConfig.stakedLpTokenMint,
|
3230
3230
|
eventAuthority: this.eventAuthority.publicKey,
|
3231
3231
|
tokenProgram: spl_token_1.TOKEN_PROGRAM_ID,
|
3232
3232
|
program: this.programId,
|
@@ -3262,7 +3262,7 @@ var PerpetualsClient = (function () {
|
|
3262
3262
|
instructions = [];
|
3263
3263
|
postInstructions = [];
|
3264
3264
|
additionalSigners = [];
|
3265
|
-
lpTokenMint = poolConfig.
|
3265
|
+
lpTokenMint = poolConfig.stakedLpTokenMint;
|
3266
3266
|
inputCustodyConfig = poolConfig.custodies.find(function (i) { return i.mintKey.equals(poolConfig.getTokenFromSymbol(inputSymbol).mintKey); });
|
3267
3267
|
return [4, (0, spl_token_1.getAssociatedTokenAddress)(lpTokenMint, publicKey)];
|
3268
3268
|
case 1:
|
@@ -3288,7 +3288,7 @@ var PerpetualsClient = (function () {
|
|
3288
3288
|
return [4, (0, utils_1.checkIfAccountExists)(lpTokenAccount, this.provider.connection)];
|
3289
3289
|
case 4:
|
3290
3290
|
if (!(_f.sent())) {
|
3291
|
-
instructions.push((0, spl_token_1.createAssociatedTokenAccountInstruction)(publicKey, lpTokenAccount, publicKey, poolConfig.
|
3291
|
+
instructions.push((0, spl_token_1.createAssociatedTokenAccountInstruction)(publicKey, lpTokenAccount, publicKey, poolConfig.stakedLpTokenMint));
|
3292
3292
|
}
|
3293
3293
|
preInstructions = [
|
3294
3294
|
web3_js_1.SystemProgram.createAccount({
|
@@ -3381,144 +3381,12 @@ var PerpetualsClient = (function () {
|
|
3381
3381
|
});
|
3382
3382
|
});
|
3383
3383
|
};
|
3384
|
-
this.addLiquidityAndStakeComposibility = function (inputSymbol, amountIn, minLpAmountOut, poolConfig, skipBalanceChecks) {
|
3385
|
-
if (skipBalanceChecks === void 0) { skipBalanceChecks = false; }
|
3386
|
-
return __awaiter(_this, void 0, void 0, function () {
|
3387
|
-
var publicKey, wrappedSolAccount, preInstructions, instructions, postInstructions, additionalSigners, userInputTokenAccount, lpTokenMint, inputCustodyConfig, lpTokenAccount, flpStakeAccount, poolStakedLpVault, accCreationLamports, lamports, unWrappedSolBalance, _a, tokenAccountBalance, _b, custodyAccountMetas, custodyOracleAccountMetas, markets, _i, _c, custody, _d, _e, market, instruction;
|
3388
|
-
return __generator(this, function (_f) {
|
3389
|
-
switch (_f.label) {
|
3390
|
-
case 0:
|
3391
|
-
publicKey = this.provider.wallet.publicKey;
|
3392
|
-
preInstructions = [];
|
3393
|
-
instructions = [];
|
3394
|
-
postInstructions = [];
|
3395
|
-
additionalSigners = [];
|
3396
|
-
lpTokenMint = poolConfig.lpTokenMint;
|
3397
|
-
inputCustodyConfig = poolConfig.custodies.find(function (i) { return i.mintKey.equals(poolConfig.getTokenFromSymbol(inputSymbol).mintKey); });
|
3398
|
-
return [4, (0, spl_token_1.getAssociatedTokenAddress)(lpTokenMint, publicKey)];
|
3399
|
-
case 1:
|
3400
|
-
lpTokenAccount = _f.sent();
|
3401
|
-
flpStakeAccount = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from("stake"), publicKey.toBuffer(), poolConfig.poolAddress.toBuffer()], this.programId)[0];
|
3402
|
-
poolStakedLpVault = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from("staked_lp_token_account"), poolConfig.poolAddress.toBuffer(), lpTokenMint.toBuffer()], this.programId)[0];
|
3403
|
-
if (!(inputSymbol == 'SOL')) return [3, 5];
|
3404
|
-
console.log("inputSymbol === SOL", inputSymbol);
|
3405
|
-
wrappedSolAccount = new web3_js_1.Keypair();
|
3406
|
-
return [4, (0, spl_token_1.getMinimumBalanceForRentExemptAccount)(this.provider.connection)];
|
3407
|
-
case 2:
|
3408
|
-
accCreationLamports = (_f.sent());
|
3409
|
-
console.log("accCreationLamports:", accCreationLamports);
|
3410
|
-
lamports = amountIn.add(new anchor_1.BN(accCreationLamports));
|
3411
|
-
console.log("lamports:", lamports.toNumber());
|
3412
|
-
_a = anchor_1.BN.bind;
|
3413
|
-
return [4, this.provider.connection.getBalance(publicKey)];
|
3414
|
-
case 3:
|
3415
|
-
unWrappedSolBalance = new (_a.apply(anchor_1.BN, [void 0, _f.sent()]))();
|
3416
|
-
if (unWrappedSolBalance.lt(lamports)) {
|
3417
|
-
throw "Insufficient SOL Funds";
|
3418
|
-
}
|
3419
|
-
return [4, (0, utils_1.checkIfAccountExists)(lpTokenAccount, this.provider.connection)];
|
3420
|
-
case 4:
|
3421
|
-
if (!(_f.sent())) {
|
3422
|
-
instructions.push((0, spl_token_1.createAssociatedTokenAccountInstruction)(publicKey, lpTokenAccount, publicKey, poolConfig.lpTokenMint));
|
3423
|
-
}
|
3424
|
-
preInstructions = [
|
3425
|
-
web3_js_1.SystemProgram.createAccount({
|
3426
|
-
fromPubkey: publicKey,
|
3427
|
-
newAccountPubkey: wrappedSolAccount.publicKey,
|
3428
|
-
lamports: lamports.toNumber(),
|
3429
|
-
space: 165,
|
3430
|
-
programId: spl_token_1.TOKEN_PROGRAM_ID,
|
3431
|
-
}),
|
3432
|
-
(0, spl_token_1.createInitializeAccount3Instruction)(wrappedSolAccount.publicKey, spl_token_1.NATIVE_MINT, publicKey),
|
3433
|
-
];
|
3434
|
-
postInstructions = [
|
3435
|
-
(0, spl_token_1.createCloseAccountInstruction)(wrappedSolAccount.publicKey, publicKey, publicKey),
|
3436
|
-
];
|
3437
|
-
additionalSigners.push(wrappedSolAccount);
|
3438
|
-
return [3, 8];
|
3439
|
-
case 5:
|
3440
|
-
userInputTokenAccount = (0, spl_token_1.getAssociatedTokenAddressSync)(inputCustodyConfig.mintKey, publicKey, true);
|
3441
|
-
return [4, (0, utils_1.checkIfAccountExists)(userInputTokenAccount, this.provider.connection)];
|
3442
|
-
case 6:
|
3443
|
-
if (!(_f.sent())) {
|
3444
|
-
throw "Insufficient Funds , token Account doesn't exist";
|
3445
|
-
}
|
3446
|
-
if (!!skipBalanceChecks) return [3, 8];
|
3447
|
-
_b = anchor_1.BN.bind;
|
3448
|
-
return [4, this.provider.connection.getTokenAccountBalance(userInputTokenAccount)];
|
3449
|
-
case 7:
|
3450
|
-
tokenAccountBalance = new (_b.apply(anchor_1.BN, [void 0, (_f.sent()).value.amount]))();
|
3451
|
-
if (tokenAccountBalance.lt(amountIn)) {
|
3452
|
-
throw "Insufficient Funds need more ".concat(amountIn.sub(tokenAccountBalance), " tokens");
|
3453
|
-
}
|
3454
|
-
_f.label = 8;
|
3455
|
-
case 8:
|
3456
|
-
custodyAccountMetas = [];
|
3457
|
-
custodyOracleAccountMetas = [];
|
3458
|
-
markets = [];
|
3459
|
-
for (_i = 0, _c = poolConfig.custodies; _i < _c.length; _i++) {
|
3460
|
-
custody = _c[_i];
|
3461
|
-
custodyAccountMetas.push({
|
3462
|
-
pubkey: custody.custodyAccount,
|
3463
|
-
isSigner: false,
|
3464
|
-
isWritable: false,
|
3465
|
-
});
|
3466
|
-
custodyOracleAccountMetas.push({
|
3467
|
-
pubkey: this.useExtOracleAccount ? custody.extOracleAccount : custody.intOracleAccount,
|
3468
|
-
isSigner: false,
|
3469
|
-
isWritable: false,
|
3470
|
-
});
|
3471
|
-
}
|
3472
|
-
for (_d = 0, _e = poolConfig.markets; _d < _e.length; _d++) {
|
3473
|
-
market = _e[_d];
|
3474
|
-
markets.push({
|
3475
|
-
pubkey: market.marketAccount,
|
3476
|
-
isSigner: false,
|
3477
|
-
isWritable: false,
|
3478
|
-
});
|
3479
|
-
}
|
3480
|
-
return [4, this.programPerpComposability.methods.addLiquidityAndStake({
|
3481
|
-
amountIn: amountIn,
|
3482
|
-
minLpAmountOut: minLpAmountOut,
|
3483
|
-
}).accounts({
|
3484
|
-
perpProgram: this.programId,
|
3485
|
-
owner: publicKey,
|
3486
|
-
feePayer: publicKey,
|
3487
|
-
fundingAccount: inputSymbol == 'SOL' ? wrappedSolAccount.publicKey : userInputTokenAccount,
|
3488
|
-
lpTokenAccount: lpTokenAccount,
|
3489
|
-
transferAuthority: poolConfig.transferAuthority,
|
3490
|
-
perpetuals: poolConfig.perpetuals,
|
3491
|
-
pool: poolConfig.poolAddress,
|
3492
|
-
custody: inputCustodyConfig.custodyAccount,
|
3493
|
-
custodyOracleAccount: this.useExtOracleAccount ? inputCustodyConfig.extOracleAccount : inputCustodyConfig.intOracleAccount,
|
3494
|
-
custodyTokenAccount: inputCustodyConfig.tokenAccount,
|
3495
|
-
lpTokenMint: lpTokenMint,
|
3496
|
-
flpStakeAccount: flpStakeAccount,
|
3497
|
-
poolStakedLpVault: poolStakedLpVault,
|
3498
|
-
systemProgram: web3_js_1.SystemProgram.programId,
|
3499
|
-
tokenProgram: spl_token_1.TOKEN_PROGRAM_ID,
|
3500
|
-
eventAuthority: this.eventAuthority.publicKey,
|
3501
|
-
ixSysvar: web3_js_1.SYSVAR_INSTRUCTIONS_PUBKEY
|
3502
|
-
})
|
3503
|
-
.remainingAccounts(__spreadArray(__spreadArray(__spreadArray([], custodyAccountMetas, true), custodyOracleAccountMetas, true), markets, true))
|
3504
|
-
.instruction()];
|
3505
|
-
case 9:
|
3506
|
-
instruction = _f.sent();
|
3507
|
-
instructions.push(instruction);
|
3508
|
-
return [2, {
|
3509
|
-
instructions: __spreadArray(__spreadArray(__spreadArray([], preInstructions, true), instructions, true), postInstructions, true),
|
3510
|
-
additionalSigners: additionalSigners
|
3511
|
-
}];
|
3512
|
-
}
|
3513
|
-
});
|
3514
|
-
});
|
3515
|
-
};
|
3516
3384
|
this.removeLiquidity = function (recieveTokenSymbol, liquidityAmountIn, minTokenAmountOut, poolConfig, closeLpATA, createUserATA, closeUsersWSOLATA) {
|
3517
3385
|
if (closeLpATA === void 0) { closeLpATA = false; }
|
3518
3386
|
if (createUserATA === void 0) { createUserATA = true; }
|
3519
3387
|
if (closeUsersWSOLATA === void 0) { closeUsersWSOLATA = false; }
|
3520
3388
|
return __awaiter(_this, void 0, void 0, function () {
|
3521
|
-
var recieveTokenCustodyConfig, publicKey, userReceivingTokenAccount, wrappedSolAccount, preInstructions, instructions, postInstructions, additionalSigners,
|
3389
|
+
var recieveTokenCustodyConfig, publicKey, userReceivingTokenAccount, wrappedSolAccount, preInstructions, instructions, postInstructions, additionalSigners, stakedLpTokenAccount, custodyAccountMetas, custodyOracleAccountMetas, markets, _i, _a, custody, _b, _c, market, lamports, _d, removeLiquidityTx, closeInx, closeWsolATAIns, err_5;
|
3522
3390
|
return __generator(this, function (_e) {
|
3523
3391
|
switch (_e.label) {
|
3524
3392
|
case 0:
|
@@ -3534,9 +3402,9 @@ var PerpetualsClient = (function () {
|
|
3534
3402
|
_e.label = 1;
|
3535
3403
|
case 1:
|
3536
3404
|
_e.trys.push([1, 10, , 11]);
|
3537
|
-
return [4, (0, spl_token_1.getAssociatedTokenAddress)(poolConfig.
|
3405
|
+
return [4, (0, spl_token_1.getAssociatedTokenAddress)(poolConfig.stakedLpTokenMint, publicKey)];
|
3538
3406
|
case 2:
|
3539
|
-
|
3407
|
+
stakedLpTokenAccount = _e.sent();
|
3540
3408
|
custodyAccountMetas = [];
|
3541
3409
|
custodyOracleAccountMetas = [];
|
3542
3410
|
markets = [];
|
@@ -3606,14 +3474,14 @@ var PerpetualsClient = (function () {
|
|
3606
3474
|
.accounts({
|
3607
3475
|
owner: publicKey,
|
3608
3476
|
receivingAccount: recieveTokenSymbol == 'SOL' ? wrappedSolAccount.publicKey : userReceivingTokenAccount,
|
3609
|
-
lpTokenAccount:
|
3477
|
+
lpTokenAccount: stakedLpTokenAccount,
|
3610
3478
|
transferAuthority: poolConfig.transferAuthority,
|
3611
3479
|
perpetuals: poolConfig.perpetuals,
|
3612
3480
|
pool: poolConfig.poolAddress,
|
3613
3481
|
custody: recieveTokenCustodyConfig.custodyAccount,
|
3614
3482
|
custodyOracleAccount: this.useExtOracleAccount ? recieveTokenCustodyConfig.extOracleAccount : recieveTokenCustodyConfig.intOracleAccount,
|
3615
3483
|
custodyTokenAccount: recieveTokenCustodyConfig.tokenAccount,
|
3616
|
-
lpTokenMint: poolConfig.
|
3484
|
+
lpTokenMint: poolConfig.stakedLpTokenMint,
|
3617
3485
|
eventAuthority: this.eventAuthority.publicKey,
|
3618
3486
|
tokenProgram: spl_token_1.TOKEN_PROGRAM_ID,
|
3619
3487
|
program: this.programId,
|
@@ -3625,7 +3493,7 @@ var PerpetualsClient = (function () {
|
|
3625
3493
|
removeLiquidityTx = _e.sent();
|
3626
3494
|
instructions.push(removeLiquidityTx);
|
3627
3495
|
if (closeLpATA) {
|
3628
|
-
closeInx = (0, spl_token_1.createCloseAccountInstruction)(
|
3496
|
+
closeInx = (0, spl_token_1.createCloseAccountInstruction)(stakedLpTokenAccount, publicKey, publicKey);
|
3629
3497
|
instructions.push(closeInx);
|
3630
3498
|
}
|
3631
3499
|
if (recieveTokenSymbol == 'WSOL' && closeUsersWSOLATA) {
|
@@ -3858,7 +3726,7 @@ var PerpetualsClient = (function () {
|
|
3858
3726
|
_a.label = 1;
|
3859
3727
|
case 1:
|
3860
3728
|
_a.trys.push([1, 3, , 4]);
|
3861
|
-
lpTokenMint = poolConfig.
|
3729
|
+
lpTokenMint = poolConfig.stakedLpTokenMint;
|
3862
3730
|
stakedLpTokenAccount = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from("staked_lp_token_account"), poolConfig.poolAddress.toBuffer(), lpTokenMint.toBuffer()], this.programId)[0];
|
3863
3731
|
rewardCustodyConfig = poolConfig.custodies.find(function (i) { return i.mintKey.equals(poolConfig.getTokenFromSymbol(rewardSymbol).mintKey); });
|
3864
3732
|
return [4, this.program.methods
|
@@ -3909,7 +3777,7 @@ var PerpetualsClient = (function () {
|
|
3909
3777
|
_a.trys.push([1, 3, , 4]);
|
3910
3778
|
rewardCustodyConfig = poolConfig.custodies.find(function (i) { return i.mintKey.equals(poolConfig.getTokenFromSymbol(rewardSymbol).mintKey); });
|
3911
3779
|
compoundingTokenMint = this.getPoolCompoundingTokenKey(poolConfig.poolName);
|
3912
|
-
compoundingVault = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from("compounding_lp_token_account"), poolConfig.poolAddress.toBuffer(), poolConfig.
|
3780
|
+
compoundingVault = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from("compounding_lp_token_account"), poolConfig.poolAddress.toBuffer(), poolConfig.stakedLpTokenMint.toBuffer()], this.programId)[0];
|
3913
3781
|
metadataAccount = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from("metadata"), constants_1.METAPLEX_PROGRAM_ID.toBuffer(), compoundingTokenMint.toBuffer()], constants_1.METAPLEX_PROGRAM_ID)[0];
|
3914
3782
|
return [4, this.program.methods
|
3915
3783
|
.initCompounding({
|
@@ -3925,7 +3793,7 @@ var PerpetualsClient = (function () {
|
|
3925
3793
|
perpetuals: this.perpetuals.publicKey,
|
3926
3794
|
pool: poolConfig.poolAddress,
|
3927
3795
|
custody: rewardCustodyConfig.custodyAccount,
|
3928
|
-
lpTokenMint: poolConfig.
|
3796
|
+
lpTokenMint: poolConfig.stakedLpTokenMint,
|
3929
3797
|
compoundingVault: compoundingVault,
|
3930
3798
|
compoundingTokenMint: compoundingTokenMint,
|
3931
3799
|
metadataAccount: metadataAccount,
|
@@ -3962,10 +3830,10 @@ var PerpetualsClient = (function () {
|
|
3962
3830
|
_a.label = 1;
|
3963
3831
|
case 1:
|
3964
3832
|
_a.trys.push([1, 4, , 5]);
|
3965
|
-
lpTokenMint = poolConfig.
|
3833
|
+
lpTokenMint = poolConfig.stakedLpTokenMint;
|
3966
3834
|
poolStakedLpVault = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from("staked_lp_token_account"), poolConfig.poolAddress.toBuffer(), lpTokenMint.toBuffer()], this.programId)[0];
|
3967
3835
|
flpStakeAccount = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from("stake"), owner.toBuffer(), poolConfig.poolAddress.toBuffer()], this.programId)[0];
|
3968
|
-
return [4, (0, spl_token_1.getAssociatedTokenAddress)(poolConfig.
|
3836
|
+
return [4, (0, spl_token_1.getAssociatedTokenAddress)(poolConfig.stakedLpTokenMint, owner)];
|
3969
3837
|
case 2:
|
3970
3838
|
userLpTokenAccount = _a.sent();
|
3971
3839
|
return [4, this.program.methods
|
@@ -4091,7 +3959,7 @@ var PerpetualsClient = (function () {
|
|
4091
3959
|
});
|
4092
3960
|
}); };
|
4093
3961
|
this.unstakeInstant = function (rewardSymbol, unstakeAmount, poolConfig) { return __awaiter(_this, void 0, void 0, function () {
|
4094
|
-
var publicKey, preInstructions, instructions, postInstructions, additionalSigners, rewardCustodyMint, rewardCustodyConfig, pool, feeDistributionTokenAccount,
|
3962
|
+
var publicKey, preInstructions, instructions, postInstructions, additionalSigners, rewardCustodyMint, rewardCustodyConfig, pool, feeDistributionTokenAccount, flpStakeAccount, unstakeInstantInstruction, err_14;
|
4095
3963
|
return __generator(this, function (_a) {
|
4096
3964
|
switch (_a.label) {
|
4097
3965
|
case 0:
|
@@ -4107,7 +3975,6 @@ var PerpetualsClient = (function () {
|
|
4107
3975
|
rewardCustodyConfig = poolConfig.custodies.find(function (i) { return i.mintKey.equals(poolConfig.getTokenFromSymbol(rewardSymbol).mintKey); });
|
4108
3976
|
pool = poolConfig.poolAddress;
|
4109
3977
|
feeDistributionTokenAccount = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from("custody_token_account"), pool.toBuffer(), rewardCustodyMint.toBuffer()], this.programId)[0];
|
4110
|
-
lpTokenMint = poolConfig.lpTokenMint;
|
4111
3978
|
flpStakeAccount = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from("stake"), publicKey.toBuffer(), pool.toBuffer()], this.programId)[0];
|
4112
3979
|
return [4, this.program.methods
|
4113
3980
|
.unstakeInstant({
|
@@ -4251,11 +4118,11 @@ var PerpetualsClient = (function () {
|
|
4251
4118
|
_b.label = 1;
|
4252
4119
|
case 1:
|
4253
4120
|
_b.trys.push([1, 6, , 7]);
|
4254
|
-
lpTokenMint = poolConfig.
|
4121
|
+
lpTokenMint = poolConfig.stakedLpTokenMint;
|
4255
4122
|
pool = poolConfig.poolAddress;
|
4256
4123
|
poolStakedLpVault = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from("staked_lp_token_account"), pool.toBuffer(), lpTokenMint.toBuffer()], this.program.programId)[0];
|
4257
4124
|
flpStakeAccount = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from("stake"), publicKey.toBuffer(), pool.toBuffer()], this.program.programId)[0];
|
4258
|
-
return [4, (0, spl_token_1.getAssociatedTokenAddress)(poolConfig.
|
4125
|
+
return [4, (0, spl_token_1.getAssociatedTokenAddress)(poolConfig.stakedLpTokenMint, publicKey)];
|
4259
4126
|
case 2:
|
4260
4127
|
userLpTokenAccount = _b.sent();
|
4261
4128
|
_a = createUserLPTA;
|
@@ -4266,7 +4133,7 @@ var PerpetualsClient = (function () {
|
|
4266
4133
|
_b.label = 4;
|
4267
4134
|
case 4:
|
4268
4135
|
if (_a) {
|
4269
|
-
preInstructions.push((0, spl_token_1.createAssociatedTokenAccountInstruction)(publicKey, userLpTokenAccount, publicKey, poolConfig.
|
4136
|
+
preInstructions.push((0, spl_token_1.createAssociatedTokenAccountInstruction)(publicKey, userLpTokenAccount, publicKey, poolConfig.stakedLpTokenMint));
|
4270
4137
|
}
|
4271
4138
|
return [4, this.program.methods
|
4272
4139
|
.withdrawStake({
|
@@ -5016,9 +4883,9 @@ var PerpetualsClient = (function () {
|
|
5016
4883
|
postInstructions = [];
|
5017
4884
|
rewardCustody = poolConfig.custodies.find(function (i) { return i.mintKey.equals(rewardTokenMint); });
|
5018
4885
|
inCustodyConfig = poolConfig.custodies.find(function (i) { return i.mintKey.equals(poolConfig.getTokenFromSymbol(inTokenSymbol).mintKey); });
|
5019
|
-
lpTokenMint = poolConfig.
|
4886
|
+
lpTokenMint = poolConfig.stakedLpTokenMint;
|
5020
4887
|
compoundingTokenMint = poolConfig.compoundingTokenMint;
|
5021
|
-
return [4, (0, spl_token_1.getAssociatedTokenAddress)(poolConfig.
|
4888
|
+
return [4, (0, spl_token_1.getAssociatedTokenAddress)(poolConfig.stakedLpTokenMint, publicKey)];
|
5022
4889
|
case 1:
|
5023
4890
|
lpTokenAccount = _e.sent();
|
5024
4891
|
return [4, (0, spl_token_1.getAssociatedTokenAddress)(compoundingTokenMint, publicKey)];
|
@@ -5054,7 +4921,7 @@ var PerpetualsClient = (function () {
|
|
5054
4921
|
return [4, (0, utils_1.checkIfAccountExists)(lpTokenAccount, this.provider.connection)];
|
5055
4922
|
case 4:
|
5056
4923
|
if (!(_e.sent())) {
|
5057
|
-
instructions.push((0, spl_token_1.createAssociatedTokenAccountInstruction)(publicKey, lpTokenAccount, publicKey, poolConfig.
|
4924
|
+
instructions.push((0, spl_token_1.createAssociatedTokenAccountInstruction)(publicKey, lpTokenAccount, publicKey, poolConfig.stakedLpTokenMint));
|
5058
4925
|
}
|
5059
4926
|
return [4, (0, utils_1.checkIfAccountExists)(compoundingTokenAccount, this.provider.connection)];
|
5060
4927
|
case 5:
|
@@ -5158,7 +5025,7 @@ var PerpetualsClient = (function () {
|
|
5158
5025
|
additionalSigners = [];
|
5159
5026
|
rewardCustody = poolConfig.custodies.find(function (i) { return i.mintKey.equals(rewardTokenMint); });
|
5160
5027
|
outCustodyConfig = poolConfig.custodies.find(function (i) { return i.mintKey.equals(poolConfig.getTokenFromSymbol(outTokenSymbol).mintKey); });
|
5161
|
-
lpTokenMint = poolConfig.
|
5028
|
+
lpTokenMint = poolConfig.stakedLpTokenMint;
|
5162
5029
|
compoundingTokenMint = poolConfig.compoundingTokenMint;
|
5163
5030
|
if (!(outCustodyConfig.symbol == 'SOL')) return [3, 2];
|
5164
5031
|
wrappedSolAccount = new web3_js_1.Keypair();
|
@@ -5286,7 +5153,7 @@ var PerpetualsClient = (function () {
|
|
5286
5153
|
postInstructions = [];
|
5287
5154
|
additionalSigners = [];
|
5288
5155
|
rewardCustody = poolConfig.custodies.find(function (i) { return i.mintKey.equals(rewardTokenMint); });
|
5289
|
-
lpTokenMint = poolConfig.
|
5156
|
+
lpTokenMint = poolConfig.stakedLpTokenMint;
|
5290
5157
|
compoundingTokenMint = poolConfig.compoundingTokenMint;
|
5291
5158
|
return [4, (0, spl_token_1.getAssociatedTokenAddress)(compoundingTokenMint, publicKey)];
|
5292
5159
|
case 1:
|
@@ -5302,7 +5169,7 @@ var PerpetualsClient = (function () {
|
|
5302
5169
|
preInstructions.push((0, spl_token_1.createAssociatedTokenAccountInstruction)(publicKey, compoudingTokenAccount, publicKey, compoundingTokenMint));
|
5303
5170
|
}
|
5304
5171
|
flpStakeAccount = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from("stake"), publicKey.toBuffer(), poolConfig.poolAddress.toBuffer()], this.programId)[0];
|
5305
|
-
compoundingLpVault = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from("compounding_lp_token_account"), poolConfig.poolAddress.toBuffer(), poolConfig.
|
5172
|
+
compoundingLpVault = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from("compounding_lp_token_account"), poolConfig.poolAddress.toBuffer(), poolConfig.stakedLpTokenMint.toBuffer()], this.programId)[0];
|
5306
5173
|
poolStakedLpVault = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from("staked_lp_token_account"), poolConfig.poolAddress.toBuffer(), lpTokenMint.toBuffer()], this.programId)[0];
|
5307
5174
|
custodyAccountMetas = [];
|
5308
5175
|
custodyOracleAccountMetas = [];
|
@@ -5381,7 +5248,7 @@ var PerpetualsClient = (function () {
|
|
5381
5248
|
instructions = [];
|
5382
5249
|
additionalSigners = [];
|
5383
5250
|
rewardCustody = poolConfig.custodies.find(function (i) { return i.mintKey.equals(poolConfig.getTokenFromSymbol(rewardTokenSymbol).mintKey); });
|
5384
|
-
lpTokenMint = poolConfig.
|
5251
|
+
lpTokenMint = poolConfig.stakedLpTokenMint;
|
5385
5252
|
compoundingTokenMint = poolConfig.compoundingTokenMint;
|
5386
5253
|
compoundingLpVault = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from("compounding_lp_token_account"), poolConfig.poolAddress.toBuffer(), compoundingTokenMint.toBuffer()], constants_1.METAPLEX_PROGRAM_ID)[0];
|
5387
5254
|
custodyAccountMetas = [];
|
package/dist/PoolConfig.d.ts
CHANGED
@@ -49,12 +49,12 @@ export declare class PoolConfig {
|
|
49
49
|
cluster: Cluster;
|
50
50
|
poolName: string;
|
51
51
|
poolAddress: PublicKey;
|
52
|
-
|
52
|
+
stakedLpTokenMint: PublicKey;
|
53
53
|
compoundingTokenMint: PublicKey;
|
54
54
|
stakedLpVault: PublicKey;
|
55
55
|
lpDecimals: number;
|
56
56
|
compoundingLpTokenSymbol: string;
|
57
|
-
|
57
|
+
stakedLpTokenSymbol: string;
|
58
58
|
perpetuals: PublicKey;
|
59
59
|
transferAuthority: PublicKey;
|
60
60
|
multisig: PublicKey;
|
@@ -71,7 +71,7 @@ export declare class PoolConfig {
|
|
71
71
|
tokens: Token[];
|
72
72
|
custodies: CustodyConfig[];
|
73
73
|
markets: MarketConfig[];
|
74
|
-
constructor(programId: PublicKey, perpComposibilityProgramId: PublicKey, fbNftRewardProgramId: PublicKey, cluster: Cluster, poolName: string, poolAddress: PublicKey,
|
74
|
+
constructor(programId: PublicKey, perpComposibilityProgramId: PublicKey, fbNftRewardProgramId: PublicKey, cluster: Cluster, poolName: string, poolAddress: PublicKey, stakedLpTokenMint: PublicKey, compoundingTokenMint: PublicKey, stakedLpVault: PublicKey, lpDecimals: number, compoundingLpTokenSymbol: string, stakedLpTokenSymbol: string, perpetuals: PublicKey, transferAuthority: PublicKey, multisig: PublicKey, addressLookupTableAddresses: PublicKey[], backupOracle: PublicKey, nftCollectionAddress: PublicKey, rewardDistributionProgram: {
|
75
75
|
programId: PublicKey;
|
76
76
|
transferAuthority: PublicKey;
|
77
77
|
rewardVault: PublicKey;
|
package/dist/PoolConfig.js
CHANGED
@@ -19,7 +19,7 @@ var web3_js_1 = require("@solana/web3.js");
|
|
19
19
|
var PoolConfig_json_1 = __importDefault(require("./PoolConfig.json"));
|
20
20
|
var types_1 = require("./types");
|
21
21
|
var PoolConfig = (function () {
|
22
|
-
function PoolConfig(programId, perpComposibilityProgramId, fbNftRewardProgramId, cluster, poolName, poolAddress,
|
22
|
+
function PoolConfig(programId, perpComposibilityProgramId, fbNftRewardProgramId, cluster, poolName, poolAddress, stakedLpTokenMint, compoundingTokenMint, stakedLpVault, lpDecimals, compoundingLpTokenSymbol, stakedLpTokenSymbol, perpetuals, transferAuthority, multisig, addressLookupTableAddresses, backupOracle, nftCollectionAddress, rewardDistributionProgram, tokens, custodies, markets) {
|
23
23
|
var _this = this;
|
24
24
|
this.programId = programId;
|
25
25
|
this.perpComposibilityProgramId = perpComposibilityProgramId;
|
@@ -27,12 +27,12 @@ var PoolConfig = (function () {
|
|
27
27
|
this.cluster = cluster;
|
28
28
|
this.poolName = poolName;
|
29
29
|
this.poolAddress = poolAddress;
|
30
|
-
this.
|
30
|
+
this.stakedLpTokenMint = stakedLpTokenMint;
|
31
31
|
this.compoundingTokenMint = compoundingTokenMint;
|
32
32
|
this.stakedLpVault = stakedLpVault;
|
33
33
|
this.lpDecimals = lpDecimals;
|
34
34
|
this.compoundingLpTokenSymbol = compoundingLpTokenSymbol;
|
35
|
-
this.
|
35
|
+
this.stakedLpTokenSymbol = stakedLpTokenSymbol;
|
36
36
|
this.perpetuals = perpetuals;
|
37
37
|
this.transferAuthority = transferAuthority;
|
38
38
|
this.multisig = multisig;
|
@@ -165,7 +165,7 @@ var PoolConfig = (function () {
|
|
165
165
|
catch (error) {
|
166
166
|
console.log("ERROR: buildPoolconfigFromJson unable to load markets ");
|
167
167
|
}
|
168
|
-
return new PoolConfig(new web3_js_1.PublicKey(poolConfig.programId), new web3_js_1.PublicKey(poolConfig.perpComposibilityProgramId), new web3_js_1.PublicKey(poolConfig.fbNftRewardProgramId), poolConfig.cluster, poolConfig.poolName, new web3_js_1.PublicKey(poolConfig.poolAddress), new web3_js_1.PublicKey(poolConfig.
|
168
|
+
return new PoolConfig(new web3_js_1.PublicKey(poolConfig.programId), new web3_js_1.PublicKey(poolConfig.perpComposibilityProgramId), new web3_js_1.PublicKey(poolConfig.fbNftRewardProgramId), poolConfig.cluster, poolConfig.poolName, new web3_js_1.PublicKey(poolConfig.poolAddress), new web3_js_1.PublicKey(poolConfig.stakedLpTokenMint), new web3_js_1.PublicKey(poolConfig.compoundingTokenMint), new web3_js_1.PublicKey(poolConfig.stakedLpVault), poolConfig.lpDecimals, poolConfig.compoundingLpTokenSymbol, poolConfig.stakedLpTokenSymbol, new web3_js_1.PublicKey(poolConfig.perpetuals), new web3_js_1.PublicKey(poolConfig.transferAuthority), new web3_js_1.PublicKey(poolConfig.multisig), addressLookupTableAddresses, new web3_js_1.PublicKey(poolConfig.backupOracle), new web3_js_1.PublicKey(poolConfig.nftCollectionAddress), {
|
169
169
|
programId: new web3_js_1.PublicKey(poolConfig.rewardDistributionProgram.programId),
|
170
170
|
rewardMint: new web3_js_1.PublicKey(poolConfig.rewardDistributionProgram.rewardMint),
|
171
171
|
rewardTokenAccount: new web3_js_1.PublicKey(poolConfig.rewardDistributionProgram.rewardTokenAccount),
|
package/dist/PoolConfig.json
CHANGED
@@ -13,13 +13,13 @@
|
|
13
13
|
"cluster": "mainnet-beta",
|
14
14
|
"poolName": "Crypto.1",
|
15
15
|
"poolAddress": "HfF7GCcEc76xubFCHLLXRdYcgRzwjEPdfKWqzRS8Ncog",
|
16
|
-
"
|
16
|
+
"stakedLpTokenMint": "9Fzv4s5t2bNwwJoeeywMwypop3JegsuDb1eDbMnPr4TX",
|
17
17
|
"compoundingTokenMint": "9Fzv4s5t2bNwwJoeeywMwypop3JegsuDb1eDbMnPr4TX",
|
18
18
|
"stakedLpVault": "4XUhXBvgyCyU6LdZnutxj8Zc7oXPnTeKeEBwBmne47Bq",
|
19
19
|
"metadataAccount": "H9kfgaiHv8LnQUBWVoM8x69bidG2d16uWPDbMS3JCP5c",
|
20
20
|
"lpDecimals": 6,
|
21
21
|
"compoundingLpTokenSymbol": "FLP.1",
|
22
|
-
"
|
22
|
+
"stakedLpTokenSymbol": "sFLP.1",
|
23
23
|
"perpetuals": "7DWCtB5Z8rPiyBMKUwqyC95R9tJpbhoQhLM9LbK3Z5QZ",
|
24
24
|
"transferAuthority": "81xGAvJ27ZeRThU2JEfKAUeT4Fx6qCCd8WHZpujZbiiG",
|
25
25
|
"multisig": "3FqKnAQrvr6G6AqCAWKdqg9fVe6ceAk3A5Y1ibeQqV2V",
|
@@ -246,13 +246,13 @@
|
|
246
246
|
"cluster": "mainnet-beta",
|
247
247
|
"poolName": "Virtual.1",
|
248
248
|
"poolAddress": "KwhpybQPe9xuZFmAfcjLHj3ukownWex1ratyascAC1X",
|
249
|
-
"
|
249
|
+
"stakedLpTokenMint": "CrdMPbjooMmz6RoVgUnczWoeZka2QF14pikcCTpzRMxz",
|
250
250
|
"compoundingTokenMint": "9Fzv4s5t2bNwwJoeeywMwypop3JegsuDb1eDbMnPr4TX",
|
251
251
|
"stakedLpVault": "So11111111111111111111111111111111111111112",
|
252
252
|
"metadataAccount": "HD5cfUWyMw8J1CaRENKw8zruY9DMJDWni5iejg4onY7G",
|
253
253
|
"lpDecimals": 6,
|
254
254
|
"compoundingLpTokenSymbol": "FLP.2",
|
255
|
-
"
|
255
|
+
"stakedLpTokenSymbol": "sFLP.2",
|
256
256
|
"perpetuals": "7DWCtB5Z8rPiyBMKUwqyC95R9tJpbhoQhLM9LbK3Z5QZ",
|
257
257
|
"transferAuthority": "81xGAvJ27ZeRThU2JEfKAUeT4Fx6qCCd8WHZpujZbiiG",
|
258
258
|
"multisig": "3FqKnAQrvr6G6AqCAWKdqg9fVe6ceAk3A5Y1ibeQqV2V",
|
@@ -574,13 +574,13 @@
|
|
574
574
|
"cluster": "mainnet-beta",
|
575
575
|
"poolName": "Governance.1",
|
576
576
|
"poolAddress": "D6bfytnxoZBSzJM7fcixg5sgWJ2hj8SbwkPvb2r8XpbH",
|
577
|
-
"
|
577
|
+
"stakedLpTokenMint": "6afu2XRPMg8JAhzBsJ9DXsQRCFhkzbC4UaFMZepm6AHb",
|
578
578
|
"compoundingTokenMint": "9Fzv4s5t2bNwwJoeeywMwypop3JegsuDb1eDbMnPr4TX",
|
579
579
|
"stakedLpVault": "EhiSmAktg5AqZfKwV8igfnTqZZsaAdFfZBLGLEmGjyvw",
|
580
580
|
"metadataAccount": "G86ybpQVnnQUBPPPHNT9jERuSPJ9HFEo5PDcSaMQhRMX",
|
581
581
|
"lpDecimals": 6,
|
582
582
|
"compoundingLpTokenSymbol": "FLP.3",
|
583
|
-
"
|
583
|
+
"stakedLpTokenSymbol": "sFLP.3",
|
584
584
|
"perpetuals": "7DWCtB5Z8rPiyBMKUwqyC95R9tJpbhoQhLM9LbK3Z5QZ",
|
585
585
|
"transferAuthority": "81xGAvJ27ZeRThU2JEfKAUeT4Fx6qCCd8WHZpujZbiiG",
|
586
586
|
"multisig": "3FqKnAQrvr6G6AqCAWKdqg9fVe6ceAk3A5Y1ibeQqV2V",
|
@@ -955,13 +955,13 @@
|
|
955
955
|
"cluster": "mainnet-beta",
|
956
956
|
"poolName": "Community.1",
|
957
957
|
"poolAddress": "6HukhSeVVLQekKaGJYkwztBacjhKLKywVPrmcvccaYMz",
|
958
|
-
"
|
958
|
+
"stakedLpTokenMint": "GnxdTsSQNQ3FF72nTyWo4SUt59Tt1MqDkRRfoPtKjMvJ",
|
959
959
|
"compoundingTokenMint": "9Fzv4s5t2bNwwJoeeywMwypop3JegsuDb1eDbMnPr4TX",
|
960
960
|
"stakedLpVault": "BX61fNmuhXtPPRaRTo2bAQFyhnmBqAXWG41PUqQx62yr",
|
961
961
|
"metadataAccount": "8HPm3sNXqFxNkEDYBMwX1BnXxxfn4XY6Jt5b8ikv6m7b",
|
962
962
|
"lpDecimals": 6,
|
963
963
|
"compoundingLpTokenSymbol": "FLP.4",
|
964
|
-
"
|
964
|
+
"stakedLpTokenSymbol": "sFLP.4",
|
965
965
|
"perpetuals": "7DWCtB5Z8rPiyBMKUwqyC95R9tJpbhoQhLM9LbK3Z5QZ",
|
966
966
|
"transferAuthority": "81xGAvJ27ZeRThU2JEfKAUeT4Fx6qCCd8WHZpujZbiiG",
|
967
967
|
"multisig": "3FqKnAQrvr6G6AqCAWKdqg9fVe6ceAk3A5Y1ibeQqV2V",
|
@@ -1071,13 +1071,13 @@
|
|
1071
1071
|
"cluster": "mainnet-beta",
|
1072
1072
|
"poolName": "Community.2",
|
1073
1073
|
"poolAddress": "DP1FnZjWzDjSMQA64BcMzUdpDpyAQ6723d5fpX4yTk5G",
|
1074
|
-
"
|
1074
|
+
"stakedLpTokenMint": "EsdayVbDQYQdy54TQh5iASMTkCzmhxsx6MpCvyrtYaUZ",
|
1075
1075
|
"compoundingTokenMint": "9Fzv4s5t2bNwwJoeeywMwypop3JegsuDb1eDbMnPr4TX",
|
1076
1076
|
"stakedLpVault": "DCW9WsRzhsXQ78MLenwFaRc5BUGBUADXNaNnuzRWoAHd",
|
1077
1077
|
"metadataAccount": "BR4ZZ8wkomYSbiap9jDfTPCBT348eciPWBnLHUXKu5rL",
|
1078
1078
|
"lpDecimals": 6,
|
1079
1079
|
"compoundingLpTokenSymbol": "FLP.5",
|
1080
|
-
"
|
1080
|
+
"stakedLpTokenSymbol": "sFLP.5",
|
1081
1081
|
"perpetuals": "7DWCtB5Z8rPiyBMKUwqyC95R9tJpbhoQhLM9LbK3Z5QZ",
|
1082
1082
|
"transferAuthority": "81xGAvJ27ZeRThU2JEfKAUeT4Fx6qCCd8WHZpujZbiiG",
|
1083
1083
|
"multisig": "3FqKnAQrvr6G6AqCAWKdqg9fVe6ceAk3A5Y1ibeQqV2V",
|
@@ -1187,13 +1187,13 @@
|
|
1187
1187
|
"cluster": "devnet",
|
1188
1188
|
"poolName": "devnet.1",
|
1189
1189
|
"poolAddress": "7jA4ZSGwaBxXk5EmPKDCSc5RtZNHxyoxy22iQt3D2mH9",
|
1190
|
-
"
|
1190
|
+
"stakedLpTokenMint": "H4h7nsZaz53KZHMdSXc5byBjcbymEFYX6an8UVbh51yU",
|
1191
1191
|
"compoundingTokenMint": "AJPPBo7PqA1uLoVLVRX4UPdzVsb4S2Qvw8V1XiyCTiLA",
|
1192
1192
|
"stakedLpVault": "5saGiRTc9iszokguCfPs7vtgmhsCpqYLfbRgemvsxM4T",
|
1193
1193
|
"metadataAccount": "7NvA4CEqr9Tei1MDDKrbYFKV5D39fkPPEfRv5Z5ZXZEb",
|
1194
1194
|
"lpDecimals": 6,
|
1195
1195
|
"compoundingLpTokenSymbol": "FLP.1",
|
1196
|
-
"
|
1196
|
+
"stakedLpTokenSymbol": "sFLP.1",
|
1197
1197
|
"perpetuals": "445GcRLAJ64DcxSRbvQTkbwXgWUyubAxzQUQ2wL73KLS",
|
1198
1198
|
"transferAuthority": "EPyHAAHUYnFATwd8CJ7owLnozFeS8pFsr3RNJD1eueYq",
|
1199
1199
|
"multisig": "Eu3cBFRo18AeN9BFb5ndzk2PEmBT7yWEhh3VkG21pyGo",
|
@@ -1420,13 +1420,13 @@
|
|
1420
1420
|
"cluster": "devnet",
|
1421
1421
|
"poolName": "devnet.2",
|
1422
1422
|
"poolAddress": "5MCtcNsF3dxna8ArzMamyciWDV3TBkiAzY1NqLtNiXvw",
|
1423
|
-
"
|
1423
|
+
"stakedLpTokenMint": "CEBnqSukYQjcRiKiZKmkbJSDYojtc4GdSipKJ5bSYvHd",
|
1424
1424
|
"compoundingTokenMint": "C6UBsabfTL8dCygt53jf4gf6KdwPBRKXihquJyy6RJUe",
|
1425
1425
|
"stakedLpVault": "CEBnqSukYQjcRiKiZKmkbJSDYojtc4GdSipKJ5bSYvHd",
|
1426
1426
|
"metadataAccount": "CeUy9d6CGyj4mL3JVhYKK2A462yjpb4FGyWUyA7zDoWi",
|
1427
1427
|
"lpDecimals": 6,
|
1428
1428
|
"compoundingLpTokenSymbol": "FLP.2",
|
1429
|
-
"
|
1429
|
+
"stakedLpTokenSymbol": "sFLP.2",
|
1430
1430
|
"perpetuals": "445GcRLAJ64DcxSRbvQTkbwXgWUyubAxzQUQ2wL73KLS",
|
1431
1431
|
"transferAuthority": "EPyHAAHUYnFATwd8CJ7owLnozFeS8pFsr3RNJD1eueYq",
|
1432
1432
|
"multisig": "Eu3cBFRo18AeN9BFb5ndzk2PEmBT7yWEhh3VkG21pyGo",
|
@@ -1748,13 +1748,13 @@
|
|
1748
1748
|
"cluster": "devnet",
|
1749
1749
|
"poolName": "devnet.3",
|
1750
1750
|
"poolAddress": "FpRXePeSYyPZrBKrCSvLNSQGYT6gkgZXGDCBWVVRkNRT",
|
1751
|
-
"
|
1751
|
+
"stakedLpTokenMint": "BAh7XbUKRFYtt5a9FjJqeyUqqrx3SZqayiPosYiZFneJ",
|
1752
1752
|
"compoundingTokenMint": "CU1z35oJ56ZFq1jgsaKPzbWT72BPKQ2UBDP35Lm1uo9C",
|
1753
1753
|
"stakedLpVault": "5HYrb2rKjF2b2ye5EiZAYeBYNeNEUzCct3N2rBmVjzLu",
|
1754
1754
|
"metadataAccount": "Hm6oanS5hrcu3QMC4jumKq2U5aUaJrfasE1sQ2Lct3zF",
|
1755
1755
|
"lpDecimals": 6,
|
1756
1756
|
"compoundingLpTokenSymbol": "FLP.3",
|
1757
|
-
"
|
1757
|
+
"stakedLpTokenSymbol": "sFLP.3",
|
1758
1758
|
"perpetuals": "445GcRLAJ64DcxSRbvQTkbwXgWUyubAxzQUQ2wL73KLS",
|
1759
1759
|
"transferAuthority": "EPyHAAHUYnFATwd8CJ7owLnozFeS8pFsr3RNJD1eueYq",
|
1760
1760
|
"multisig": "Eu3cBFRo18AeN9BFb5ndzk2PEmBT7yWEhh3VkG21pyGo",
|
@@ -2129,13 +2129,13 @@
|
|
2129
2129
|
"cluster": "devnet",
|
2130
2130
|
"poolName": "devnet.4",
|
2131
2131
|
"poolAddress": "2SLfjsonPtdBugZke3UJzQ8s7DcHQHJxqUuVN1wrthnc",
|
2132
|
-
"
|
2132
|
+
"stakedLpTokenMint": "58YkJCFQZ3htRUtkHMdUZNfdpEcjGTFi1jx3DceZvd6N",
|
2133
2133
|
"compoundingTokenMint": "82Jj9HJbrz4w2ZeFaGpco76sR6BmQLYYgoSkAeyHqAgj",
|
2134
2134
|
"stakedLpVault": "5HYrb2rKjF2b2ye5EiZAYeBYNeNEUzCct3N2rBmVjzLu",
|
2135
2135
|
"metadataAccount": "Hm6oanS5hrcu3QMC4jumKq2U5aUaJrfasE1sQ2Lct3zF",
|
2136
2136
|
"lpDecimals": 6,
|
2137
2137
|
"compoundingLpTokenSymbol": "FLP.4",
|
2138
|
-
"
|
2138
|
+
"stakedLpTokenSymbol": "sFLP.4",
|
2139
2139
|
"perpetuals": "445GcRLAJ64DcxSRbvQTkbwXgWUyubAxzQUQ2wL73KLS",
|
2140
2140
|
"transferAuthority": "EPyHAAHUYnFATwd8CJ7owLnozFeS8pFsr3RNJD1eueYq",
|
2141
2141
|
"multisig": "Eu3cBFRo18AeN9BFb5ndzk2PEmBT7yWEhh3VkG21pyGo",
|
@@ -2245,13 +2245,13 @@
|
|
2245
2245
|
"cluster": "devnet",
|
2246
2246
|
"poolName": "devnet.5",
|
2247
2247
|
"poolAddress": "74MmsAH8H4S95KbBgWA4XP4vHcxe7jxEopjUkMabQUa",
|
2248
|
-
"
|
2248
|
+
"stakedLpTokenMint": "FBZ3eWtCmwkEnEMQ1t7dStRV5Xb5B41xfwWNsBmSUxFT",
|
2249
2249
|
"compoundingTokenMint": "A2aKhBQiNTTZmXrR1bUoRwMCGuDtaQ8Hi8uesozqoc3x",
|
2250
2250
|
"stakedLpVault": "11111111111111111111111111111111",
|
2251
2251
|
"metadataAccount": "5J42aH92z42HaUzSHoaA4iCCBE1iUsVt2u5oaYdN5yPx",
|
2252
2252
|
"lpDecimals": 6,
|
2253
2253
|
"compoundingLpTokenSymbol": "FLP.5",
|
2254
|
-
"
|
2254
|
+
"stakedLpTokenSymbol": "sFLP.5",
|
2255
2255
|
"perpetuals": "445GcRLAJ64DcxSRbvQTkbwXgWUyubAxzQUQ2wL73KLS",
|
2256
2256
|
"transferAuthority": "EPyHAAHUYnFATwd8CJ7owLnozFeS8pFsr3RNJD1eueYq",
|
2257
2257
|
"multisig": "Eu3cBFRo18AeN9BFb5ndzk2PEmBT7yWEhh3VkG21pyGo",
|