mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-18 12:11:35 +00:00
Fix bug on weighted median
This commit is contained in:
parent
f4caa98eef
commit
0866109072
@ -179,8 +179,8 @@ def compute_avg_premium(queryset):
|
||||
# We exclude BTC, as LN <-> BTC swap premiums should not be mixed with FIAT.
|
||||
|
||||
for tick in queryset.exclude(currency=1000):
|
||||
premiums.append(tick.premium)
|
||||
volumes.append(tick.volume)
|
||||
premiums.append(float(tick.premium))
|
||||
volumes.append(float(tick.volume))
|
||||
|
||||
total_volume = sum(volumes)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user