forked from LBRYCommunity/lbry-sdk
fix rate in test
This commit is contained in:
parent
5441379f38
commit
6b1d11a04d
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ class DummyExchangeRateManager(object):
|
|||
def __init__(self, rates):
|
||||
self.market_feeds = [DummyBTCLBCFeed(), DummyUSDBTCFeed()]
|
||||
for feed in self.market_feeds:
|
||||
feed.rate = rates[feed.market]
|
||||
feed.rate = ExchangeRate(feed, rates[feed]['spot'], rates[feed]['ts'])
|
||||
|
||||
def convert_currency(self, from_currency, to_currency, amount):
|
||||
log.info("Converting %f %s to %s" % (amount, from_currency, to_currency))
|
||||
|
|
Loading…
Reference in a new issue