Fix typos in GMX sampling logic (#520)

This commit is contained in:
Kyu 2022-07-19 16:18:37 -07:00 committed by GitHub
parent 4d63f33aba
commit feb91a04b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(