@curvefi/api 2.12.0 → 2.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -260,7 +260,7 @@ function getFactoryPoolsDataFromApi(isCrypto) {
260
260
  };
261
261
  }
262
262
  }
263
- else if (pool.implementation.startsWith("meta")) {
263
+ else if (pool.implementation.includes("meta")) {
264
264
  var implementationABIDict = constants_1.FACTORY_CONSTANTS[_this.chainId].implementationABIDict;
265
265
  var implementationBasePoolIdDict = constants_1.FACTORY_CONSTANTS[_this.chainId].implementationBasePoolIdDict;
266
266
  var basePoolIds = Object.values(implementationBasePoolIdDict).filter(function (poolId, i, arr) { return arr.indexOf(poolId) === i; });
@@ -669,7 +669,7 @@ var PoolTemplate = /** @class */ (function () {
669
669
  case 7:
670
670
  res = _f.sent();
671
671
  symbol = res[0];
672
- decimals = res[0].toNumber();
672
+ decimals = res[1];
673
673
  return [2 /*return*/, [{ token: token, symbol: symbol, decimals: decimals }]];
674
674
  case 8: return [2 /*return*/, []]; // gauge
675
675
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.12.0",
3
+ "version": "2.12.1",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",