From 5cc18f00dfb093a487e9523182194d83dfe12437 Mon Sep 17 00:00:00 2001 From: fedorovdg Date: Tue, 5 Nov 2024 21:45:27 +0400 Subject: [PATCH] fix: fixed getTricryptoFactoryPoolData --- src/factory/factory-tricrypto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/factory/factory-tricrypto.ts b/src/factory/factory-tricrypto.ts index 7e4defc8..abcf7b4e 100644 --- a/src/factory/factory-tricrypto.ts +++ b/src/factory/factory-tricrypto.ts @@ -209,7 +209,7 @@ export async function getTricryptoFactoryPoolData(this: ICurve, fromIdx = 0, swa const nativeToken = this.constants.NATIVE_TOKEN; for (let i = 0; i < poolIds.length; i++) { - const isETHEnabled = implementationAddresses[i] === this.constants.CRYPTO_FACTORY_CONSTANTS.tricryptoDeployImplementations?.amm_native_transfers_enabled; + const isETHEnabled = this.chainId === 1 || implementationAddresses[i] === this.constants.CRYPTO_FACTORY_CONSTANTS.tricryptoDeployImplementations?.amm_native_transfers_enabled; const underlyingCoinAddresses = coinAddresses[i].map((addr) => { if(isETHEnabled) { return addr === nativeToken.wrappedAddress ? nativeToken.address : addr;