From 79b3afad0c20c8432bb4c8c600cdd357c0d7ee9f Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Wed, 22 May 2024 15:35:26 +0200 Subject: [PATCH] setting --- cashu/core/settings.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cashu/core/settings.py b/cashu/core/settings.py index 9e505c41..f28bb4b4 100644 --- a/cashu/core/settings.py +++ b/cashu/core/settings.py @@ -89,6 +89,7 @@ class MintLimits(MintSettings): ) mint_max_request_length: int = Field( default=1000, + gt=0, title="Maximum request length", description="Maximum length of REST API request arrays.", ) @@ -100,16 +101,21 @@ class MintLimits(MintSettings): ) mint_max_peg_in: int = Field( default=None, + gt=0, title="Maximum peg-in", description="Maximum amount for a mint operation.", ) mint_max_peg_out: int = Field( default=None, + gt=0, title="Maximum peg-out", description="Maximum amount for a melt operation.", ) mint_max_balance: int = Field( - default=None, title="Maximum mint balance", description="Maximum mint balance." + default=None, + gt=0, + title="Maximum mint balance", + description="Maximum mint balance.", )