Fix auto accept total for reverse bids.

This commit is contained in:
tecnovert 2023-07-10 23:14:39 +02:00
parent 08d3f05c1c
commit 4464ca1746
No known key found for this signature in database
GPG key ID: 8ED6D8750C4E3F93

View file

@ -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