Skip to content

Commit

Permalink
fix: fixed getTricryptoFactoryPoolData
Browse files Browse the repository at this point in the history
  • Loading branch information
fedorovdg committed Nov 5, 2024
1 parent 52a8b75 commit 5cc18f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/factory/factory-tricrypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5cc18f0

Please sign in to comment.