diff --git a/bridge_ui/src/components/TokenSelectors/EthereumSourceTokenSelector.tsx b/bridge_ui/src/components/TokenSelectors/EthereumSourceTokenSelector.tsx index 24bf74e1..19b3098f 100644 --- a/bridge_ui/src/components/TokenSelectors/EthereumSourceTokenSelector.tsx +++ b/bridge_ui/src/components/TokenSelectors/EthereumSourceTokenSelector.tsx @@ -32,6 +32,7 @@ import { useDebounce } from "use-debounce/lib"; import RefreshButtonWrapper from "./RefreshButtonWrapper"; import { ChainId, CHAIN_ID_ETH } from "@certusone/wormhole-sdk"; import { sortParsedTokenAccounts } from "../../utils/sort"; +import { getAddress } from "@ethersproject/address"; const useStyles = makeStyles((theme) => createStyles({ @@ -96,7 +97,7 @@ const isWormholev1 = (provider: any, address: string, chainId: ChainId) => { const isMigrationEligible = (chainId: ChainId, address: string) => { const assetMap = getMigrationAssetMap(chainId); - return !!assetMap.get(address); + return !!assetMap.get(getAddress(address)); }; type EthereumSourceTokenSelectorProps = { diff --git a/bridge_ui/src/utils/consts.ts b/bridge_ui/src/utils/consts.ts index d832be7d..47fb2188 100644 --- a/bridge_ui/src/utils/consts.ts +++ b/bridge_ui/src/utils/consts.ts @@ -466,13 +466,13 @@ export const ETH_MIGRATION_ASSET_MAP = new Map( ? [ [ // LUNA - "0xd2877702675e6cEb975b4A1dFf9fb7BAF4C91ea9", - "0xe76820F1DB773B1d62a3D22F47259705cC5fA4E6", + getAddress("0xd2877702675e6cEb975b4A1dFf9fb7BAF4C91ea9"), + getAddress("0xe76820F1DB773B1d62a3D22F47259705cC5fA4E6"), ], [ // UST - "0xa47c8bf37f92aBed4A126BDA807A7b7498661acD", - "0xF39C29d8f6851d87c40c83b61078EB7384f7Cb51", + getAddress("0xa47c8bf37f92aBed4A126BDA807A7b7498661acD"), + getAddress("0xF39C29d8f6851d87c40c83b61078EB7384f7Cb51"), ], ] : CLUSTER === "testnet" @@ -490,13 +490,13 @@ export const BSC_MIGRATION_ASSET_MAP = new Map( ? [ [ // LUNA - "0xECCF35F941Ab67FfcAA9A1265C2fF88865caA005", - "0x355A116ef1Cf566B12Ef3a8e409A64e303c53740", + getAddress("0xECCF35F941Ab67FfcAA9A1265C2fF88865caA005"), + getAddress("0x355A116ef1Cf566B12Ef3a8e409A64e303c53740"), ], [ // UST - "0x23396cF899Ca06c4472205fC903bDB4de249D6fC", - "0x0F98AB919D04a291838B3b075c57181057D4CF75", + getAddress("0x23396cF899Ca06c4472205fC903bDB4de249D6fC"), + getAddress("0x0F98AB919D04a291838B3b075c57181057D4CF75"), ], ] : CLUSTER === "testnet"