@curvefi/api 2.54.8 → 2.54.9
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/constants/aliases.js
CHANGED
|
@@ -8,7 +8,7 @@ export var ALIASES_ETHEREUM = lowerCaseValues({
|
|
|
8
8
|
"gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
|
|
9
9
|
"address_provider": "0x0000000022d53366457f9d5e68ec105046fc4383",
|
|
10
10
|
"router": "0xF0d4c12A5768D806021F80a262B4d39d26C58b8D",
|
|
11
|
-
"deposit_and_stake": "
|
|
11
|
+
"deposit_and_stake": "0x56C526b0159a258887e0d79ec3a80dfb940d0cD7",
|
|
12
12
|
"stable_calc": "0x0DCDED3545D565bA3B19E683431381007245d983",
|
|
13
13
|
"crypto_calc": '0xA72C85C258A81761433B4e8da60505Fe3Dd551CC',
|
|
14
14
|
"factory": '0xb9fc157394af804a3578134a6585c0dc9cc990d4',
|
|
@@ -2336,7 +2336,7 @@ var PoolTemplate = /** @class */ (function () {
|
|
|
2336
2336
|
_minMintAmount = fromBN(minAmountBN);
|
|
2337
2337
|
ethIndex = getEthIndex(coinAddresses);
|
|
2338
2338
|
value = _amounts[ethIndex] || curve.parseUnits("0");
|
|
2339
|
-
return [4 /*yield*/, contract.deposit_and_stake.estimateGas(depositAddress, this.lpToken, this.gauge, coins.length, coinAddresses, _amounts, _minMintAmount, useUnderlying, this.isStableNg && this.isPlain, this.isMetaFactory && isUnderlying ? this.address : curve.constants.ZERO_ADDRESS, __assign(__assign({}, curve.constantOptions), { value: value }))];
|
|
2339
|
+
return [4 /*yield*/, contract.deposit_and_stake.estimateGas(depositAddress, this.lpToken, this.gauge, coins.length, coinAddresses, _amounts, _minMintAmount, useUnderlying, (this.isStableNg && this.isPlain) || (isUnderlying && this.isMeta && (new PoolTemplate(this.basePool)).isStableNg), this.isMetaFactory && isUnderlying ? this.address : curve.constants.ZERO_ADDRESS, __assign(__assign({}, curve.constantOptions), { value: value }))];
|
|
2340
2340
|
case 17:
|
|
2341
2341
|
_gas = (_q.sent());
|
|
2342
2342
|
if (estimateGas)
|
|
@@ -2345,7 +2345,7 @@ var PoolTemplate = /** @class */ (function () {
|
|
|
2345
2345
|
case 18:
|
|
2346
2346
|
_q.sent();
|
|
2347
2347
|
gasLimit = DIGas(_gas) * curve.parseUnits("200", 0) / curve.parseUnits("100", 0);
|
|
2348
|
-
return [4 /*yield*/, contract.deposit_and_stake(depositAddress, this.lpToken, this.gauge, coins.length, coinAddresses, _amounts, _minMintAmount, useUnderlying, this.isStableNg && this.isPlain, this.isMetaFactory && isUnderlying ? this.address : curve.constants.ZERO_ADDRESS, __assign(__assign({}, curve.options), { gasLimit: gasLimit, value: value }))];
|
|
2348
|
+
return [4 /*yield*/, contract.deposit_and_stake(depositAddress, this.lpToken, this.gauge, coins.length, coinAddresses, _amounts, _minMintAmount, useUnderlying, (this.isStableNg && this.isPlain) || (isUnderlying && this.isMeta && (new PoolTemplate(this.basePool)).isStableNg), this.isMetaFactory && isUnderlying ? this.address : curve.constants.ZERO_ADDRESS, __assign(__assign({}, curve.options), { gasLimit: gasLimit, value: value }))];
|
|
2349
2349
|
case 19: return [2 /*return*/, (_q.sent()).hash];
|
|
2350
2350
|
}
|
|
2351
2351
|
});
|