diff --git a/apps/main/src/modules/xcm/transfer/XcmForm.tsx b/apps/main/src/modules/xcm/transfer/XcmForm.tsx index 22142464d0..dc2befed9c 100644 --- a/apps/main/src/modules/xcm/transfer/XcmForm.tsx +++ b/apps/main/src/modules/xcm/transfer/XcmForm.tsx @@ -156,7 +156,7 @@ export const XcmForm = () => { const hasValidAccounts = isConnectedAccountValid && !!destAddress const spotPriceId = srcAsset - ? registryChain.getBalanceAssetId(srcAsset).toString() + ? registryChain.getAssetId(srcAsset).toString() : undefined const { price } = useAssetPrice(spotPriceId) diff --git a/apps/main/src/modules/xcm/transfer/components/ChainAssetSelect/AssetList.tsx b/apps/main/src/modules/xcm/transfer/components/ChainAssetSelect/AssetList.tsx index 9e47009554..b81c3ca3b7 100644 --- a/apps/main/src/modules/xcm/transfer/components/ChainAssetSelect/AssetList.tsx +++ b/apps/main/src/modules/xcm/transfer/components/ChainAssetSelect/AssetList.tsx @@ -39,7 +39,7 @@ export const AssetList: React.FC = ({ }) => { const priceIds = useMemo(() => { return items.map((item) => { - const registryId = registryChain.getBalanceAssetId(item.asset) + const registryId = registryChain.getAssetId(item.asset) return registryId.toString() }) }, [items, registryChain]) @@ -65,7 +65,7 @@ export const AssetList: React.FC = ({ if (isLoadingBalances || isAssetPriceLoading) return items const assetsWithBalances = items.map((item) => { - const registryId = registryChain.getBalanceAssetId(item.asset) + const registryId = registryChain.getAssetId(item.asset) const balance = balances?.get(item.asset.key) const { price } = getAssetPrice(registryId.toString()) return { diff --git a/apps/main/src/modules/xcm/transfer/components/ChainAssetSelect/AssetListItem.tsx b/apps/main/src/modules/xcm/transfer/components/ChainAssetSelect/AssetListItem.tsx index ccd67ead02..42e596f898 100644 --- a/apps/main/src/modules/xcm/transfer/components/ChainAssetSelect/AssetListItem.tsx +++ b/apps/main/src/modules/xcm/transfer/components/ChainAssetSelect/AssetListItem.tsx @@ -51,7 +51,7 @@ export const AssetListItem: React.FC = ({ const { t } = useTranslation(["common"]) const { getAsset } = useAssets() - const registryId = registryChain.getBalanceAssetId(asset) + const registryId = registryChain.getAssetId(asset) const registryAsset = getAsset(registryId.toString()) const meta = registryAsset diff --git a/apps/main/src/modules/xcm/transfer/components/XAssetLogo/XAssetLogo.tsx b/apps/main/src/modules/xcm/transfer/components/XAssetLogo/XAssetLogo.tsx index bc4241c386..c60195e352 100644 --- a/apps/main/src/modules/xcm/transfer/components/XAssetLogo/XAssetLogo.tsx +++ b/apps/main/src/modules/xcm/transfer/components/XAssetLogo/XAssetLogo.tsx @@ -33,7 +33,7 @@ export const XAssetLogo: React.FC = ({ ) } - const registryId = registryChain.getBalanceAssetId(asset) + const registryId = registryChain.getAssetId(asset) const registryAsset = getAsset(registryId.toString()) return (