Fix bug on weighted median

This commit is contained in:
Reckless_Satoshi 2022-06-29 02:41:59 -07:00
parent f4caa98eef
commit 0866109072
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -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)