Fix auto accept total for reverse bids.
This commit is contained in:
parent
08d3f05c1c
commit
4464ca1746
@ -4503,7 +4503,7 @@ class BasicSwap(BaseApp):
|
|||||||
|
|
||||||
total_bids_value_multiplier = opts.get('total_bids_value_multiplier', 1.0)
|
total_bids_value_multiplier = opts.get('total_bids_value_multiplier', 1.0)
|
||||||
if total_bids_value_multiplier > 0.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))
|
raise AutomationConstraint('Over remaining offer value {}'.format(offer.amount_from * total_bids_value_multiplier - total_bids_value))
|
||||||
|
|
||||||
num_not_completed = 0
|
num_not_completed = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user