diff --git a/mocks/stats/lines.ts b/mocks/stats/lines.ts index 51aca3c97d..cc55987919 100644 --- a/mocks/stats/lines.ts +++ b/mocks/stats/lines.ts @@ -1,3 +1,5 @@ +import { currencyUnits } from '../../lib/units'; + export const base = { sections: [ { @@ -31,8 +33,8 @@ export const base = { { id: 'averageTxnFee', title: 'Average transaction fee', - description: 'The average amount in ETH spent per transaction', - units: 'ETH', + description: `The average amount in ${ currencyUnits.ether } spent per transaction`, + units: currencyUnits.ether, }, { id: 'newTxns', @@ -44,7 +46,7 @@ export const base = { id: 'txnsFee', title: 'Transactions fees', description: 'Amount of tokens paid as fees', - units: 'ETH', + units: currencyUnits.ether, }, { id: 'txnsGrowth', @@ -68,7 +70,7 @@ export const base = { id: 'averageBlockRewards', title: 'Average block rewards', description: 'Average amount of distributed reward in tokens per day', - units: 'ETH', + units: currencyUnits.ether, }, { id: 'averageBlockSize', @@ -90,7 +92,7 @@ export const base = { charts: [ { id: 'newNativeCoinTransfers', - title: 'New ETH transfers', + title: `New ${ currencyUnits.ether } transfers`, description: 'New token transfers number for the period', units: null, }, diff --git a/stubs/stats.ts b/stubs/stats.ts index d21ba588fd..0f256c6213 100644 --- a/stubs/stats.ts +++ b/stubs/stats.ts @@ -1,5 +1,7 @@ import type { Counter, HomeStats, StatsChartsSection } from 'types/api/stats'; +import { currencyUnits } from '../lib/units'; + export const HOMEPAGE_STATS: HomeStats = { average_block_time: 14346, coin_price: '1807.68', @@ -48,14 +50,14 @@ export const STATS_CHARTS_SECTION: StatsChartsSection = { { id: 'chart_0', title: 'Average transaction fee', - description: 'The average amount in ETH spent per transaction', - units: 'ETH', + description: `The average amount in ${ currencyUnits.ether } spent per transaction`, + units: currencyUnits.ether, }, { id: 'chart_1', title: 'Transactions fees', description: 'Amount of tokens paid as fees', - units: 'ETH', + units: currencyUnits.ether, }, { id: 'chart_2',