I keep wondering how Atomic Swaps could be used for the better of Bitcoin. A while ago I had the idea of
using Atomic Swaps to anonymize your coins - which seems to be both a bad and a good idea at the same time according to the replies.
Now I have another idea. What if we could use Atomic Swaps in order to minimize the volatility of Bitcoin for invoices? A decentralized mechanism could be developed.
How does it work?Let's say Bitcoin is worth $10k. A customer places an order worth $100 on a website and wants to pay with BTC. Upon placing the order, the customer has 90 seconds to send the 0.01BTC to the generated address with a minimum sat/byte requirement. The BTC will then instantly undergo an Atomic Swap from 0.01BTC to 100TUSD and in the end, when the txs all confirm and everything goes well, the business receives a total of 100TUSD in their wallet while the customer will also receive their ordered products.
What happens if there is no offer available to swap 100TUSD with 0.01BTC?[/b]
I'm thinking of two scenarios:
1. There could be a
main accepted stablecoin and multiple other stablecoins to be used for the swap in case there are no offers. If there is no 0.01BTC <-> 100TUSD offer, then the mechanism will go for a 0.01BTC <-> 100USDT swap. If this one does not work either, then go for the third option and so on until an offer is found.
2. There could be a 5-10 minute to wait for the offer to be accepted while the customer also has a chance to "Cancel transaction". If the transaction is canceled
before a Swap is initiated, then the customer receives their BTC back minus the fees.
What if there is no exact rate (100TUSD <-> 0.01BTC) offer available?If there is no exact rate offered, then the mechanism will look for and accept any close rate. Upon setting up the system, the seller has the option to set which is the minimum accepted rate difference with 1% being the minimum as a requirement. If a seller wants to accept a difference of 3% rate (which could mean receiving between a maximum of 103 and a minimum of 97TUSD through the swap), that is their choice.
What happens if the Atomic Swap doesn't work?I have had instances in my Komodo DEX's sessions in which the Atomic Swaps just didn't work. My BTC went through but the other peer did not have their tx confirmed in time. If that happens, the customer will get back the sum of BTC they sent as a refund and the order will not be processed by the website.
Now what I'm wondering is if such
decentralized mechanism could be developed within websites or there needs to be a separate software to do all the work. Please remember I am not a developer and this is just an idea. It could be good or it could be shit. But maybe there is a developer out there who could take this idea and turn it into a reality. In that case, Bitcoin could be safely used by
any business without having to worry about using a third party that converts your BTC into USD automatically or having to accept BTC and risking a big loss due to volatility. This mechanism could be developed as
both a decentralized payment gate for a business and an easy BTC to USD (and vice versa) swap for anyone who wants to do it. The more it's used, the higher the chances are for orders to find an offer.
Any critics are apreciated.