Skip to content

Commit

Permalink
last commit added fees for inputs for melt transactions - this commit…
Browse files Browse the repository at this point in the history
… adds a blanace too low exception
  • Loading branch information
callebtc committed May 29, 2024
1 parent 4197d6c commit e360502
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cashu/wallet/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,8 @@ async def split_to_send(
"""
# select proofs that are not reserved and are in the active keysets of the mint
proofs = self.active_proofs(proofs)
if sum_proofs(proofs) < amount:
raise Exception("balance too low.")

# coin selection for swapping
# spendable_proofs, fees = await self._select_proofs_to_split(proofs, amount)
Expand Down

0 comments on commit e360502

Please sign in to comment.