Interested to learn more about atomic swaps. I see a few examples of atomic swaps used between on chain BTC and LN (submarine swaps), BTC and liquid (side swap) and also within RGB. I also hear Samurai is going to implement atomic swaps with monero soon.
I'm just wondering if it's still in an experimental phase? Why all the fuss with drive chains if one can simply atomic swap into whatever chain they wish?
132 sats \ 11 replies \ @k00b 7 Jan
It’s not experimental. They’re actually just relatively simple contacts that guarantee one asset is swapped for another. Unfortunately they don’t do much more than that. They’re like adding bridges in a city and something like drivechains tries to make the buildings in the city taller so the city can house more people (among other things).
reply
21 sats \ 10 replies \ @OT OP 7 Jan
Wondering why its not more widely used if its a simple contract.
Wouldn't projects that want to attach themselves to bitcoins glory all be integrating it instead of going through an exchange?
reply
Monero has atomic swaps with Bitcoin, but only in the BTC->XMR direction.
reply
I’m not sure what you mean that they only work in one direction. If Alice has some Monero, Bob has some Bitcoin, and they do an atomic swap, wouldn’t Alice have some Bitcoin and Bob have some Monero after that? So, whenever there is a swap, it’s in one direction for one participant, and the other direction for the other?
reply
42 sats \ 1 reply \ @okpj 7 Jan
I made an error in my initial breakdown so deleted.
Basically, in its current state, you can’t “buy” bitcoin with XMR. You must “sell” XMR for bitcoin, and the actual on-chain swap has to be initiated by the Bitcoin/buy side. The difference may seem trivial (Bob and Alice each exchange their funds in the end) but it’s an important distinction.
reply
Ah thanks for clarifying. Now it makes sense to me how it could be only "one-way"
reply
exactly. if it's only in one direction at the end user level... whose monero are they getting? Is it a nominal atomic swap that actually uses a centralized wallet?
reply
deleted by author
reply
deleted by author
reply
They don't want to have it both ways?
reply
I made an error in my initial attempt to break it down, so deleted.
The goal is definitely to have it work both ways (at least it was in 2021, tbh I don’t follow Monero development closely) but it will take a hard fork of Monero for it to work.
Here is a link to a post by Comit breaking it down, but basically in its current form you cannot “buy” Bitcoin with XMR. You must “offer” then “sell” your XMR for Bitcoin. The actual on-chain swap must be initiated by the Bitcoin/buy side.
reply
deleted by author
reply