Skip to content

Commit

Permalink
Merge pull request #38 from curvefi/feat/enable-fetch-by-api
Browse files Browse the repository at this point in the history
Feat/enable fetch by api
  • Loading branch information
fedorovdg authored Oct 8, 2024
2 parents 4b183de + 56b2ebe commit 8c42768
Show file tree
Hide file tree
Showing 2 changed files with 4 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.3.2",
"version": "2.3.3",
"description": "JavaScript library for Curve Lending",
"main": "lib/index.js",
"author": "Macket",
Expand Down
3 changes: 3 additions & 0 deletions src/lending.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ class Lending implements ILending {
const collateralCoin = market.assets.collateral;

if (coins.has(borrowedCoin.address)) {
this.setContract(borrowedCoin.address, ERC20ABI);
COINS_DATA[borrowedCoin.address] = {
address: borrowedCoin.address,
decimals: borrowedCoin.decimals,
Expand All @@ -438,6 +439,7 @@ class Lending implements ILending {
}

if (coins.has(collateralCoin.address)) {
this.setContract(collateralCoin.address, ERC20ABI);
COINS_DATA[collateralCoin.address] = {
address: collateralCoin.address,
decimals: collateralCoin.decimals,
Expand Down Expand Up @@ -473,6 +475,7 @@ class Lending implements ILending {
return COINS_DATA;
}


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

Expand Down

0 comments on commit 8c42768

Please sign in to comment.