From feb91a04b05c2682c4597df815888f5bd7a837ba Mon Sep 17 00:00:00 2001 From: Kyu Date: Tue, 19 Jul 2022 16:18:37 -0700 Subject: [PATCH] Fix typos in GMX sampling logic (#520) --- .../utils/market_operation_utils/sampler_operations.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/asset-swapper/src/utils/market_operation_utils/sampler_operations.ts b/packages/asset-swapper/src/utils/market_operation_utils/sampler_operations.ts index b9686b8c5c..9ec4fea9e9 100644 --- a/packages/asset-swapper/src/utils/market_operation_utils/sampler_operations.ts +++ b/packages/asset-swapper/src/utils/market_operation_utils/sampler_operations.ts @@ -1698,8 +1698,8 @@ export class SamplerOperations { ); } case ERC20BridgeSource.GMX: { - // low liquidity mim pool dont quote - if (takerToken === AVALANCHE_TOKENS.MIM || makerToken === 'AVALANCHE_TOKENS.MIM') { + // MIM has no liquidity. + if (takerToken === AVALANCHE_TOKENS.MIM || makerToken === AVALANCHE_TOKENS.MIM) { return []; } return this.getGMXSellQuotes( @@ -2030,8 +2030,8 @@ export class SamplerOperations { return this.getCompoundBuyQuotes(cToken.tokenAddress, makerToken, takerToken, makerFillAmounts); } case ERC20BridgeSource.GMX: { - // bad mim pool dont quote - if (takerToken === 'AVALANCHE_TOKENS.MIM' || makerToken === 'AVALANCHE_TOKENS.MIM') { + // MIM has no liquidity. + if (takerToken === AVALANCHE_TOKENS.MIM || makerToken === AVALANCHE_TOKENS.MIM) { return []; } return this.getGMXBuyQuotes(