Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"native" swap contracts #1287

Open
ca333 opened this issue May 18, 2022 · 1 comment
Open

"native" swap contracts #1287

ca333 opened this issue May 18, 2022 · 1 comment

Comments

@ca333
Copy link

ca333 commented May 18, 2022

For swaps between assets from the same protocol (eth, bsc, cosmos, etc.) we can leverage/utilize protocol-specific atomic swap contracts/modules/libs for efficiency increase (tx fees, speed, etc.). e.g. if alice swaps an erc20 asset for an erc20 asset it would make sense to utilize a native erc20toerc20 atomic swap contract instead of the atomicDEX specific swap protocol as it saves money/time.

For certain protocols we should additionally explore potential (non ponzi-based) "AMM" tech adoption and possible evolution into hybrid arch with a combination/fusion of both order book and liquidity pool model. This specific topic likely requires separate issue ticket, however I brought it up here since it seems relevant.

inspiration:
https://github.com/tendermint/liquidity (interesting/envisions such a hybrid model)
uniswap, pancake swap, osmosis, etc.
https://betterprogramming.pub/uniswap-smart-contract-breakdown-ea20edf1a0ff
https://cryptomarketpool.com/trustless-token-swap-in-a-solidity-smart-contract/

@artemii235
Copy link
Member

Thanks for creating the issue!
I propose to start with UI/UX concepts to understand how it should work/look in general in our GUIs. API implementation will also depend on this. cc @tonymorony

Additional idea on this topic: in case users want to e.g. buy BTC-BEP20 for USDT-BEP20, we can show them an offer to buy native BTC directly using atomic swaps. It might be a good option for some of them if their final goal is to receive actual BTC. This way, they can avoid using a separate BTC-BEP20/BTC bridge, which can also save some funds on transaction fees.

@onur-ozkan onur-ozkan changed the title [feature request] "native" swap contracts "native" swap contracts Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants