fix: use XCM Location format for native token in liquidity operations

This commit is contained in:
2026-02-04 19:16:51 +03:00
parent 239cd52237
commit 04e182ea78
2 changed files with 63 additions and 108 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import { ASSET_IDS, getAssetSymbol } from '@pezkuwi/lib/wallet';
// Helper to get display name for tokens (users see HEZ not wHEZ, USDT not wUSDT)
const getDisplayTokenName = (assetId: number): string => {
if (assetId === ASSET_IDS.WHEZ || assetId === 0) return 'HEZ';
if (assetId === -1 || assetId === ASSET_IDS.WHEZ || assetId === 0 || assetId === 2) return 'HEZ';
if (assetId === ASSET_IDS.PEZ || assetId === 1) return 'PEZ';
if (assetId === ASSET_IDS.WUSDT || assetId === 1000) return 'USDT';
return getAssetSymbol(assetId);