Browse Source
Fix auto accept total for reverse bids.
pull/36/head
tecnovert
11 months ago
No known key found for this signature in database
GPG Key ID: 8ED6D8750C4E3F93
1 changed files with
1 additions and
1 deletions
-
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 |
|
|
|