@0dotxyz/p0-ts-sdk 1.1.0-alpha.11 → 1.1.0-alpha.12
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 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18402,6 +18402,8 @@ function computeProjectedActiveBanksNoCpi(balances, instructions2, program) {
|
|
|
18402
18402
|
switch (decoded.name) {
|
|
18403
18403
|
case "lendingAccountBorrow":
|
|
18404
18404
|
case "kaminoDeposit":
|
|
18405
|
+
case "driftDeposit":
|
|
18406
|
+
case "solendDeposit":
|
|
18405
18407
|
case "lendingAccountDeposit": {
|
|
18406
18408
|
const targetBank = new PublicKey(ix?.keys[3].pubkey);
|
|
18407
18409
|
const targetBalance = projectedBalances.find((b) => b.bankPk.equals(targetBank));
|
|
@@ -18417,6 +18419,8 @@ function computeProjectedActiveBanksNoCpi(balances, instructions2, program) {
|
|
|
18417
18419
|
}
|
|
18418
18420
|
case "lendingAccountRepay":
|
|
18419
18421
|
case "kaminoWithdraw":
|
|
18422
|
+
case "driftWithdraw":
|
|
18423
|
+
case "solendWithdraw":
|
|
18420
18424
|
case "lendingAccountWithdraw": {
|
|
18421
18425
|
const targetBank = new PublicKey(ix.keys[3].pubkey);
|
|
18422
18426
|
const targetBalance = projectedBalances.find((b) => b.bankPk.equals(targetBank));
|
|
@@ -18459,6 +18463,8 @@ function computeProjectedActiveBalancesNoCpi(balances, instructions2, program, b
|
|
|
18459
18463
|
switch (decoded.name) {
|
|
18460
18464
|
// Instructions that open or add to a position
|
|
18461
18465
|
case "lendingAccountDeposit":
|
|
18466
|
+
case "driftDeposit":
|
|
18467
|
+
case "solendDeposit":
|
|
18462
18468
|
case "kaminoDeposit": {
|
|
18463
18469
|
const targetBank = new PublicKey(ix.keys[3].pubkey);
|
|
18464
18470
|
impactedAssetsBanks.add(targetBank.toBase58());
|
|
@@ -18542,6 +18548,8 @@ function computeProjectedActiveBalancesNoCpi(balances, instructions2, program, b
|
|
|
18542
18548
|
break;
|
|
18543
18549
|
}
|
|
18544
18550
|
case "lendingAccountWithdraw":
|
|
18551
|
+
case "driftWithdraw":
|
|
18552
|
+
case "solendWithdraw":
|
|
18545
18553
|
case "kaminoWithdraw": {
|
|
18546
18554
|
const targetBank = new PublicKey(ix.keys[3].pubkey);
|
|
18547
18555
|
impactedAssetsBanks.add(targetBank.toBase58());
|