HA looks good

This commit is contained in:
2023-06-29 09:48:11 +02:00
parent 4bfe5245a9
commit 4d4d609cea
13 changed files with 134 additions and 98 deletions

View File

@@ -125,8 +125,12 @@ class Exchange():
Returns an order if the order is active. Returns None if submit has failed.
"""
# calculate price for complete order fullfilment
prev=amount
amount=int(amount)
full_price=round(price*amount,2)
if amount<1:
# invalid order
return None
full_price=round(price*amount)
# Move resources into escrow