Fix decimal fees and exchange stats

This commit is contained in:
Reckless_Satoshi 2024-01-28 21:06:54 +00:00
parent 0f8ebdc0b1
commit 550cb7e0e8
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
3 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@
"@mui/material": "^5.15.3",
"@mui/system": "^5.15.3",
"@mui/x-data-grid": "^6.19.2",
"@mui/x-date-pickers": "^6.19.2"
"@mui/x-date-pickers": "^6.19.2",
"@nivo/core": "^0.84.0",
"@nivo/line": "^0.84.0",
"base-ex": "^0.8.1",

View File

@ -391,13 +391,13 @@ const CoordinatorDialog = ({ open = false, onClose, network, shortAlias }: Props
<Grid container>
<Grid item xs={6}>
<ListItemText secondary={t('Maker fee')}>
{(coordinator?.info?.maker_fee ?? 0 * 100).toFixed(3)}%
{((coordinator?.info?.maker_fee ?? 0) * 100).toFixed(3)}%
</ListItemText>
</Grid>
<Grid item xs={6}>
<ListItemText secondary={t('Taker fee')}>
{(coordinator?.info?.taker_fee ?? 0 * 100).toFixed(3)}%
{((coordinator?.info?.taker_fee ?? 0) * 100).toFixed(3)}%
</ListItemText>
</Grid>
</Grid>

View File

@ -155,7 +155,7 @@ const ExchangeDialog = ({ open = false, onClose }: Props): JSX.Element => {
flexWrap: 'wrap',
}}
>
{pn(federation.exchange.info.last_day_volume)}
{pn(federation.exchange.info.last_day_volume.toFixed(8))}
<BitcoinSignIcon sx={{ width: '0.6em', height: '0.6em' }} color='text.secondary' />
</div>
</ListItemText>
@ -176,7 +176,7 @@ const ExchangeDialog = ({ open = false, onClose }: Props): JSX.Element => {
flexWrap: 'wrap',
}}
>
{pn(federation.exchange.info.lifetime_volume)}
{pn(federation.exchange.info.lifetime_volume.toFixed(8))}
<BitcoinSignIcon sx={{ width: '0.6em', height: '0.6em' }} color='text.secondary' />
</div>
</ListItemText>