diff --git a/package-lock.json b/package-lock.json index be08746fae..4b20a572e8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@balancer-labs/frontend-v2", - "version": "1.13.3", + "version": "1.13.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@balancer-labs/frontend-v2", - "version": "1.13.3", + "version": "1.13.4", "license": "MIT", "dependencies": { "@balancer-labs/assets": "github:balancer-labs/assets#master", diff --git a/package.json b/package.json index d9c1416e75..1bf0709bd4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@balancer-labs/frontend-v2", - "version": "1.13.3", + "version": "1.13.4", "engines": { "node": "14.x", "npm": ">=7" diff --git a/src/lib/utils/balancer/lido.ts b/src/lib/utils/balancer/lido.ts index 0287042340..30f163ab20 100644 --- a/src/lib/utils/balancer/lido.ts +++ b/src/lib/utils/balancer/lido.ts @@ -4,6 +4,8 @@ import { BigNumberish, Contract } from 'ethers'; import { getAddress } from 'ethers/lib/utils'; export function isStETH(tokenInAddress: string, tokenOutAddress: string) { + if (!tokenInAddress || !tokenOutAddress) return false; + return [tokenInAddress, tokenOutAddress] .map(getAddress) .includes(getAddress(configService.network.addresses.stETH));