@curvefi/api 2.65.3 → 2.65.4
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.
|
@@ -36,7 +36,7 @@ export const poolBalancesLendingMixin = {
|
|
|
36
36
|
const contractCalls = this.pool.wrappedCoins.map((_, i) => swapContract.balances(i));
|
|
37
37
|
const _poolWrappedBalances = yield curve.multicallProvider.all(contractCalls);
|
|
38
38
|
// @ts-ignore
|
|
39
|
-
const _rates = yield this._getRates();
|
|
39
|
+
const _rates = yield this.pool._getRates();
|
|
40
40
|
const _poolUnderlyingBalances = _poolWrappedBalances.map((_b, i) => _b * _rates[i] / curve.parseUnits(String(Math.pow(10, 18)), 0));
|
|
41
41
|
return _poolUnderlyingBalances.map((_b, i) => curve.formatUnits(_b, this.pool.underlyingDecimals[i]));
|
|
42
42
|
});
|