@curvefi/llamalend-api 2.0.21 → 2.0.22
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.
|
@@ -71,7 +71,7 @@ export class LoanV2Module extends LoanBaseModule {
|
|
|
71
71
|
address = _getAddress.call(this.llamalend, address);
|
|
72
72
|
const _debt = parseUnits(debt);
|
|
73
73
|
const contract = this.llamalend.contracts[this.market.addresses.controller].contract;
|
|
74
|
-
const _health = yield contract.repay_health_preview(0, _debt, address,
|
|
74
|
+
const _health = yield contract.repay_health_preview(0, _debt, address, shrink, full, this.llamalend.constantOptions);
|
|
75
75
|
return formatUnits(_health * BigInt(100));
|
|
76
76
|
});
|
|
77
77
|
}
|
package/package.json
CHANGED
|
@@ -67,7 +67,7 @@ export class LoanV2Module extends LoanBaseModule implements ILoanV2 {
|
|
|
67
67
|
const _debt = parseUnits(debt);
|
|
68
68
|
|
|
69
69
|
const contract = this.llamalend.contracts[this.market.addresses.controller].contract;
|
|
70
|
-
const _health = await contract.repay_health_preview(0, _debt, address,
|
|
70
|
+
const _health = await contract.repay_health_preview(0, _debt, address, shrink, full, this.llamalend.constantOptions) as bigint;
|
|
71
71
|
|
|
72
72
|
return formatUnits(_health * BigInt(100));
|
|
73
73
|
}
|