Hi,
this is kind of a generic question.
Let’s consider a case where I have one public chain, and I want to have an ERC20. Cool. Now, I want to be able to exchange tokens from this ERC20 with another ERC20 in the ethereum mainnet.
Are atomic swaps a good idea? If so, how should it work exactly?
I’ve heard about Cosmos as well (https://cosmos.network/).
Atomic swaps are a very useful primitive. As for how they can be implemented, here is an ongoing discussion about an implementation that could be included in OpenZeppelin: