@curvefi/llamalend-api 2.0.28 → 2.0.29

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.
@@ -1094,6 +1094,7 @@ export class MintMarketTemplate {
1094
1094
  // ---------------- REPAY ----------------
1095
1095
  _repayBands(debt, address) {
1096
1096
  return __awaiter(this, void 0, void 0, function* () {
1097
+ address = _getAddress.call(this.llamalend, address);
1097
1098
  const { _collateral: _currentCollateral, _debt: _currentDebt, _stablecoin: _currentStablecoin } = yield this._userState(address);
1098
1099
  if (_currentDebt === BigInt(0))
1099
1100
  throw Error(`Loan for ${address} does not exist`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/llamalend-api",
3
- "version": "2.0.28",
3
+ "version": "2.0.29",
4
4
  "description": "JavaScript library for Curve Lending",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",
@@ -1136,6 +1136,7 @@ export class MintMarketTemplate {
1136
1136
  // ---------------- REPAY ----------------
1137
1137
 
1138
1138
  private async _repayBands(debt: number | string, address: string): Promise<[bigint, bigint]> {
1139
+ address = _getAddress.call(this.llamalend, address);
1139
1140
  const { _collateral: _currentCollateral, _debt: _currentDebt, _stablecoin: _currentStablecoin } = await this._userState(address);
1140
1141
  if (_currentDebt === BigInt(0)) throw Error(`Loan for ${address} does not exist`);
1141
1142