From 1f3d2dcd6276520e9b1433c8f9a737a79ec41147 Mon Sep 17 00:00:00 2001 From: 9qeklajc <9qeklajc> Date: Tue, 5 Aug 2025 22:04:20 +0200 Subject: [PATCH] dump fix --- router/payment/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/payment/helpers.py b/router/payment/helpers.py index e89583d3..a2d1f4cc 100644 --- a/router/payment/helpers.py +++ b/router/payment/helpers.py @@ -97,7 +97,7 @@ def check_token_balance(headers: dict, body: dict, max_cost_for_model: int) -> N token_obj.amount if token_obj.unit == "msat" else token_obj.amount * 1000 ) - if max_cost_for_model > amount_msat: + if max_cost_for_model - 100 > amount_msat: raise HTTPException( status_code=413, detail={