@naviprotocol/lending 1.3.4-dev.4 → 1.3.4-dev.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.
package/dist/index.esm.js CHANGED
@@ -129,7 +129,7 @@ const R = i.bytes(32).transform({
129
129
  borrow_balance: i.u256(),
130
130
  /** User's current supply balance */
131
131
  supply_balance: i.u256()
132
- }), ee = "1.3.4-dev.4", U = {
132
+ }), ee = "1.3.4-dev.5", U = {
133
133
  version: ee
134
134
  }, te = U.version, re = () => {
135
135
  if (typeof process != "undefined" && process.versions && process.versions.node)
@@ -476,39 +476,47 @@ async function ke(e, r, c, t) {
476
476
  c = e.splitCoins(c, [t.amount]);
477
477
  }
478
478
  let s;
479
- return typeof (t == null ? void 0 : t.amount) != "undefined" ? s = d(t.amount, e.pure.u64) : s = e.moveCall({
479
+ if (typeof (t == null ? void 0 : t.amount) != "undefined" ? s = d(t.amount, e.pure.u64) : s = e.moveCall({
480
480
  target: "0x2::coin::value",
481
481
  arguments: [d(c, e.object)],
482
482
  typeArguments: [n.suiCoinType]
483
- }), t != null && t.accountCap ? e.moveCall({
484
- target: `${a.package}::incentive_v3::repay_with_account_cap`,
485
- arguments: [
486
- e.object("0x06"),
487
- e.object(a.priceOracle),
488
- e.object(a.storage),
489
- e.object(n.contract.pool),
490
- e.pure.u8(n.id),
491
- d(c, e.object),
492
- e.object(a.incentiveV2),
493
- e.object(a.incentiveV3),
494
- d(t.accountCap, e.object)
495
- ],
496
- typeArguments: [n.suiCoinType]
497
- }) : (e.moveCall({
498
- target: `${a.package}::incentive_v3::entry_repay`,
499
- arguments: [
500
- e.object("0x06"),
501
- e.object(a.priceOracle),
502
- e.object(a.storage),
503
- e.object(n.contract.pool),
504
- e.pure.u8(n.id),
505
- d(c, e.object),
506
- s,
507
- e.object(a.incentiveV2),
508
- e.object(a.incentiveV3)
509
- ],
510
- typeArguments: [n.suiCoinType]
511
- }), e);
483
+ }), t != null && t.accountCap) {
484
+ const [u] = e.moveCall({
485
+ target: `${a.package}::incentive_v3::repay_with_account_cap`,
486
+ arguments: [
487
+ e.object("0x06"),
488
+ e.object(a.priceOracle),
489
+ e.object(a.storage),
490
+ e.object(n.contract.pool),
491
+ e.pure.u8(n.id),
492
+ d(c, e.object),
493
+ e.object(a.incentiveV2),
494
+ e.object(a.incentiveV3),
495
+ d(t.accountCap, e.object)
496
+ ],
497
+ typeArguments: [n.suiCoinType]
498
+ });
499
+ return e.moveCall({
500
+ target: "0x2::coin::from_balance",
501
+ arguments: [u],
502
+ typeArguments: [n.suiCoinType]
503
+ });
504
+ } else
505
+ return e.moveCall({
506
+ target: `${a.package}::incentive_v3::entry_repay`,
507
+ arguments: [
508
+ e.object("0x06"),
509
+ e.object(a.priceOracle),
510
+ e.object(a.storage),
511
+ e.object(n.contract.pool),
512
+ e.pure.u8(n.id),
513
+ d(c, e.object),
514
+ s,
515
+ e.object(a.incentiveV2),
516
+ e.object(a.incentiveV3)
517
+ ],
518
+ typeArguments: [n.suiCoinType]
519
+ }), e;
512
520
  }
513
521
  const Be = $(
514
522
  j(