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={