[Mint] Refactor set_melt_quote_paid
#514
Labels
code health
Code health
good first issue
A great way to get into Cashu development
mint
About the Nutshell mint
In various parts of the mint code base, we repeat these steps to set a melt quote as paid. This should be refactored into its own method
ledger.set_melt_quote_paid(fee: Optional[Amount] = None)
that should be called instead.Note:
set_melt_quote_paid
should check if the unit for thefee: Amount
argument is the same asquote.unit
and error otherwise.Example code:
The text was updated successfully, but these errors were encountered: