Skip to content

Commit

Permalink
Merge pull request #24 from curvefi/perf/add-cache-for-stats-methods
Browse files Browse the repository at this point in the history
fix: fixed statsAmmBalances
  • Loading branch information
fedorovdg authored Jun 3, 2024
2 parents e4ce3b4 + db25929 commit bc3dee2
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/lending-api",
"version": "2.0.7",
"version": "2.0.8",
"description": "JavaScript library for Curve Lending",
"main": "lib/index.js",
"author": "Macket",
Expand Down
2 changes: 1 addition & 1 deletion src/markets/OneWayMarketTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ export class OneWayMarketTemplate {
cacheStats.get(cacheKey(this.addresses.amm, 'admin_fees_y')),
]
} else {
const [_balance_x, _fee_x, _balance_y, _fee_y]: bigint[] = await lending.multicallProvider.all([
[_balance_x, _fee_x, _balance_y, _fee_y] = await lending.multicallProvider.all([
borrowedContract.balanceOf(this.addresses.amm),
ammContract.admin_fees_x(),
collateralContract.balanceOf(this.addresses.amm),
Expand Down

0 comments on commit bc3dee2

Please sign in to comment.