@elmntl/jlpd-sdk 0.13.4 → 0.13.5

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.
@@ -52,10 +52,6 @@ export interface CreateHedgeRepayIxArgs extends HedgeOpAccounts {
52
52
  /** Debt-mint-native amount REQUESTED to repay — must satisfy the on-chain acceptance predicate
53
53
  * (no clamping), or the repay-all sentinel. */
54
54
  amount: bigint | BN;
55
- /** The position's canonical Fluid Tick — `deriveFluidTickPda(vaultId, position.tick)` /
56
- * `settleTickPdaForPosition(position)` from a fresh position read. The program validates it
57
- * and rejects a liquidation-stale position outright. */
58
- fluidTick: PublicKey;
59
55
  }
60
56
  /** Build the on-chain `hedge_repay` instruction. */
61
57
  export declare function createHedgeRepayIx(args: CreateHedgeRepayIxArgs, programId?: PublicKey): TransactionInstruction;
@@ -67,11 +67,7 @@ function createHedgeBorrowIx(args, programId = constants_1.PROGRAM_ID) {
67
67
  /** Build the on-chain `hedge_repay` instruction. */
68
68
  function createHedgeRepayIx(args, programId = constants_1.PROGRAM_ID) {
69
69
  const data = serializeSlotIndexAmountParams(constants_1.IX_HEDGE_REPAY, args.slotIndex, args.amount);
70
- const keys = buildHedgeOpKeys(args);
71
- // The Accounts struct inserts fluid_tick between vault_state (index 11) and
72
- // jup_lend_borrow_program — mirror it exactly.
73
- keys.splice(12, 0, { pubkey: args.fluidTick, isSigner: false, isWritable: false });
74
- return new web3_js_1.TransactionInstruction({ keys, programId, data });
70
+ return new web3_js_1.TransactionInstruction({ keys: buildHedgeOpKeys(args), programId, data });
75
71
  }
76
72
  /** Build the on-chain `hedge_withdraw_collateral` instruction. */
77
73
  function createHedgeWithdrawCollateralIx(args, programId = constants_1.PROGRAM_ID) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elmntl/jlpd-sdk",
3
- "version": "0.13.4",
3
+ "version": "0.13.5",
4
4
  "description": "SDK for JLP.D (JLP Deconstructed) by Elemental \u2014 p-stv-core, jlpd-strategy, and elemental-lend clients",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [