Skip to content

Commit

Permalink
PINK
Browse files Browse the repository at this point in the history
  • Loading branch information
mrq1911 committed Mar 27, 2024
1 parent 81660e0 commit 85521ef
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/currencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ let currencies = {
existentialDeposit: '1',
symbol: 'DED',
decimals: '10'
},
'1000021': {
name: 'PINK',
assetType: 'External',
existentialDeposit: '1',
symbol: 'PINK',
decimals: '10'
}
};

Expand Down Expand Up @@ -75,13 +82,13 @@ export const symbol = currencyId => {
if (currency.assetType === 'Bond') {
return symbol(currency.parent) + 'b';
}
return currency.symbol || currency.name || (Number(currencyId) === 0 ? 'HDX' : '');
return currency.symbol || currency.name || (Number(currencyId) === 0 ? 'HDX' : currencyId);
}
export const decimals = currencyId => {
const currency = currencies[currencyId];
if (currency.assetType === 'StableSwap') return 18;
if (currency.parent) return decimals(currency.parent);
return currency.decimals || 12;
return currency.decimals || 1;
}

const short = address => "`" + (fromAccount(address.toString()) || address.toString()).substr(-3) + "`";
Expand Down

0 comments on commit 85521ef

Please sign in to comment.