scripts: Set offer min_bid_amount from offer template min_swap_amount value.

This commit is contained in:
tecnovert committed 2024-06-06 22:03:41 +02:00
1 parent 80852fd0ea
commit 3e4c3f10cf
4 files changed
+12 -5

No files matched your search

+1 -1
View File
@@ -115,7 +115,7 @@ def parseOfferFormData(swap_client, form_data, page_data, options={}):
errors.append('Amount From')
try:
if 'amt_bid_min' not in page_data:
if have_data_entry(form_data, 'amt_bid_min') is False:
if options.get('add_min_bid_amt', False) is True:
parsed_data['amt_bid_min'] = ci_from.chainparams_network()['min_amount']
else: