mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-31 02:21:35 +00:00
Fix info API wording and magnitudes, settled -> contracted
This commit is contained in:
parent
dbb86657ac
commit
78f5c1cbdc
12
api/views.py
12
api/views.py
@ -648,16 +648,16 @@ class InfoView(ListAPIView):
|
|||||||
|
|
||||||
queryset = MarketTick.objects.all()
|
queryset = MarketTick.objects.all()
|
||||||
if not len(queryset) == 0:
|
if not len(queryset) == 0:
|
||||||
volume_settled = []
|
volume_contracted = []
|
||||||
for tick in queryset:
|
for tick in queryset:
|
||||||
volume_settled.append(tick.volume)
|
volume_contracted.append(tick.volume)
|
||||||
lifetime_volume_settled = int(sum(volume_settled) * 100000000)
|
lifetime_volume = sum(volume_contracted)
|
||||||
else:
|
else:
|
||||||
lifetime_volume_settled = 0
|
lifetime_volume = 0
|
||||||
|
|
||||||
context["today_avg_nonkyc_btc_premium"] = round(avg_premium, 2)
|
context["today_avg_nonkyc_btc_premium"] = round(avg_premium, 2)
|
||||||
context["today_total_volume"] = total_volume
|
context["today_volume"] = total_volume *100000000
|
||||||
context["lifetime_satoshis_settled"] = lifetime_volume_settled
|
context["lifetime_volume"] = lifetime_volume
|
||||||
context["lnd_version"] = get_lnd_version()
|
context["lnd_version"] = get_lnd_version()
|
||||||
context["robosats_running_commit_hash"] = get_commit_robosats()
|
context["robosats_running_commit_hash"] = get_commit_robosats()
|
||||||
context["alternative_site"] = config("ALTERNATIVE_SITE")
|
context["alternative_site"] = config("ALTERNATIVE_SITE")
|
||||||
|
@ -41,8 +41,8 @@ export default class BottomBar extends Component {
|
|||||||
active_robots_today: 0,
|
active_robots_today: 0,
|
||||||
fee: 0,
|
fee: 0,
|
||||||
today_avg_nonkyc_btc_premium: 0,
|
today_avg_nonkyc_btc_premium: 0,
|
||||||
today_total_volume: 0,
|
today_volume: 0,
|
||||||
lifetime_satoshis_settled: 0,
|
lifetime_volume: 0,
|
||||||
robosats_running_commit_hash: '000000000000000',
|
robosats_running_commit_hash: '000000000000000',
|
||||||
openProfile: false,
|
openProfile: false,
|
||||||
profileShown: false,
|
profileShown: false,
|
||||||
@ -130,13 +130,13 @@ export default class BottomBar extends Component {
|
|||||||
<Divider/>
|
<Divider/>
|
||||||
<ListItem>
|
<ListItem>
|
||||||
<ListItemIcon><EqualizerIcon/></ListItemIcon>
|
<ListItemIcon><EqualizerIcon/></ListItemIcon>
|
||||||
<ListItemText primary={this.state.today_total_volume+" BTC"} secondary="Today traded volume"/>
|
<ListItemText primary={pn(this.state.today_volume)+" Sats"} secondary="Today contracted volume"/>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
|
|
||||||
<Divider/>
|
<Divider/>
|
||||||
<ListItem>
|
<ListItem>
|
||||||
<ListItemIcon><EqualizerIcon/></ListItemIcon>
|
<ListItemIcon><EqualizerIcon/></ListItemIcon>
|
||||||
<ListItemText primary={pn(this.state.lifetime_satoshis_settled)+" Sats"} secondary="Lifetime settled volume"/>
|
<ListItemText primary={pn(this.state.lifetime_volume)+" BTC"} secondary="Lifetime contracted volume"/>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
|
|
||||||
<Divider/>
|
<Divider/>
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user