Skip to content

Commit

Permalink
settings
Browse files Browse the repository at this point in the history
  • Loading branch information
lollerfirst committed Nov 5, 2024
1 parent 048a435 commit 95c1156
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cashu/mint/ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,8 @@ async def mint_quote(self, quote_request: PostMintQuoteRequest) -> MintQuote:
):
raise NotAllowedError("Backend does not support descriptions.")

if settings.mint_max_balance:
# MINT_MAX_BALANCE refers to sat (for now)
if settings.mint_max_balance and unit == Unit.sat:
# get next active keyset for unit
active_keyset: MintKeyset = next(
filter(lambda k: k.active and k.unit == unit, self.keysets.values())
Expand Down

0 comments on commit 95c1156

Please sign in to comment.