@curvefi/api 2.49.1 → 2.49.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.
package/lib/curve.js CHANGED
@@ -102,7 +102,7 @@ import { COINS_ZKSYNC, cTokensZkSync, yTokensZkSync, ycTokensZkSync, aTokensZkSy
102
102
  import { COINS_BASE, cTokensBase, yTokensBase, ycTokensBase, aTokensBase } from "./constants/coins/base.js";
103
103
  import { lowerCasePoolDataAddresses, extractDecimals, extractGauges } from "./constants/utils.js";
104
104
  import { _getAllGauges, _getHiddenPools } from "./external-api.js";
105
- import { L2Networks } from "./constants/L2Networks";
105
+ import { L2Networks } from "./constants/L2Networks.js";
106
106
  var _killGauges = function (poolsData) { return __awaiter(void 0, void 0, void 0, function () {
107
107
  var gaugeData, isKilled, gaugeStatuses, poolId;
108
108
  return __generator(this, function (_a) {
package/lib/router.js CHANGED
@@ -707,7 +707,7 @@ export var getBestRouteAndOutput = function (inputCoin, outputCoin, amount) { re
707
707
  return [4 /*yield*/, _getOutputForRoute(route, parseUnits(amount, inputCoinDecimals))];
708
708
  case 2:
709
709
  _output = _c.sent();
710
- return [2 /*return*/, { route: route, output: curve.formatUnits(_output, outputCoinDecimals) }];
710
+ return [2 /*return*/, { route: route, output: curve.formatUnits(_output + BigInt(1), outputCoinDecimals) }];
711
711
  }
712
712
  });
713
713
  }); };
package/lib/utils.js CHANGED
@@ -61,7 +61,7 @@ import BigNumber from 'bignumber.js';
61
61
  import { curve, NETWORK_CONSTANTS } from "./curve.js";
62
62
  import { _getFactoryAPYsAndVolumes, _getLegacyAPYsAndVolumes, _getAllPoolsFromApi, _getSubgraphData } from "./external-api.js";
63
63
  import ERC20Abi from './constants/abis/ERC20.json' assert { type: 'json' };
64
- import { L2Networks } from './constants/L2Networks';
64
+ import { L2Networks } from './constants/L2Networks.js';
65
65
  export var ETH_ADDRESS = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
66
66
  // export const MAX_ALLOWANCE = curve.parseUnits(new BigNumber(2).pow(256).minus(1).toFixed(), 0);
67
67
  export var MAX_ALLOWANCE = BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"); // 2**256 - 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.49.1",
3
+ "version": "2.49.2",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",