@0dotxyz/p0-ts-sdk 2.2.0-alpha.2 → 2.2.0-alpha.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
@@ -43339,6 +43339,7 @@ var SinglePoolInstruction = {
43339
43339
  },
43340
43340
  depositStake: async (pool, userStakeAccount, userTokenAccount, userLamportAccount) => {
43341
43341
  const stake = findPoolStakeAddress(pool);
43342
+ const onRamp = findPoolOnRampAddress(pool);
43342
43343
  const mint = findPoolMintAddress(pool);
43343
43344
  const stakeAuthority = findPoolStakeAuthorityAddress(pool);
43344
43345
  const mintAuthority = findPoolMintAuthorityAddress(pool);
@@ -43347,6 +43348,7 @@ var SinglePoolInstruction = {
43347
43348
  [
43348
43349
  { pubkey: pool, isSigner: false, isWritable: false },
43349
43350
  { pubkey: stake, isSigner: false, isWritable: true },
43351
+ { pubkey: onRamp, isSigner: false, isWritable: false },
43350
43352
  { pubkey: mint, isSigner: false, isWritable: true },
43351
43353
  { pubkey: stakeAuthority, isSigner: false, isWritable: false },
43352
43354
  { pubkey: mintAuthority, isSigner: false, isWritable: false },
@@ -43363,6 +43365,7 @@ var SinglePoolInstruction = {
43363
43365
  },
43364
43366
  withdrawStake: async (pool, userStakeAccount, userStakeAuthority, userTokenAccount, tokenAmount) => {
43365
43367
  const stake = findPoolStakeAddress(pool);
43368
+ const onRamp = findPoolOnRampAddress(pool);
43366
43369
  const mint = findPoolMintAddress(pool);
43367
43370
  const stakeAuthority = findPoolStakeAuthorityAddress(pool);
43368
43371
  const mintAuthority = findPoolMintAuthorityAddress(pool);
@@ -43377,6 +43380,7 @@ var SinglePoolInstruction = {
43377
43380
  [
43378
43381
  { pubkey: pool, isSigner: false, isWritable: false },
43379
43382
  { pubkey: stake, isSigner: false, isWritable: true },
43383
+ { pubkey: onRamp, isSigner: false, isWritable: false },
43380
43384
  { pubkey: mint, isSigner: false, isWritable: true },
43381
43385
  { pubkey: stakeAuthority, isSigner: false, isWritable: false },
43382
43386
  { pubkey: mintAuthority, isSigner: false, isWritable: false },
@@ -45940,10 +45944,11 @@ async function makeBorrowIx3({
45940
45944
  );
45941
45945
  borrowIxs.push(createAtaIdempotentIx);
45942
45946
  }
45947
+ const mandatoryBanks = [bank.address, ...opts.additionalHealthCheckBanks ?? []];
45943
45948
  const healthAccounts = computeHealthCheckAccounts(
45944
45949
  marginfiAccount.balances,
45945
45950
  bankMap,
45946
- [bank.address],
45951
+ mandatoryBanks,
45947
45952
  []
45948
45953
  );
45949
45954
  const remainingAccounts = [];