Skip to content

Commit

Permalink
Merge pull request #410 from curvefi/fix/fixed-poolBalancesLendingMixin
Browse files Browse the repository at this point in the history
fix: fixed poolBalancesLendingMixin
  • Loading branch information
fedorovdg authored Nov 14, 2024
2 parents 6d247ca + 08ae985 commit f1137f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@curvefi/api",
"version": "2.65.3",
"version": "2.65.4",
"description": "JavaScript library for curve.fi",
"main": "lib/index.js",
"author": "Macket",
Expand Down
2 changes: 1 addition & 1 deletion src/pools/mixins/poolBalancesMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const poolBalancesLendingMixin: IStatsPool = {
const _poolWrappedBalances: bigint[] = await curve.multicallProvider.all(contractCalls);

// @ts-ignore
const _rates: bigint[] = await this._getRates();
const _rates: bigint[] = await this.pool._getRates();
const _poolUnderlyingBalances = _poolWrappedBalances.map(
(_b: bigint, i: number) => _b * _rates[i] / curve.parseUnits(String(10**18), 0));

Expand Down

0 comments on commit f1137f2

Please sign in to comment.