Reject a kroner fee and always store fee_ore as zero
This commit is contained in:
1 parent
06e550771c
commit
89b0213526
1 file changed
+4
@@ -264,6 +264,10 @@ def validate_transaction(payload, markets):
|
||||
errors[name] = error
|
||||
legs[name] = value
|
||||
|
||||
# A fee is entered in sats only; the column stays 0 (docs/spec.md section 3.2).
|
||||
if not _blank(data.get("fee_ore")):
|
||||
errors["fee_sats"] = "Avgift må berre førast i sats."
|
||||
|
||||
to_market_id = None
|
||||
if tx_type is not None:
|
||||
if tx_type == "admin_cost":
|
||||
|
||||
Reference in new issue
Block a user