c66d7ed489
* Use new eslint rules and apply fixes. Use new logo component and shared theme + webpack config. * Add shared component to display a copy icon and copy to clipboard with confirmation state * Organise imports * Add copy mixnode identity key to list of mixnodes and detail view * Update nvm node version to 16 * Update GitHub Actions for Network Explorer to use yarn and yarn workspaces * Switch favicon for smaller N icon * Update README * Add error boundary
17 lines
448 B
TypeScript
17 lines
448 B
TypeScript
import { printableCoin } from '@nymproject/nym-validator-client';
|
|
|
|
const DENOM = process.env.CURRENCY_DENOM || 'unym';
|
|
const DENOM_STAKING = process.env.CURRENCY_STAKING_DENOM || 'unyx';
|
|
|
|
export const currencyToString = (amount: string, denom: string = DENOM) =>
|
|
printableCoin({
|
|
amount,
|
|
denom,
|
|
});
|
|
|
|
export const stakingCurrencyToString = (amount: string, denom: string = DENOM_STAKING) =>
|
|
printableCoin({
|
|
amount,
|
|
denom,
|
|
});
|