Skip to content

Commit bc3dee2

Browse files
authored
Merge pull request #24 from curvefi/perf/add-cache-for-stats-methods
fix: fixed statsAmmBalances
2 parents e4ce3b4 + db25929 commit bc3dee2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@curvefi/lending-api",
3-
"version": "2.0.7",
3+
"version": "2.0.8",
44
"description": "JavaScript library for Curve Lending",
55
"main": "lib/index.js",
66
"author": "Macket",

src/markets/OneWayMarketTemplate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ export class OneWayMarketTemplate {
10611061
cacheStats.get(cacheKey(this.addresses.amm, 'admin_fees_y')),
10621062
]
10631063
} else {
1064-
const [_balance_x, _fee_x, _balance_y, _fee_y]: bigint[] = await lending.multicallProvider.all([
1064+
[_balance_x, _fee_x, _balance_y, _fee_y] = await lending.multicallProvider.all([
10651065
borrowedContract.balanceOf(this.addresses.amm),
10661066
ammContract.admin_fees_x(),
10671067
collateralContract.balanceOf(this.addresses.amm),

0 commit comments

Comments
 (0)