@curvefi/api 2.61.1 → 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/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;
|