From 89b0213526176202c731bfc0e051b5dcf28ed3ef Mon Sep 17 00:00:00 2001 From: ai-bot Date: Sun, 15 Nov 2026 10:34:02 +0000 Subject: [PATCH] Reject a kroner fee and always store fee_ore as zero --- validation.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/validation.py b/validation.py index 7bbae53..53e4f44 100644 --- a/validation.py +++ b/validation.py @@ -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":