Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BTC instead of Sats on Stats For Nerds #98

Merged
merged 2 commits into from May 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ def get(self, request):
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()
Expand Down Expand Up @@ -829,4 +829,4 @@ def get(self, request):
'max_bondless_amount': max_bondless_trade * exchange_rate,
}

return Response(payload, status.HTTP_200_OK)
return Response(payload, status.HTTP_200_OK)
2 changes: 1 addition & 1 deletion frontend/src/components/BottomBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,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/>
Expand Down