Skip to content

Commit

Permalink
Fix decimal fees and exchange stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Reckless-Satoshi committed Jan 28, 2024
1 parent 0f8ebdc commit 550cb7e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions frontend/src/components/Dialogs/Coordinator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/Dialogs/Exchange.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down

0 comments on commit 550cb7e

Please sign in to comment.