@curvefi/api 2.69.1 → 2.69.2

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.
@@ -319,9 +319,13 @@ export class PoolTemplate extends CorePool {
319
319
  }
320
320
  const tokenInfo = yield curve.multicallProvider.all(tokenInfoCalls);
321
321
  for (let i = 0; i < tokens.length; i++) {
322
- curve.constants.DECIMALS[tokens[i]] = tokenInfo[(i * 2) + 1];
322
+ const rawDec = tokenInfo[(i * 2) + 1];
323
+ curve.constants.DECIMALS[tokens[i]] = Number(rawDec);
323
324
  }
324
- return tokens.map((token, i) => ({ token, symbol: tokenInfo[i * 2], decimals: tokenInfo[(i * 2) + 1] }));
325
+ return tokens.map((token, i) => {
326
+ const rawDec = tokenInfo[(i * 2) + 1];
327
+ return { token, symbol: tokenInfo[i * 2], decimals: Number(rawDec) };
328
+ });
325
329
  }
326
330
  else if ('claimable_reward(address)' in gaugeContract) { // gauge_synthetix
327
331
  const rewardContract = curve.contracts[this.sRewardContract].contract;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.69.1",
3
+ "version": "2.69.2",
4
4
  "description": "JavaScript library for curve.finance",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",