Please describe your proposed solution
We propose to develop and open-source a comprehensive frontend and backend framework for an orderbook-based decentralized exchange (DEX) on Cardano. Recognizing that on Cardano, a significant portion of DApp logic occurs off-chain due to the eUTxO model, we understand that only open-sourcing smart contracts is insufficient for making a DApp easily accessible for modifications and deployment. Actions such as order submission and cancellation need to be built into the frontend, enabling users to interact seamlessly with the orderbook via their browser wallets. Additionally, order matching and other critical operations need to be handled in the backend.
Our solution includes a newly designed, generic frontend that is easily customizable, allowing users to replace marketing images and names while retaining a disclaimer acknowledging the use of MuesliSwap's technology. Importantly, the frontend is not just about UI components; it also plays a crucial role in constructing transactions for order placement and cancellation. This ensures that users can interact directly with the DEX in a secure and intuitive manner.
The backend will be a "batteries-included" solution, requiring minimal configuration to set up and run an instance of the DEX. It consists of multiple components that need to interact seamlessly with each other:
- Querying On-Chain Orderbook State: Continuously retrieve the current state of the orderbook from the blockchain.
- Maintaining a Database of Open Orders: Keep a real-time database of open orders, essential for providing up-to-date information to users.
- API Services for Frontend Access: Provide APIs that make the orderbook state easily accessible to the frontend, ensuring efficient data retrieval and display.
- Matchmakers: Include matchmakers that scan the orderbook, find and optimize potential matches, and construct and submit matching transactions to the chain.
By providing both components, we aim to empower developers and entrepreneurs to launch their own orderbook DEX interfaces, fostering innovation and diversity within the Cardano DeFi ecosystem. Our backend requires minimal configuration to set up and run an instance of the DEX, lowering the technical barriers for deployment.
Our approach addresses the current gap in available open-source orderbook DEX frameworks on Cardano, as most existing solutions are liquidity pool-based and lack open-source frontend and backend infrastructure. By sharing our expertise and proven technology, we will lower the barrier to entry and stimulate the growth of decentralized trading platforms on Cardano.