diff --git a/src/assets/img/token/vastr.png b/src/assets/img/token/vastr.png new file mode 100644 index 000000000..873f62e86 Binary files /dev/null and b/src/assets/img/token/vastr.png differ diff --git a/src/modules/xcm/tokens/index.ts b/src/modules/xcm/tokens/index.ts index 5398cd73c..6b05d4bf7 100644 --- a/src/modules/xcm/tokens/index.ts +++ b/src/modules/xcm/tokens/index.ts @@ -143,6 +143,16 @@ export const xcmToken = { originChain: Chain.UNIQUE, minBridgeAmount: '0.1', }, + { + symbol: 'vASTR', + isNativeToken: false, + assetId: '18446744073709551632', + originAssetId: 'vASTR', + logo: require('/src/assets/img/token/vastr.png'), + isXcmCompatible: true, + originChain: Chain.BIFROST_POLKADOT, + minBridgeAmount: '0.1', + }, ], [endpointKey.SHIDEN]: [ { diff --git a/src/v2/repositories/implementations/xcm/BifrostXcmRepository.ts b/src/v2/repositories/implementations/xcm/BifrostXcmRepository.ts index 060616766..245561dbe 100644 --- a/src/v2/repositories/implementations/xcm/BifrostXcmRepository.ts +++ b/src/v2/repositories/implementations/xcm/BifrostXcmRepository.ts @@ -13,6 +13,7 @@ const BNC = { Native: 'BNC' }; const vDOT = { VToken2: 0 }; const vKSM = { VToken: 'KSM' }; const ASTR = { Token2: 3 }; +const vASTR = { vToken2: 3 }; const SDN = { Token2: 3 }; /** @@ -49,6 +50,8 @@ export class BifrostXcmRepository extends XcmRepository { tokenData = vKSM; } else if (token.originAssetId == 'ASTR') { tokenData = ASTR; + } else if (token.originAssetId == 'vASTR') { + tokenData = vASTR; } else if (token.originAssetId == 'SDN') { tokenData = SDN; } else { @@ -113,6 +116,9 @@ export class BifrostXcmRepository extends XcmRepository { } else if (token.originAssetId == 'ASTR') { const bal = await api.query.tokens.accounts(address, ASTR); return bal.free.toString(); + } else if (token.originAssetId == 'vASTR') { + const bal = await api.query.tokens.accounts(address, vASTR); + return bal.free.toString(); } else if (token.originAssetId == 'SDN') { const bal = await api.query.tokens.accounts(address, SDN); return bal.free.toString();