@curvefi/api 2.58.1 → 2.58.3
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 +2 -0
- package/lib/pools/PoolTemplate.js +2 -0
- package/lib/router.js +3 -1
- package/package.json +1 -1
package/lib/curve.js
CHANGED
|
@@ -939,6 +939,8 @@ var Curve = /** @class */ (function () {
|
|
|
939
939
|
FACTORY_GAUGE_IMPLEMENTATIONS: {},
|
|
940
940
|
ZERO_ADDRESS: ethers.ZeroAddress,
|
|
941
941
|
};
|
|
942
|
+
this.initContract = memoizedContract();
|
|
943
|
+
this.initMulticallContract = memoizedMulticallContract();
|
|
942
944
|
if (!(providerType.toLowerCase() === 'JsonRpc'.toLowerCase())) return [3 /*break*/, 6];
|
|
943
945
|
providerSettings = providerSettings;
|
|
944
946
|
jsonRpcApiProviderOptions = void 0;
|
|
@@ -162,6 +162,8 @@ var PoolTemplate = /** @class */ (function () {
|
|
|
162
162
|
return __generator(this, function (_e) {
|
|
163
163
|
switch (_e.label) {
|
|
164
164
|
case 0:
|
|
165
|
+
if (curve.chainId === 1 && this.id === "crveth")
|
|
166
|
+
return [2 /*return*/, "0"];
|
|
165
167
|
if (!this.isLlamma) return [3 /*break*/, 3];
|
|
166
168
|
stablecoinContract = curve.contracts[this.underlyingCoinAddresses[0]].multicallContract;
|
|
167
169
|
collateralContract = curve.contracts[this.underlyingCoinAddresses[1]].multicallContract;
|
package/lib/router.js
CHANGED
|
@@ -291,7 +291,9 @@ var _buildRouteGraph = memoize(function () { return __awaiter(void 0, void 0, vo
|
|
|
291
291
|
return [3 /*break*/, 4];
|
|
292
292
|
if (curve.chainId !== 1 && tvl < 100)
|
|
293
293
|
return [3 /*break*/, 4];
|
|
294
|
-
excludedUnderlyingSwaps = (poolId === 'ib' && curve.chainId === 1) ||
|
|
294
|
+
excludedUnderlyingSwaps = (poolId === 'ib' && curve.chainId === 1) ||
|
|
295
|
+
(poolId === 'geist' && curve.chainId === 250) ||
|
|
296
|
+
(poolId === 'saave' && curve.chainId === 1);
|
|
295
297
|
// Wrapped coin <-> LP "swaps" (actually add_liquidity/remove_liquidity_one_coin)
|
|
296
298
|
if (!poolData.is_fake && !poolData.is_llamma && wrappedCoinAddresses.length < 6) {
|
|
297
299
|
coins = __spreadArray([tokenAddress], wrappedCoinAddresses, true);
|