Skip to content

Commit

Permalink
fix: compare lowercase addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
Makeev Ivan committed Nov 8, 2021
1 parent 7196cd4 commit 7fa7feb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@curvefi/api",
"version": "1.8.2",
"version": "1.8.3",
"description": "JavaScript library for curve.fi",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ export const crossAssetExchangeAvailable = async (inputCoin: string, outputCoin:
const [inputCoinAddress, outputCoinAddress] = _getCoinAddresses(inputCoin, outputCoin);

// TODO remove it when fixed
if (inputCoinAddress === COINS.weth || outputCoinAddress === COINS.weth) return false
if (inputCoinAddress.toLowerCase() === COINS.weth.toLowerCase() || outputCoinAddress.toLowerCase() === COINS.weth.toLowerCase()) return false

const routerContract = await curve.contracts[ALIASES.router].contract;

Expand Down

0 comments on commit 7fa7feb

Please sign in to comment.