From b55d126a0a12f503599589c3f0b21e6420c4813c Mon Sep 17 00:00:00 2001
From: nahuhh <50635951+nahuhh@users.noreply.github.com>
Date: Fri, 17 Jan 2025 11:25:06 +0000
Subject: [PATCH] ui: reword min bid -> min purchase

---
 basicswap/templates/offer.html         | 2 +-
 basicswap/templates/offer_confirm.html | 2 +-
 basicswap/templates/offer_new_1.html   | 2 +-
 basicswap/templates/offer_new_2.html   | 2 +-
 basicswap/ui/page_offers.py            | 4 ++--
 scripts/createoffers.py                | 2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/basicswap/templates/offer.html b/basicswap/templates/offer.html
index fca5910..0d1be2d 100644
--- a/basicswap/templates/offer.html
+++ b/basicswap/templates/offer.html
@@ -137,7 +137,7 @@
             <td class="py-3 px-6 bold">{{ data.amt_to }} {{ data.tla_to }}</td>
            </tr>
            <tr class="opacity-100 text-gray-500 dark:text-gray-100 hover:bg-coolGray-200 dark:hover:bg-gray-600">
-            <td class="py-3 px-6 bold">Minimum Bid Amount</td>
+            <td class="py-3 px-6 bold">Minimum Purchase</td>
             <td class="py-3 px-6">{{ data.amt_bid_min }} {{ data.tla_from }}</td>
            </tr>
            <tr class="opacity-100 text-gray-500 dark:text-gray-100 hover:bg-coolGray-200 dark:hover:bg-gray-600">
diff --git a/basicswap/templates/offer_confirm.html b/basicswap/templates/offer_confirm.html
index 7adf3e3..c9c941c 100644
--- a/basicswap/templates/offer_confirm.html
+++ b/basicswap/templates/offer_confirm.html
@@ -293,7 +293,7 @@
                 <div class="w-full md:flex-1 p-3">
                   <div class="flex flex-wrap -m-3">
                     <div class="w-full md:w-1/2 p-3">
-                      <p class="mb-1.5 font-medium text-base text-coolGray-800 dark:text-white">Minimum Bid Amount</p>
+                      <p class="mb-1.5 font-medium text-base text-coolGray-800 dark:text-white">Minimum Purchase</p>
                       <div class="relative">
                         <div class="flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none">
                         {{ select_bid_amount_svg | safe }}
diff --git a/basicswap/templates/offer_new_1.html b/basicswap/templates/offer_new_1.html
index 27833a4..0165b0a 100644
--- a/basicswap/templates/offer_new_1.html
+++ b/basicswap/templates/offer_new_1.html
@@ -274,7 +274,7 @@ if (document.readyState === 'loading') {
                 <div class="w-full md:flex-1 p-3">
                   <div class="flex flex-wrap -m-3">
                     <div class="w-full md:w-1/2 p-3">
-                      <p class="mb-1.5 font-medium text-base dark:text-white text-coolGray-800">Minimum Bid Amount</p>
+                      <p class="mb-1.5 font-medium text-base dark:text-white text-coolGray-800">Minimum Purchase</p>
                       <div class="relative">
                         <div class="flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none">
                         {{ select_bid_amount_svg | safe }}
diff --git a/basicswap/templates/offer_new_2.html b/basicswap/templates/offer_new_2.html
index 383da82..73169d3 100644
--- a/basicswap/templates/offer_new_2.html
+++ b/basicswap/templates/offer_new_2.html
@@ -279,7 +279,7 @@
                 <div class="w-full md:flex-1 p-3">
                   <div class="flex flex-wrap -m-3">
                     <div class="w-full md:w-1/2 p-3">
-                      <p class="mb-1.5 font-medium text-base text-coolGray-800 dark:text-white">Minimum Bid Amount</p>
+                      <p class="mb-1.5 font-medium text-base text-coolGray-800 dark:text-white">Minimum Purchase</p>
                       <div class="relative">
                         <div class="flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none">
                         {{ select_bid_amount_svg | safe }}
diff --git a/basicswap/ui/page_offers.py b/basicswap/ui/page_offers.py
index 9f76e41..59e6a6d 100644
--- a/basicswap/ui/page_offers.py
+++ b/basicswap/ui/page_offers.py
@@ -131,9 +131,9 @@ def parseOfferFormData(swap_client, form_data, page_data, options={}):
                 parsed_data["amt_bid_min"] < 0
                 or parsed_data["amt_bid_min"] > parsed_data["amt_from"]
             ):
-                errors.append("Minimum Bid Amount out of range")
+                errors.append("Minimum Purchase Quantity out of range")
     except Exception:
-        errors.append("Minimum Bid Amount")
+        errors.append("Minimum Purchase Quantity")
 
     if have_data_entry(form_data, "rate") and not have_data_entry(form_data, "amt_to"):
         parsed_data["rate"] = ci_to.make_int(form_data["rate"], r=1)
diff --git a/scripts/createoffers.py b/scripts/createoffers.py
index 0859e3a..ac7bc33 100755
--- a/scripts/createoffers.py
+++ b/scripts/createoffers.py
@@ -31,7 +31,7 @@ Create offers
             # Optional
             "enabled": Set to false to ignore offer template.
             "swap_type": Type of swap, defaults to "adaptor_sig"
-            "min_swap_amount": Sets "amt_bid_min" on the offer, minimum valid bid when offer amount is variable.
+            "min_swap_amount": Sets "amt_bid_min" on the offer, minimum purchase quantity when offer amount is variable.
             "amount_step": If set offers will be created for amount values between "amount" and "min_coin_from_amt" in decrements of "amount_step".
         },
         ...