@curvefi/api 2.67.4 → 2.67.6
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.
|
@@ -173,6 +173,11 @@ export function getTricryptoFactoryPoolData() {
|
|
|
173
173
|
for (let i = 0; i < rawGaugeAddresses.length; i++) {
|
|
174
174
|
gaugeAddresses.push(rawGaugeAddresses[i] !== this.constants.ZERO_ADDRESS ? rawGaugeAddresses[i] : rawOldGaugeAddresses[i]);
|
|
175
175
|
}
|
|
176
|
+
swapAddresses.forEach((address, index) => {
|
|
177
|
+
var _a;
|
|
178
|
+
const isNativeCoinEnabled = this.chainId === 1 || implementationAddresses[index] === ((_a = this.constants.CRYPTO_FACTORY_CONSTANTS.tricryptoDeployImplementations) === null || _a === void 0 ? void 0 : _a.amm_native_transfers_enabled);
|
|
179
|
+
this.setContract(address, isNativeCoinEnabled ? tricryptoFactorySwapABI : tricryptoFactoryEthDisabledSwapABI);
|
|
180
|
+
});
|
|
176
181
|
setCryptoFactoryGaugeContracts.call(this, gaugeAddresses);
|
|
177
182
|
setCryptoFactoryCoinsContracts.call(this, coinAddresses);
|
|
178
183
|
const existingCoinAddressNameDict = getExistingCoinAddressNameDict.call(this);
|
|
@@ -181,7 +186,6 @@ export function getTricryptoFactoryPoolData() {
|
|
|
181
186
|
const nativeToken = this.constants.NATIVE_TOKEN;
|
|
182
187
|
for (let i = 0; i < poolIds.length; i++) {
|
|
183
188
|
const isETHEnabled = this.chainId === 1 || implementationAddresses[i] === ((_a = this.constants.CRYPTO_FACTORY_CONSTANTS.tricryptoDeployImplementations) === null || _a === void 0 ? void 0 : _a.amm_native_transfers_enabled);
|
|
184
|
-
this.setContract(swapAddresses[i], isETHEnabled ? tricryptoFactorySwapABI : tricryptoFactoryEthDisabledSwapABI);
|
|
185
189
|
const underlyingCoinAddresses = coinAddresses[i].map((addr) => {
|
|
186
190
|
if (isETHEnabled) {
|
|
187
191
|
return addr === nativeToken.wrappedAddress ? nativeToken.address : addr;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@curvefi/api",
|
|
3
|
-
"version": "2.67.
|
|
3
|
+
"version": "2.67.6",
|
|
4
4
|
"description": "JavaScript library for curve.finance",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"author": "Macket",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"vue-eslint-parser": "^10.1.3"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@curvefi/ethcall": "^6.0.
|
|
45
|
+
"@curvefi/ethcall": "^6.0.15",
|
|
46
46
|
"bignumber.js": "^9.3.0",
|
|
47
47
|
"ethers": "^6.14.1",
|
|
48
48
|
"memoizee": "^0.4.17"
|