@liquid-af/sdk 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,7 +15,6 @@ import {
15
15
  type LiquidConfig,
16
16
  } from "../config.js";
17
17
  import {
18
- getBondingCurvePDA,
19
18
  getBuybackVaultPDA,
20
19
  getStableBondingCurvePDA,
21
20
  } from "../pda/liquid.js";
@@ -462,7 +461,6 @@ export function buildMigrateNative(
462
461
  const program = getCachedLiquidProgram(config);
463
462
 
464
463
  // Derive AMM PDAs
465
- const [bondingCurve] = getBondingCurvePDA(mint, config.liquidProgramId);
466
464
  const [ammPoolState] = getPoolPDA(
467
465
  mint,
468
466
  WSOL_MINT,
@@ -491,12 +489,6 @@ export function buildMigrateNative(
491
489
  );
492
490
  const [ammAuthority] = getSwapAuthorityPDA(config.liquidSwapProgramId);
493
491
  const [tokenVolume] = getTokenVolumePDA(mint, config.liquidStateProgramId);
494
- const bondingCurveLpToken = getAssociatedTokenAddressSync(
495
- ammLpMint,
496
- bondingCurve,
497
- true,
498
- TOKEN_PROGRAM_ID,
499
- );
500
492
  const [ammBuybackVault] = getSwapBuybackVaultPDA(
501
493
  ammPoolState,
502
494
  WSOL_MINT,
@@ -514,7 +506,6 @@ export function buildMigrateNative(
514
506
  ammObservationState,
515
507
  ammGlobalConfig,
516
508
  ammAuthority,
517
- bondingCurveLpToken,
518
509
  tokenVolume,
519
510
  ammBuybackVault,
520
511
  })
@@ -1183,10 +1174,6 @@ export function buildMigrateStable(
1183
1174
  const program = getCachedLiquidProgram(config);
1184
1175
 
1185
1176
  // Derive AMM PDAs
1186
- const [bondingCurve] = getStableBondingCurvePDA(
1187
- mint,
1188
- config.liquidProgramId,
1189
- );
1190
1177
  const [ammPoolState] = getPoolPDA(
1191
1178
  mint,
1192
1179
  quoteMint,
@@ -1215,12 +1202,6 @@ export function buildMigrateStable(
1215
1202
  );
1216
1203
  const [ammAuthority] = getSwapAuthorityPDA(config.liquidSwapProgramId);
1217
1204
  const [tokenVolume] = getTokenVolumePDA(mint, config.liquidStateProgramId);
1218
- const bondingCurveLpToken = getAssociatedTokenAddressSync(
1219
- ammLpMint,
1220
- bondingCurve,
1221
- true,
1222
- TOKEN_PROGRAM_ID,
1223
- );
1224
1205
  const [ammBuybackVault] = getSwapBuybackVaultPDA(
1225
1206
  ammPoolState,
1226
1207
  quoteMint,
@@ -1240,7 +1221,6 @@ export function buildMigrateStable(
1240
1221
  ammObservationState,
1241
1222
  ammGlobalConfig,
1242
1223
  ammAuthority,
1243
- bondingCurveLpToken,
1244
1224
  tokenVolume,
1245
1225
  ammBuybackVault,
1246
1226
  })