@curvefi/api 2.61.0 → 2.61.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/router.js +3 -0
- package/lib/utils.js +1 -1
- package/package.json +1 -1
package/lib/router.js
CHANGED
|
@@ -401,6 +401,9 @@ var _buildRouteGraph = memoize(function () { return __awaiter(void 0, void 0, vo
|
|
|
401
401
|
// Don't swap metacoins since they can be swapped directly in base pool
|
|
402
402
|
if (metaCoinAddresses.includes(underlyingCoinAddresses[i]) && metaCoinAddresses.includes(underlyingCoinAddresses[j]))
|
|
403
403
|
continue;
|
|
404
|
+
// avWBTC is frozen by Aave on Avalanche, deposits are not working
|
|
405
|
+
if (curve.chainId === 43114 && poolId === "atricrypto" && i === 3)
|
|
406
|
+
continue;
|
|
404
407
|
hasEth = underlyingCoinAddresses.includes(curve.constants.NATIVE_TOKEN.address);
|
|
405
408
|
swapType = (poolData.is_crypto && poolData.is_meta && poolData.is_factory) || ((basePool === null || basePool === void 0 ? void 0 : basePool.is_lending) && poolData.is_factory) ? 3
|
|
406
409
|
: hasEth && poolId !== 'avaxcrypto' ? 1 : 2;
|
package/lib/utils.js
CHANGED
|
@@ -1008,7 +1008,7 @@ export var getBasePools = function () { return __awaiter(void 0, void 0, void 0,
|
|
|
1008
1008
|
factoryMulticallContract = curve.contracts[curve.constants.ALIASES['stable_ng_factory']].multicallContract;
|
|
1009
1009
|
_a = Number;
|
|
1010
1010
|
_c = (_b = curve).formatUnits;
|
|
1011
|
-
return [4 /*yield*/, factoryContract.base_pool_count(
|
|
1011
|
+
return [4 /*yield*/, factoryContract.base_pool_count()];
|
|
1012
1012
|
case 1:
|
|
1013
1013
|
basePoolCount = _a.apply(void 0, [_c.apply(_b, [_d.sent(), 0])]);
|
|
1014
1014
|
calls = [];
|