Fix rate lookups.

This commit is contained in:
tecnovert 2024-05-07 20:35:22 +02:00
parent 47f7b4545e
commit 46d0bdde4b
No known key found for this signature in database
GPG key ID: 8ED6D8750C4E3F93

View file

@ -7375,7 +7375,7 @@ class BasicSwap(BaseApp):
return self._is_encrypted, self._is_locked return self._is_encrypted, self._is_locked
def lookupRates(self, coin_from, coin_to, output_array=False): def lookupRates(self, coin_from, coin_to, output_array=False):
self.log.debug('lookupRates {}, {}'.format(coin_from, Coins(coin_to).name)) self.log.debug('lookupRates {}, {}'.format(Coins(int(coin_from)).name, Coins(int(coin_to)).name))
rate_sources = self.settings.get('rate_sources', {}) rate_sources = self.settings.get('rate_sources', {})
ci_from = self.ci(int(coin_from)) ci_from = self.ci(int(coin_from))