@perena/vault-sdk 1.0.29 → 1.0.30

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/README.md CHANGED
@@ -411,7 +411,7 @@ The builder auto-detects external liquidity slot 0 and, when it finds an active
411
411
  Marginfi position for the asset, emits `execute_withdraw_from_external` instead
412
412
  of `execute_withdraw`. That route can pull from the vault's external position in
413
413
  the same transaction, so it draws on far more liquidity than the plain
414
- `execute_withdraw`: the external-liquidity integrity service keeps only ~1% of
414
+ `execute_withdraw`: the external-liquidity integrity service keeps only ~0.5% of
415
415
  each holding in the vault's own token account (see
416
416
  `DEFAULT_TARGET_LOCAL_BPS`) and deploys the rest into Marginfi, so a plain
417
417
  withdrawal is capped at that small local buffer and will fail for anything
package/dist/index.d.ts CHANGED
@@ -16810,11 +16810,15 @@ interface ExternalLiquidityIntegrityOptions {
16810
16810
  rebalanceBandBps?: number;
16811
16811
  }
16812
16812
  declare const DEFAULT_MIN_AMOUNT_UI = 1;
16813
- /** Keep 1% of each holding local; the remaining 99% earns yield in Marginfi. */
16814
- declare const DEFAULT_TARGET_LOCAL_BPS = 100;
16813
+ /**
16814
+ * Keep 0.5% of each holding local; the remaining 99.5% earns yield in Marginfi.
16815
+ * Anything larger than this buffer is served by `execute_withdraw_from_external`,
16816
+ * which unwinds the Marginfi position in the same transaction.
16817
+ */
16818
+ declare const DEFAULT_TARGET_LOCAL_BPS = 50;
16815
16819
  /**
16816
16820
  * Rebalance only once the local balance has drifted more than 20% away from its
16817
- * target — i.e. outside 0.8%–1.2% of the holding at the default 1% target.
16821
+ * target — i.e. outside 0.4%–0.6% of the holding at the default 0.5% target.
16818
16822
  * Without this band every arriving deposit or payout would trigger its own
16819
16823
  * transaction; with it, each rebalance restores the exact target, so the next
16820
16824
  * one is a full band away rather than one dust movement later.
package/dist/index.js CHANGED
@@ -23670,7 +23670,7 @@ var import_web328 = require("@solana/web3.js");
23670
23670
  var import_common50 = __toESM(require_dist());
23671
23671
  var import_marginfi3 = __toESM(require_dist2());
23672
23672
  var DEFAULT_MIN_AMOUNT_UI = 1;
23673
- var DEFAULT_TARGET_LOCAL_BPS = 100;
23673
+ var DEFAULT_TARGET_LOCAL_BPS = 50;
23674
23674
  var DEFAULT_REBALANCE_BAND_BPS = 2e3;
23675
23675
  var BPS_DENOMINATOR3 = 10000n;
23676
23676
  function toRawAmount(uiAmount, decimals) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perena/vault-sdk",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "Vault program helpers for Bankineco integrations.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",