ElementsProject / ElementsProject/peerswap

Swapout Charging 2x Fees? - Please I need to Understand what happened.

Open
#268 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
128
Forks
84
Avg merge
3h 1m
Merged PRs (30d)
1

Description

Hi, I did a BTC Swapout with a Peer:
Our channel has more than 5M of outbound liquidity.

`ID: 7ba0b4122bb3a9f5e35ac714d89104501fecfa588f354fd2cf4e1515df6ac75a
Created At: 2024-01-05 06:47:39
Asset: btc
Type: swap-out
Role: sender
State: State_SwapOutSender_AwaitTxConfirmation
Initiator Node ID: Friendspool⚡🍻 | 023e24602891c28a7872ea1ad5c1bb41abe4206ae1599bb981e3278a121e7895d6
Peer Node ID: Tiger 🐯 | 038607b58550d272ce8a058b77bc7a00e099687531359074bb600477f6bb7d1764
Amount: 2000000
Channel ID: 811731:986:0
Opening TX ID: https://mempool.space/tx/2f1376f69e753258eeb3832c9a228cca59cd5b9a4b0b656ebdd6778bddca0da8
Claim TX ID:
Cancel Message:
LND Channel ID: 892507673190858752`

Then the code sent this to him.
`⚡️ Sent 17,848 to Tiger 🐯 out Tiger 🐯 - Friendspool⚡🍻 023e2460`

First question: what is this amount? Is it a service fee? If it is, how do I set it?

The peer received:
`💵 Received 17.848 for “peerswap btc fee 811731x986x0 7ba0b4122bb3a9f5e35ac714d89104501fecfa588f354fd2cf4e1515df6ac75a” via Friendspool⚡🍻`

And then sent:
`⛓ (pending) Sent 2.007.985. Paid 7.985 fee. Sent to bc1qaneettmxu5ydrrcf0x6jy33efckdyfay08jxvj, bc1qr2saufdfz92pq62pxf3xtqdhqtqzudnlmg9a7mhsdyqzste6fyhsj68plf`

Then I received:
`⛓ Received 1,991,494`

And Paid:
`⚡️ Sent 2,000,000 to Tiger 🐯 out Tiger 🐯 - Friendspool⚡🍻 023e2460`

Second question: If my peer sent 2,007,985 and I received 1,991,494, on-chain fees were charged twice? Why?

Please help me to understand what happened.

Thanks
JVX

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.