client: Hide offers where coins are not enabled.

Better rate calculation.
This commit is contained in:
tecnovert
2021-02-15 23:49:18 +02:00
parent 5eb34a8c4b
commit 6516c6d138
3 changed files with 39 additions and 9 deletions

View File

@@ -5134,6 +5134,12 @@ class BasicSwap(BaseApp):
if offset is not None:
q = q.offset(offset)
for row in q:
# Show offers for enabled coins only
try:
ci_from = self.ci(row.coin_from)
ci_to = self.ci(row.coin_to)
except Exception as e:
continue
rv.append(row)
return rv
finally: