@curvefi/api 2.52.2 → 2.52.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/constants/aliases.js
CHANGED
|
@@ -73,7 +73,7 @@ export var ALIASES_AVALANCHE = lowerCaseValues({
|
|
|
73
73
|
"eywa_factory": '0x37F22A0B028f2152e6CAcef210e0C4d3b875f367',
|
|
74
74
|
"crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
|
|
75
75
|
"tricrypto_factory": '0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963',
|
|
76
|
-
"stable_ng_factory": '
|
|
76
|
+
"stable_ng_factory": '0x1764ee18e8B3ccA4787249Ceb249356192594585',
|
|
77
77
|
"factory_admin": "",
|
|
78
78
|
});
|
|
79
79
|
export var ALIASES_ARBITRUM = lowerCaseValues({
|
package/lib/factory/constants.js
CHANGED
|
@@ -147,6 +147,8 @@ export var implementationABIDictAvalanche = lowerCaseKeys({
|
|
|
147
147
|
"0x7D86446dDb609eD0F5f8684AcF30380a356b2B4c": Plain4BalancesABI,
|
|
148
148
|
"0x0eb0F1FaF5F509Ac53fA224477509EAD167cf410": Plain4ETHABI,
|
|
149
149
|
"0xCE94D3E5b0D80565D7B713A687b39a3Dc81780BA": Plain4OptimizedABI,
|
|
150
|
+
"0xa7Ba18EeFcD9513230987eC2faB6711AF5AbD9c2": PlainStableSwapNGABI,
|
|
151
|
+
"0x7C2085419BE6a04f4ad88ea91bC9F5C6E6C463D8": MetaStableSwapNGABI,
|
|
150
152
|
});
|
|
151
153
|
export var implementationABIDictArbitrum = lowerCaseKeys({
|
|
152
154
|
"0x09672362833d8f703D5395ef3252D4Bfa51c15ca": MetaUSDABI,
|
package/lib/factory/deploy.js
CHANGED
|
@@ -161,7 +161,7 @@ implementationIdx, emaTime, // seconds
|
|
|
161
161
|
oracleAddresses, methodNames, estimateGas) {
|
|
162
162
|
if (emaTime === void 0) { emaTime = 600; }
|
|
163
163
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
164
|
-
var _oracleAddresses, _methodNames, _A, _fee, _coins, contractAddress, contract, methodIds, args, gas, gasLimit;
|
|
164
|
+
var _oracleAddresses, _methodNames, _A, _fee, _offpegFeeMultiplier, _coins, contractAddress, contract, methodIds, args, gas, gasLimit;
|
|
165
165
|
var _a;
|
|
166
166
|
return __generator(this, function (_b) {
|
|
167
167
|
switch (_b.label) {
|
|
@@ -204,6 +204,7 @@ oracleAddresses, methodNames, estimateGas) {
|
|
|
204
204
|
throw Error("emaTime must be > 0. Passed emaTime = ".concat(emaTime));
|
|
205
205
|
_A = parseUnits(A, 0);
|
|
206
206
|
_fee = parseUnits(fee, 8);
|
|
207
|
+
_offpegFeeMultiplier = parseUnits(offpegFeeMultiplier, 10);
|
|
207
208
|
_coins = coins;
|
|
208
209
|
contractAddress = curve.constants.ALIASES.stable_ng_factory;
|
|
209
210
|
contract = curve.contracts[contractAddress].contract;
|
|
@@ -216,8 +217,7 @@ oracleAddresses, methodNames, estimateGas) {
|
|
|
216
217
|
methodIds.push(ethers.id(item).substring(0, 10));
|
|
217
218
|
}
|
|
218
219
|
});
|
|
219
|
-
args = [name, symbol, _coins, _A, _fee,
|
|
220
|
-
console.log(args);
|
|
220
|
+
args = [name, symbol, _coins, _A, _fee, _offpegFeeMultiplier, emaTime, implementationIdx, assetTypes, methodIds, _oracleAddresses];
|
|
221
221
|
return [4 /*yield*/, (_a = contract.deploy_plain_pool).estimateGas.apply(_a, __spreadArray(__spreadArray([], args, false), [curve.constantOptions], false))];
|
|
222
222
|
case 1:
|
|
223
223
|
gas = _b.sent();
|