@naviprotocol/lending 1.3.4-dev.3 → 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.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +39 -31
- package/dist/index.esm.js.map +1 -1
- package/dist/pool.d.ts +2 -2
- package/dist/pool.d.ts.map +1 -1
- package/package.json +1 -1
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.
|
|
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
|
-
|
|
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
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
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(
|