From 5d66e56f2a9102106ed7476f8f4bfcd1e36edf71 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Fri, 8 Sep 2023 08:42:04 -0700 Subject: [PATCH] Improve hodl invoice description --- api/logics.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/logics.py b/api/logics.py index a19ffe31..f8b182f1 100644 --- a/api/logics.py +++ b/api/logics.py @@ -1248,9 +1248,9 @@ class Logics: bond_satoshis = int(order.last_satoshis * order.bond_size / 100) if user.robot.wants_stealth: - description = f"This payment WILL FREEZE IN YOUR WALLET, check on the website if it was successful. It will automatically return unless you cheat or cancel unilaterally. Payment reference: {order.reference}" + description = f"Payment reference: {order.reference}. This payment WILL FREEZE IN YOUR WALLET, check on RoboSats if the lock was successful. It will be unlocked (fail) unless you cheat or cancel unilaterally." else: - description = f"RoboSats - Publishing '{str(order)}' - Maker bond - This payment WILL FREEZE IN YOUR WALLET, check on the website if it was successful. It will automatically return unless you cheat or cancel unilaterally." + description = f"RoboSats - Publishing '{str(order)}' - Maker bond - This payment WILL FREEZE IN YOUR WALLET, check on RoboSats if the lock was successful. It will be unlocked (fail) unless you cheat or cancel unilaterally." # Gen hold Invoice try: @@ -1368,11 +1368,11 @@ class Logics: bond_satoshis = int(order.last_satoshis * order.bond_size / 100) pos_text = "Buying" if cls.is_buyer(order, user) else "Selling" if user.robot.wants_stealth: - description = f"This payment WILL FREEZE IN YOUR WALLET, check on the website if it was successful. It will automatically return unless you cheat or cancel unilaterally. Payment reference: {order.reference}" + description = f"Payment reference: {order.reference}. This payment WILL FREEZE IN YOUR WALLET, check on RoboSats if the lock was successful. It will be unlocked (fail) unless you cheat or cancel unilaterally." else: description = ( f"RoboSats - Taking 'Order {order.id}' {pos_text} BTC for {str(float(order.amount)) + Currency.currency_dict[str(order.currency.currency)]}" - + " - Taker bond - This payment WILL FREEZE IN YOUR WALLET, check on the website if it was successful. It will automatically return unless you cheat or cancel unilaterally." + + " - Taker bond - This payment WILL FREEZE IN YOUR WALLET, check on RoboSats if the lock was successful. It will be unlocked (fail) unless you cheat or cancel unilaterally." ) # Gen hold Invoice @@ -1467,7 +1467,7 @@ class Logics: order.log(f"Escrow invoice amount is calculated as {escrow_satoshis} Sats") if user.robot.wants_stealth: - description = f"This payment WILL FREEZE IN YOUR WALLET, check on the website if it was successful. It will automatically return unless you cheat or cancel unilaterally. Payment reference: {order.reference}" + description = f"Payment reference: {order.reference}. This payment WILL FREEZE IN YOUR WALLET, check on RoboSats if the lock was successful. It will be unlocked (fail) unless you cheat or cancel unilaterally." else: description = f"RoboSats - Escrow amount for '{str(order)}' - It WILL FREEZE IN YOUR WALLET. It will be released to the buyer once you confirm you received the fiat. It will automatically return if buyer does not confirm the payment."