@wireio/stake 2.4.0 → 2.4.2

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.
@@ -15706,7 +15706,7 @@ async function buildOutpostAccounts(connection, user, pgs) {
15706
15706
  const liqsolPoolUserRecord = pgs.deriveUserRecordPda(liqsolPoolAta);
15707
15707
  const userUserRecord = pgs.deriveUserRecordPda(userAta);
15708
15708
  const extraAccountMetaList = pgs.deriveExtraAccountMetaListPda(liqsolMint);
15709
- const pretokenPurchaseHistory = pgs.derivePretokenPurchaseHistoryPda();
15709
+ const pretokenPurchaseHistory = pgs.derivePretokenPurchaseHistoryPda(poolAuthority);
15710
15710
  let chainLinkFeed = CHAINLINK_FEED;
15711
15711
  let chainLinkProgram = CHAINLINK_PROGRAM;
15712
15712
  try {
@@ -16767,9 +16767,9 @@ class SolanaProgramService {
16767
16767
  this.ids.LIQSOL_CORE
16768
16768
  )[0];
16769
16769
  }
16770
- derivePretokenPurchaseHistoryPda() {
16770
+ derivePretokenPurchaseHistoryPda(poolAuthority) {
16771
16771
  return PublicKey.findProgramAddressSync(
16772
- [Buffer.from(PDA_SEEDS.PRETOKEN_PURCHASE_HISTORY)],
16772
+ [Buffer.from(PDA_SEEDS.PRETOKEN_PURCHASE_HISTORY), poolAuthority.toBuffer()],
16773
16773
  this.ids.LIQSOL_CORE
16774
16774
  )[0];
16775
16775
  }
@@ -16988,9 +16988,9 @@ const _SolanaStakingClient = class _SolanaStakingClient {
16988
16988
  throw err;
16989
16989
  }
16990
16990
  }
16991
- async getPendingWithdraws() {
16991
+ async getPendingWithdraws(address) {
16992
16992
  this.ensureUser();
16993
- const owner = this.squadsVaultPDA ?? this.anchor.wallet.publicKey;
16993
+ const owner = address ?? this.squadsVaultPDA ?? this.anchor.wallet.publicKey;
16994
16994
  return await this.convertClient.fetchWithdrawReceipts(owner);
16995
16995
  }
16996
16996
  async claimWithdraw(tokenId) {