@curvefi/api 1.24.5 → 1.25.0

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.
@@ -90,6 +90,8 @@ exports.USD_COINS_ETHEREUM = {
90
90
  busd: "0x4Fabb145d64652a948d72533023f6E7A623C7C53",
91
91
  alusd: "0xbc6da0fe9ad5f3b0d58160288917aa56653660e9",
92
92
  mim: "0x99d8a9c45b2eca8864373a26d1459e3dff1e17f3",
93
+ rai: "0x03ab458634910aad20ef5f1c8ee96f1d6ac54919",
94
+ wormholeust: "0xa693B19d2931d498c5B318dF961919BB4aee87a5",
93
95
  '3crv': "0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490",
94
96
  crv: "0xD533a949740bb3306d119CC777fa900bA034cd52",
95
97
  cvx: "0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b", // CVX
@@ -165,6 +167,8 @@ exports.DECIMALS_ETHEREUM = {
165
167
  "0x68749665ff8d2d112fa859aa293f07a622782f38": 6,
166
168
  "0x090185f2135308bad17527004364ebcc2d37e5f6": 18,
167
169
  "0xCdF7028ceAB81fA0C6971208e83fa7872994beE5": 18,
170
+ "0xa693B19d2931d498c5B318dF961919BB4aee87a5": 6,
171
+ "0x03ab458634910aad20ef5f1c8ee96f1d6ac54919": 18,
168
172
  // --- REWARD TOKENS ---
169
173
  "0xa3BeD4E1c75D00fa6f4E5E6922DB7261B5E9AcD2": 18,
170
174
  "0x8762db106B2c2A0bccB3A80d1Ed41273552616E8": 18,
package/lib/pools.js CHANGED
@@ -2842,7 +2842,7 @@ var Pool = /** @class */ (function () {
2842
2842
  switch (_a.label) {
2843
2843
  case 0:
2844
2844
  contract = curve_1.curve.contracts[this.swap].contract;
2845
- if (!(["eurtusd", "xautusd", "crveth", "cvxeth", "spelleth", "teth"].includes(this.id) || this.isCryptoFactory)) return [3 /*break*/, 2];
2845
+ if (!(["eurtusd", "eursusd", "xautusd", "crveth", "cvxeth", "spelleth", "teth"].includes(this.id) || this.isCryptoFactory)) return [3 /*break*/, 2];
2846
2846
  return [4 /*yield*/, contract.calc_token_amount(_amounts, curve_1.curve.constantOptions)];
2847
2847
  case 1: return [2 /*return*/, _a.sent()];
2848
2848
  case 2: return [4 /*yield*/, contract.calc_token_amount(_amounts, isDeposit, curve_1.curve.constantOptions)];
@@ -2863,7 +2863,7 @@ var Pool = /** @class */ (function () {
2863
2863
  return [4 /*yield*/, contract.calc_token_amount(this.swap, _amounts, isDeposit, curve_1.curve.constantOptions)];
2864
2864
  case 1: return [2 /*return*/, _a.sent()];
2865
2865
  case 2:
2866
- if (!["eurtusd", "xautusd"].includes(this.id)) return [3 /*break*/, 4];
2866
+ if (!["eurtusd", "eursusd", "xautusd"].includes(this.id)) return [3 /*break*/, 4];
2867
2867
  return [4 /*yield*/, contract.calc_token_amount(_amounts, curve_1.curve.constantOptions)];
2868
2868
  case 3: return [2 /*return*/, _a.sent()];
2869
2869
  case 4: return [4 /*yield*/, contract.calc_token_amount(_amounts, isDeposit, curve_1.curve.constantOptions)];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "1.24.5",
3
+ "version": "1.25.0",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",