Finish implementation and tests for the cheat system #3

Closed
m wants to merge 67 commits from cheat-refactor into master
2 changed files with 7 additions and 1 deletions
Showing only changes of commit 35cf84998e - Show all commits

View File

@ -345,6 +345,8 @@ class Agora(object):
public_ads = public_ad_dict_btc[currency.lower()]
except KeyError:
continue
if not public_ads:
continue
if xmr:
if asset == "XMR":
new_margin = self.autoprice(public_ads, currency)

View File

@ -46,7 +46,11 @@ class Transactions(object):
inside = data["data"]
txid = inside["id"]
try:
txtype = inside["type"]
except KeyError:
self.log.error("Typeless event: {id}", id=txid)
return
if txtype == "card_payment":
self.log.info("Ignoring card payment: {id}", id=txid)
return