Skip to content

Commit

Permalink
add a fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aburkut committed Oct 2, 2023
1 parent 38f014e commit b44ae5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dex/dexalot/dexalot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ import { BI_MAX_UINT256 } from '../../bigint-constants';
import { ethers } from 'ethers';
import BigNumber from 'bignumber.js';
import { Method } from '../../dex-helper/irequest-wrapper';
import { normalizeTokenAddress } from '../swaap-v2/utils';

export class Dexalot extends SimpleExchange implements IDex<DexalotData> {
readonly isStatePollingDex = true;
Expand Down Expand Up @@ -865,10 +866,11 @@ export class Dexalot extends SimpleExchange implements IDex<DexalotData> {
return [];
}

const normalizedTokenAddress = normalizeTokenAddress(tokenAddress);
const pairs = (await this.getCachedPairs()) || {};
this.tokensMap = (await this.getCachedTokens()) || {};
const tokensAddr = (await this.getCachedTokensAddr()) || {};
const token = this.getTokenFromAddress(tokenAddress);
const token = this.getTokenFromAddress(normalizedTokenAddress);
if (!token) {
return [];
}
Expand Down

0 comments on commit b44ae5c

Please sign in to comment.