Skip to content

Commit

Permalink
Merge pull request #25 from curvefi/perf/add-cache-for-stats-methods
Browse files Browse the repository at this point in the history
feat: add cacheStats.clear in fetchStats
  • Loading branch information
fedorovdg authored Jun 4, 2024
2 parents bc3dee2 + 6460ba0 commit 1a6733f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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.8",
"version": "2.0.9",
"description": "JavaScript library for Curve Lending",
"main": "lib/index.js",
"author": "Macket",
Expand Down
2 changes: 2 additions & 0 deletions src/lending.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ class Lending implements ILending {
}

fetchStats = async (amms: string[], controllers: string[], vaults: string[], borrowed_tokens: string[], collateral_tokens: string[]) => {
cacheStats.clear();

const calls: Call[] = [];
const marketCount = controllers.length;

Expand Down

0 comments on commit 1a6733f

Please sign in to comment.