@0dotxyz/p0-ts-sdk 2.1.2 → 2.1.3

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.
package/dist/index.cjs CHANGED
@@ -43825,7 +43825,7 @@ var SEED_RESERVE = "reserve";
43825
43825
  var SEED_RATE_MODEL = "rate_model";
43826
43826
  var SEED_USER_SUPPLY_POSITION = "user_supply_position";
43827
43827
  var SEED_LENDING_REWARDS_RATE_MODEL = "lending_rewards_rate_model";
43828
- function getAllDerivedJupLendAccounts(mint) {
43828
+ function getAllDerivedJupLendAccounts(mint, tokenProgram) {
43829
43829
  const [fTokenMint] = deriveJupLendFTokenMint(mint);
43830
43830
  const [lending] = deriveJupLendLending(mint, fTokenMint);
43831
43831
  const [liquidity] = deriveJupLendLiquidity();
@@ -43835,7 +43835,7 @@ function getAllDerivedJupLendAccounts(mint) {
43835
43835
  supplyTokenReservesLiquidity: deriveJupLendTokenReserve(mint)[0],
43836
43836
  lendingSupplyPositionOnLiquidity: deriveJupLendLiquiditySupplyPositionPda(mint, lending)[0],
43837
43837
  rateModel: deriveJupLendRateModel(mint)[0],
43838
- vault: deriveJupLendLiquidityVaultAta(mint, liquidity),
43838
+ vault: deriveJupLendLiquidityVaultAta(mint, liquidity, tokenProgram),
43839
43839
  liquidity,
43840
43840
  rewardsRateModel: deriveJupLendLendingRewardsRateModel(mint)[0]
43841
43841
  };
@@ -45575,7 +45575,7 @@ async function makeJuplendWithdrawIx2({
45575
45575
  lendingAdmin,
45576
45576
  rateModel,
45577
45577
  vault,
45578
- liquidity} = getAllDerivedJupLendAccounts(bank.mint);
45578
+ liquidity} = getAllDerivedJupLendAccounts(bank.mint, tokenProgram);
45579
45579
  if (opts.observationBanksOverride) {
45580
45580
  remainingAccounts.push(...opts.observationBanksOverride);
45581
45581
  } else {
@@ -46198,7 +46198,7 @@ async function makeJuplendDepositIx2({
46198
46198
  if (!bank.jupLendIntegrationAccounts) {
46199
46199
  throw new Error("Bank has no JupLend integration accounts");
46200
46200
  }
46201
- const derivedAccounts = getAllDerivedJupLendAccounts(bank.mint);
46201
+ const derivedAccounts = getAllDerivedJupLendAccounts(bank.mint, tokenProgram);
46202
46202
  const {
46203
46203
  fTokenMint,
46204
46204
  lendingAdmin,