Libraries refactor and add some sinks #4

Closed
m wants to merge 136 commits from library-refactor into master
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 1a9a9980e2 - Show all commits

View File

@ -385,7 +385,7 @@ class Agora(object):
base_currency_price = rates base_currency_price = rates
for ad in ads: for ad in ads:
price = float(ad[2]) price = float(ad[2])
rate = round(price / base_currency_price, 2) rate = round(price / base_currency_price, 4)
ad.append(asset) ad.append(asset)
ad.append(rate) ad.append(rate)
return sorted(ads, key=lambda x: x[2]) return sorted(ads, key=lambda x: x[2])