Skip to content

Commit

Permalink
Merge pull request #369 from curvefi/fix/fixed-getBasePools-mantle
Browse files Browse the repository at this point in the history
fix: fixed getBasePools for mantle network
  • Loading branch information
fedorovdg authored Jul 10, 2024
2 parents 4b230ff + bd6fc72 commit 625e106
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/api",
"version": "2.61.3",
"version": "2.61.4",
"description": "JavaScript library for curve.fi",
"main": "lib/index.js",
"author": "Macket",
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ export const getBasePools = async (): Promise<IBasePoolShortItem[]> => {
const factoryContract = curve.contracts[curve.constants.ALIASES['stable_ng_factory']].contract;
const factoryMulticallContract = curve.contracts[curve.constants.ALIASES['stable_ng_factory']].multicallContract;

const basePoolCount = Number(curve.formatUnits(await factoryContract.base_pool_count(curve.constantOptions), 0));
const basePoolCount = Number(curve.formatUnits(await factoryContract.base_pool_count(), 0));

const calls = [];
for (let i = 0; i < basePoolCount; i++) {
Expand Down

0 comments on commit 625e106

Please sign in to comment.