mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-29 16:57:55 +00:00
feat: add Native HEZ support for pool creation
assetConversion pallet requires pools to pair with Native token. Changes: - Added NATIVE_TOKEN_ID (-1) constant for relay chain HEZ - Updated CreatePoolModal to use XCM location format for Native - Pools can now be created: Native HEZ / PEZ, Native HEZ / wUSDT, etc. - Fixed balance fetching for Native vs Asset tokens
This commit is contained in:
@@ -46,15 +46,29 @@ export const KURDISTAN_COLORS = {
|
||||
res: '#000000', // Black (Reş)
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Special ID for Native token (relay chain HEZ)
|
||||
* Used in pool creation - pools must pair with Native
|
||||
*/
|
||||
export const NATIVE_TOKEN_ID = -1;
|
||||
|
||||
/**
|
||||
* Known tokens on the Pezkuwi blockchain (Asset Hub)
|
||||
*
|
||||
* Asset IDs on Asset Hub:
|
||||
* - Native (-1): HEZ from Relay Chain (for pool pairing)
|
||||
* - Asset 1: PEZ (Pezkuwi Token)
|
||||
* - Asset 2: wHEZ (Wrapped HEZ via tokenWrapper)
|
||||
* - Asset 1000: wUSDT (Wrapped USDT)
|
||||
*/
|
||||
export const KNOWN_TOKENS: Record<number, TokenInfo> = {
|
||||
[NATIVE_TOKEN_ID]: {
|
||||
id: NATIVE_TOKEN_ID,
|
||||
symbol: 'HEZ',
|
||||
name: 'Native HEZ (Relay Chain)',
|
||||
decimals: 12,
|
||||
logo: '/shared/images/hez_token_512.png',
|
||||
},
|
||||
2: {
|
||||
id: 2,
|
||||
symbol: 'wHEZ',
|
||||
|
||||
Reference in New Issue
Block a user