@0dotxyz/p0-ts-sdk 2.5.5-alpha.1 → 2.5.5-alpha.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.
package/dist/index.cjs CHANGED
@@ -70410,8 +70410,15 @@ async function makeTransferPositionsTx(params) {
70410
70410
  )
70411
70411
  );
70412
70412
  }
70413
+ const destinationOnlyBalances = accountB.balances.filter(
70414
+ (b) => b.active && !accountA.balances.some((a) => a.active && a.bankPk.equals(b.bankPk))
70415
+ );
70416
+ const crankBalanceView = {
70417
+ ...accountA,
70418
+ balances: [...accountA.balances, ...destinationOnlyBalances]
70419
+ };
70413
70420
  const { instructions: updateFeedIxs, luts: feedLuts } = await makeSmartCrankSwbFeedIx({
70414
- marginfiAccount: accountA,
70421
+ marginfiAccount: crankBalanceView,
70415
70422
  bankMap,
70416
70423
  oraclePrices,
70417
70424
  assetShareValueMultiplierByBank,