Liquidity Swaps

Maybe change from fixed limit in sats to percentage, and bump it to 2%?

1 Like

In the RTL video the guy had to go down to 10k sats before he could get the rebalance to work. Later he has to up the fees to handle a larger amount.

OK…rebalnced worked between ACINQ and Megalith LSP…both of which are private. It appears I might need to reopen both those channels to public…lightning challenge!!

@Fletcher …I tried smaller amounts…still no route with 10000 sats and 2%.

I’ll keep fleshing it out

1 Like

\o/ great success \o/

Ok…I had to rebalanced once between ACINQ and Megalith. Then I rebalanced from bcjedi and Megalith a few time. Seem to work that way. Dont know how much it cost me but worked

Challenge complete…but dont ask me to explain it

1 Like

These are usually quite low fee. The 2% is just the max fee (it won’t pay more than that). I don’t recall ever paying more than a 2% fee, but maybe for smaller quantities that could matter (if someone on the route has a larger minimum fee in sats configured).

2 Likes

Alby liked that too…

This is the part I don’t understand. When you add inbound liquidity to a channel, aren’t you just “giving away” your sats to that peer? Especially, if the channel will only be used by me for incoming Ocean payment transactions?

This is like working for a company who offers to put 1000 into your account every week, but only if you send them 1000 dollars beforehand each time. How is lightning any different? What am I missing?

You are sending the sats to yourself, so you are not giving them away. Think of channels like beads on a wire, where the beads may be on your side or your partner’s side. You send X sats to your partner’s side, he sends X sats to one of his partners on another channel, and so-on until it arrives at the destination. The destination could be another lightning node that you own, or it may be Boltz, who exchanges it for X sats on the base layer, sending them to an address you provide.

For the channel connecting my LND and CL nodes, sure, I get that. But I don’t own ACINQ, so wouldn’t any sats I send to them (via purchasing inbound liquidity) be theirs?

Yes, but ACINQ isn’t the final destination. They can only claim those sats if they send the same number of sats (minus their fee they get to keep) to the next node in the route you constructed. Only when every node in your route agrees and signs off on it do any sats leave your node. And since Boltz (who is the destination, for example) has agreed to pay you the same number of sats on the base layer (minus their exchange fee they get to keep), the sats you sent end up in your custody (minus the fees collected by the various nodes along the route)

BTW, what I am describing isn’t a liquidity swap. It is just sending sats to yourself over Lightning to open up inbound liquidity on your channels.