@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 +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -70382,8 +70382,15 @@ async function makeTransferPositionsTx(params) {
|
|
|
70382
70382
|
)
|
|
70383
70383
|
);
|
|
70384
70384
|
}
|
|
70385
|
+
const destinationOnlyBalances = accountB.balances.filter(
|
|
70386
|
+
(b) => b.active && !accountA.balances.some((a) => a.active && a.bankPk.equals(b.bankPk))
|
|
70387
|
+
);
|
|
70388
|
+
const crankBalanceView = {
|
|
70389
|
+
...accountA,
|
|
70390
|
+
balances: [...accountA.balances, ...destinationOnlyBalances]
|
|
70391
|
+
};
|
|
70385
70392
|
const { instructions: updateFeedIxs, luts: feedLuts } = await makeSmartCrankSwbFeedIx({
|
|
70386
|
-
marginfiAccount:
|
|
70393
|
+
marginfiAccount: crankBalanceView,
|
|
70387
70394
|
bankMap,
|
|
70388
70395
|
oraclePrices,
|
|
70389
70396
|
assetShareValueMultiplierByBank,
|