@naviprotocol/lending 1.4.0-emode.14 → 1.4.0-emode.16
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/account.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/market.d.ts.map +1 -1
- package/dist/pool.d.ts.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -129,7 +129,7 @@ const W = p.bytes(32).transform({
|
|
|
129
129
|
borrow_balance: p.u256(),
|
|
130
130
|
/** User's current supply balance */
|
|
131
131
|
supply_balance: p.u256()
|
|
132
|
-
}), me = "1.4.0-emode.
|
|
132
|
+
}), me = "1.4.0-emode.16", S = {
|
|
133
133
|
version: me
|
|
134
134
|
}, ge = S.version, ye = () => {
|
|
135
135
|
if (typeof process < "u" && process.versions && process.versions.node)
|
|
@@ -725,7 +725,7 @@ async function je(e, n, o) {
|
|
|
725
725
|
...o
|
|
726
726
|
});
|
|
727
727
|
return e.moveCall({
|
|
728
|
-
target: `${r.package}::
|
|
728
|
+
target: `${r.package}::account::account_owner`,
|
|
729
729
|
arguments: [n]
|
|
730
730
|
});
|
|
731
731
|
}
|
|
@@ -1078,10 +1078,12 @@ class M {
|
|
|
1078
1078
|
}
|
|
1079
1079
|
filterPositionsByPool(n) {
|
|
1080
1080
|
const r = !!n.isEMode ? ["navi-lending-emode-supply", "navi-lending-emode-borrow"] : ["navi-lending-supply", "navi-lending-borrow"];
|
|
1081
|
-
return new M(
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1081
|
+
return new M(
|
|
1082
|
+
this.positions.filter((t) => {
|
|
1083
|
+
const a = t[t.type];
|
|
1084
|
+
return r.includes(t.type) && a.pool.uniqueId === n.uniqueId;
|
|
1085
|
+
})
|
|
1086
|
+
);
|
|
1085
1087
|
}
|
|
1086
1088
|
deposit(n, o) {
|
|
1087
1089
|
const r = !!n.isEMode;
|