From 2f5bb6e9ae36c732891d05e7cc3ec933ae1addb2 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Mon, 27 Jun 2022 07:22:10 -0700 Subject: [PATCH] Add explicit min/max amounts on mining fee rate error --- api/logics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/logics.py b/api/logics.py index 2a264972..146aabbe 100644 --- a/api/logics.py +++ b/api/logics.py @@ -662,15 +662,15 @@ class Logics: if mining_fee_rate: # not a valid mining fee - if float(mining_fee_rate) <= 1: + if float(mining_fee_rate) < 1: return False, { "bad_address": - "The mining fee is too low." + "The mining fee is too low, must be higher than 1 Sat/vbyte" } elif float(mining_fee_rate) > 50: return False, { "bad_address": - "The mining fee is too high." + "The mining fee is too high, must be less than 50 Sats/vbyte" } order.payout_tx.mining_fee_rate = float(mining_fee_rate) # If not mining ee provider use backend's suggested fee rate