diff --git a/electrum/submarine_swaps.py b/electrum/submarine_swaps.py index 51a0f806d..3f0ae4432 100644 --- a/electrum/submarine_swaps.py +++ b/electrum/submarine_swaps.py @@ -238,7 +238,7 @@ class SwapManager(Logger): assert self.lnwatcher privkey = os.urandom(32) pubkey = ECPrivkey(privkey).get_public_key_bytes(compressed=True) - lnaddr, invoice = await self.lnworker.create_invoice(lightning_amount, 'swap', expiry=3600*24) + lnaddr, invoice = await self.lnworker.create_invoice(lightning_amount*1000, 'swap', expiry=3600*24) payment_hash = lnaddr.paymenthash preimage = self.lnworker.get_preimage(payment_hash) request_data = {