RoboSats / robosats

A simple and private bitcoin exchange
https://learn.robosats.com
GNU Affero General Public License v3.0
661 stars 135 forks source link

Add [Open a channel] as a [Swap in] option #1079

Open proof-of-reality opened 5 months ago

proof-of-reality commented 5 months ago

It would be awesome to buy inbound liquidity from robosats as a swap in since we only have a few options out there in the market (lightning+/amboss) - and I dont think they're quite privacy focused.

This option would allow users to swap in sats while also increasing network capacity.

Reckless-Satoshi commented 5 months ago

Thank you for suggesting this enhancement.

I also think it will be a very interesting usage for robots. I am not sure, however, whether coordinators will be willing to enable this option, as it has a high liquidity requirements in a high-risk node. In any case, it is a feature worth implementing.

proof-of-reality commented 5 months ago

I'm not sure how exactly the coordinator works under the hood but I was thinking more in terms of: the one selling liquidity would open a channel to the buyer. The coordinator I'd expect to only hold/release the safety deposit & the payment if that makes sense ..

Reckless-Satoshi commented 5 months ago

I'm not sure how exactly the coordinator works under the hood but I was thinking more in terms of: the one selling liquidity would open a channel to the buyer. The coordinator I'd expect to only hold/release the safety deposit & the payment if that makes sense ..

I see. Okay, I was imagining it as a "payout option" when buying Sats with fiat (same as submitting a LN invoice, or Onchain address). One could imagine an option could be to open a channel and send Sats over the new channel. This would be a super easy way to set up a node to send/receive by topping it up with fiat. However, it loads the coordinator with a lot of channel managing work.

Now I know this is not what you meant. It would simply be a market where one sells channels (inbound liquidity) for Sats in the same way as the current swaps work. Much easier to implement, and indeed, no technical issues. The only thing that has to be nailed is the UI/UX given that, currently, all existing swaps in robosats are already a bit confusing and adding the channel buy/sell option would only make things more confusing for new users :smile: