diff --git a/resources/views/components/stats/insights/annual.blade.php b/resources/views/components/stats/insights/annual.blade.php index baf46d309..f47a0511b 100644 --- a/resources/views/components/stats/insights/annual.blade.php +++ b/resources/views/components/stats/insights/annual.blade.php @@ -37,7 +37,11 @@
@lang('pages.statistics.insights.annual.header.fees') - {{ ExplorerNumberFormatter::currencyWithDecimals($year['fees'], Network::currency(), 8) }} + @if ($year['fees'] < 1) + {{ ExplorerNumberFormatter::currencyWithDecimals($year['fees'], Network::currency(), 4) }} + @else + {{ ExplorerNumberFormatter::currencyWithDecimals($year['fees'], Network::currency(), 2) }} + @endif
@@ -84,7 +88,11 @@
@lang('pages.statistics.insights.annual.header.fees'): - {{ ExplorerNumberFormatter::currencyWithDecimals($year['fees'], Network::currency(), 8) }} + @if ($year['fees'] < 1) + {{ ExplorerNumberFormatter::currencyWithDecimals($year['fees'], Network::currency(), 4) }} + @else + {{ ExplorerNumberFormatter::currencyWithDecimals($year['fees'], Network::currency(), 2) }} + @endif
@@ -127,7 +135,11 @@
@lang('pages.statistics.insights.annual.header.fees'): - {{ ExplorerNumberFormatter::currencyWithDecimals($year['fees'], Network::currency(), 8) }} + @if ($year['fees'] < 1) + {{ ExplorerNumberFormatter::currencyWithDecimals($year['fees'], Network::currency(), 4) }} + @else + {{ ExplorerNumberFormatter::currencyWithDecimals($year['fees'], Network::currency(), 2) }} + @endif