Browse Source

Fix auto accept total for reverse bids.

pull/36/head
tecnovert 11 months ago
parent
commit
4464ca1746
No known key found for this signature in database GPG Key ID: 8ED6D8750C4E3F93
  1. 2
      basicswap/basicswap.py

2
basicswap/basicswap.py

@ -4503,7 +4503,7 @@ class BasicSwap(BaseApp):
total_bids_value_multiplier = opts.get('total_bids_value_multiplier', 1.0)
if total_bids_value_multiplier > 0.0:
if total_bids_value + bid.amount > offer.amount_from * total_bids_value_multiplier:
if total_bids_value + bid_amount > offer.amount_from * total_bids_value_multiplier:
raise AutomationConstraint('Over remaining offer value {}'.format(offer.amount_from * total_bids_value_multiplier - total_bids_value))
num_not_completed = 0

Loading…
Cancel
Save