1
0

Merge pull request #7308 from bitromortac/2105-fix-cmd-reverse-swap

swaps: fix satoshi conversion bug
This commit is contained in:
ghost43
2021-06-05 05:35:46 +00:00
committed by GitHub

View File

@@ -1199,7 +1199,7 @@ class Commands:
else:
lightning_amount_sat = satoshis(lightning_amount)
claim_fee = sm.get_claim_fee()
onchain_amount_sat = satoshis(onchain_amount + claim_fee)
onchain_amount_sat = satoshis(onchain_amount) + claim_fee
success = await wallet.lnworker.swap_manager.reverse_swap(
lightning_amount_sat=lightning_amount_sat,
expected_onchain_amount_sat=onchain_amount_sat,