BTC instead of Sats on Stats For Nerds (#98)

* Update views.py

* Update BottomBar.js
This commit is contained in:
ibertario 2022-05-01 18:09:17 +00:00 committed by GitHub
parent 7af3b13050
commit b36155fbd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -744,7 +744,7 @@ class InfoView(ListAPIView):
lifetime_volume = 0
context["last_day_nonkyc_btc_premium"] = round(avg_premium, 2)
context["last_day_volume"] = total_volume *100000000
context["last_day_volume"] = total_volume
context["lifetime_volume"] = lifetime_volume
context["lnd_version"] = get_lnd_version()
context["robosats_running_commit_hash"] = get_commit_robosats()
@ -844,4 +844,4 @@ class LimitView(ListAPIView):
'max_bondless_amount': max_bondless_trade * exchange_rate,
}
return Response(payload, status.HTTP_200_OK)
return Response(payload, status.HTTP_200_OK)

View File

@ -142,7 +142,7 @@ class BottomBar extends Component {
<Divider/>
<ListItem>
<ListItemIcon><EqualizerIcon/></ListItemIcon>
<ListItemText primary={pn(this.state.last_day_volume)+" Sats"} secondary={t("24h contracted volume")}/>
<ListItemText primary={pn(this.state.last_day_volume)+" BTC"} secondary={t("24h contracted volume")}/>
</ListItem>
<Divider/>