Merge pull request #9911 from f321x/fix_swap_exception_send_change_to_lightning

fix: exceptions when sending change to lightning
This commit is contained in:
ThomasV
2025-06-05 09:15:21 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -842,7 +842,7 @@ class SwapManager(Logger):
if lightning_amount_sat is None:
raise SwapServerError(_("Swap amount outside of providers limits") + ":\n"
+ _("min") + f": {self.get_min_amount()}\n"
+ _("max") + f": {self.get_max_amount()}")
+ _("max") + f": {self.get_provider_max_reverse_amount()}")
swap, invoice = await self.request_normal_swap(
transport,
lightning_amount_sat=lightning_amount_sat,