A Back End for Front-End Implementations
AtomicDEX software is built to have a core component that can serve many front-end graphical-user interfaces (GUIs).
The core component is called MarketMaker 2.0, or MM2 for brevity.
Various front-end GUIs exist in our ecosystem, some of them built by the volunteer efforts of our community members. We are also working to release a Komodo-supported User Experience and User Interface, in coordination with Ideas By Nature, a UX/UI design firm.
This also allows developers and entrepreneurs the freedom to create your own front-end implementation for your own purposes. For example, you can create your own front-end implementation that acts on the same atomic-swap network as other communities. Or, you could make a front-end implementation for your own private network.
The documentation here only concerns the core component, MarketMaker 2.0 (MM2). This component is typically accessed via an API or a terminal interface.
Documentation for a GUI for MM2 is not yet available.
New Features of MarketMaker 2.0 (Desktop)
Users who worked with the previous version of the MM software, MarketMaker 1.0 (MM1), will note several differences with the new release.
New Off-Chain Technology
MM1 used nanomsg technology for its off-chain network layer (e.g. orderbook propagation, ordermatching, client traffic routing, and other technologies that are not active on the blockchain itself).
MM2 replaced nanomsg with Rust TCP implementation and also uses
libtorrent as a torrent/DHT network system for the off-chain network layer. This p2p software is widely used and highly reliable, granting a greater development experience.
MM1 was based on ANSI C.
For MM2 we ported the system to Rust, utilizing the cargo ecosystem. Internal benchmarks prove this to be more efficient. Furthermore, the Rust code base supports mobile devices, including Android & iOS. This is a key benefit, as we expect mobile devices to be a key component of MM2 adoption.
Multi-Threading and Other Multi-Tasking Improvements
MM1 had limited multi-tasking capabilities. Also, the bob-side technology was not reliable when using MM1 in lite mode (SPV), wherein blockchain syncing is not required for end-users.
MM2 has multi-threading. This allows it to reliably manage multiple concurrent requests.
MarketMaker 2.0 for Mobile (New!)
Komodo is pleased to announce that MarketMaker 2.0 is preparing for release on compatible Android and iOS devices. The software is currently undergoing quality tests and external reviews before publication.
Notable aspects of the Mobile MM2 software include:
- Optimization for low-data usage and CPU consumption
- Low storage requirements (less than 50 MB)
- Integrates seamlessly with the desktop MarketMaker 2.0 software
Through the Komodo API, mobile-device developers can integrate MM2 for Mobile into other software packages.
Please reach out to our team on Discord to be involved with the software release.
Add Your Coin to MarketMaker 2.0
All coins that are built on the BTC and ETH core software can be added to MarketMaker 2.0 (MM2) quickly and simply. Coins built on other software frameworks may be able to be added as well, depending on specific details. Specifically, a coin must support functionality that is similar to the "CheckLockTimeVerify" of the Bitcoin protocol, wherein a utxo can be locked for a specific amount of time and then released in a manner determined by the developer. For more information, please reach out to our team on Discord.
To add your BTC or ETH-based coin to MM2, first follow the linked checklist below:
Upon completing the checklist, please submit your proposed coin configuration files to the same repository with a pull request.
Features Carried From MM1
AtomicDEX holds support for SPV Electrum-based coins. This feature allows a user to trade with their coins without downloading their coins' blockchain data. This feature is available for all Bitcoin-protocol based coins running native-coin daemons, Ethereum, and Ethereum-based ERC20 tokens. The AtomicDEX API is built to handle the nature of the SPV requirements, providing additional functionality to developers.
AtomicDEX also enables a feature known as Liquidity Multiplication, a protocol that allows the same funds to be used in multiple requests on AtomicDEX "orderbooks." The first request to fill completes the trade, and all outstanding requests are immediately cancelled. This feature is available to the user when providing liquidity to the exchange (called a "Bob-side" trade).
Liquidity Multiplication therefore allows an initial amount of funding to create an exponentially higher amount of liquidity on the exchange. This also provides a special advantage for traders that like to wait for below-market dumps. While this feature is something that any other exchange could implement, few do.
On AtomicDEX, all orderbook entries are 100% backed by real funds, as opposed to a centralized exchange’s vouchers, which may be one reason why AtomicDEX can more readily offer this feature.