Skip to content

Commit

Permalink
Merge pull request #417 from curvefi/fix/fix-tvl-for-lite
Browse files Browse the repository at this point in the history
fix: fixed tvl for curve lite
  • Loading branch information
fedorovdg authored Nov 20, 2024
2 parents 2c6526e + a91d0f5 commit 66827e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 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.10",
"version": "2.65.11",
"description": "JavaScript library for curve.fi",
"main": "lib/index.js",
"author": "Macket",
Expand Down
4 changes: 0 additions & 4 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -624,10 +624,6 @@ const _getNetworkName = (network: INetworkName | IChainId = curve.chainId): INet
}

export const getTVL = async (network: INetworkName | IChainId = curve.chainId): Promise<number> => {
if(curve.isLiteChain) {
throw Error('This method is not supported for the lite version')
}

network = _getNetworkName(network);
const allTypesExtendedPoolData = await _getAllPoolsFromApi(network);

Expand Down

0 comments on commit 66827e0

Please sign in to comment.