@curvefi/llamalend-api 1.0.2 → 1.0.3
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.
|
@@ -323,7 +323,7 @@ var LendMarketTemplate = /** @class */ (function () {
|
|
|
323
323
|
case 0:
|
|
324
324
|
ammContract = llamalend.contracts[this.addresses.amm].multicallContract;
|
|
325
325
|
calls = [
|
|
326
|
-
ammContract.
|
|
326
|
+
ammContract.active_band_with_skip(),
|
|
327
327
|
ammContract.max_band(),
|
|
328
328
|
ammContract.min_band(),
|
|
329
329
|
];
|
|
@@ -105,7 +105,7 @@ var MintMarketTemplate = /** @class */ (function () {
|
|
|
105
105
|
this.statsActiveBand = memoize(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
106
106
|
return __generator(this, function (_a) {
|
|
107
107
|
switch (_a.label) {
|
|
108
|
-
case 0: return [4 /*yield*/, llamalend.contracts[this.address].contract.
|
|
108
|
+
case 0: return [4 /*yield*/, llamalend.contracts[this.address].contract.active_band_with_skip()];
|
|
109
109
|
case 1: return [2 /*return*/, (_a.sent()).toNumber()];
|
|
110
110
|
}
|
|
111
111
|
});
|
package/package.json
CHANGED
|
@@ -1010,7 +1010,7 @@ export class LendMarketTemplate {
|
|
|
1010
1010
|
private statsBandsInfo = memoize(async (): Promise<{ activeBand: number, maxBand: number, minBand: number, liquidationBand: number | null }> => {
|
|
1011
1011
|
const ammContract = llamalend.contracts[this.addresses.amm].multicallContract;
|
|
1012
1012
|
const calls = [
|
|
1013
|
-
ammContract.
|
|
1013
|
+
ammContract.active_band_with_skip(),
|
|
1014
1014
|
ammContract.max_band(),
|
|
1015
1015
|
ammContract.min_band(),
|
|
1016
1016
|
]
|
|
@@ -281,7 +281,7 @@ export class MintMarketTemplate {
|
|
|
281
281
|
});
|
|
282
282
|
|
|
283
283
|
private statsActiveBand = memoize(async (): Promise<number> => {
|
|
284
|
-
return (await llamalend.contracts[this.address].contract.
|
|
284
|
+
return (await llamalend.contracts[this.address].contract.active_band_with_skip()).toNumber()
|
|
285
285
|
},
|
|
286
286
|
{
|
|
287
287
|
promise: true,
|