COSMEX combines ⚡-speed of centralized order book exchanges and ownership guarantees of decentralized protocols. No slippage fees, fast off-chain trading, L1 settlement, provable solvency.
COSMEX uses multiple star-shaped two-party Hydra-like state channels.
You trade off-chain on an order book exchange, then settle on-chain. You can always withdraw. Can't lock your funds.
This is the total amount allocated to Cosmex– Level 2 ⚡-speed Cardano Native Assets Order Book Exchange.
Alexander Nemish
No dependencies.
The Cosmex backend and Cardano node listener will not be open-sourced to avoid cloning of the exchange. The project Whitepaper with full protocol description and the on-chain code will be open-sourced, so there are no security risks for users.
Centralized order book exchanges allow fast trading but they often lack solvency proofs and ownership guarantees for your assets. Think FTX or MtGox.
Decentralized AMM exchanges are mostly secure, but those are quite slow and expensive due to slippage and “gas” fees.
Hydra L2 solution requires all parties to participate and be always online with milliseconds response, otherwise the Hydra head is closed. It’s not feasible for a large number of clients who can go offline at any moment.
COSMEX uses a novel approach that uses multiple star-shaped two-party Hydra-like state channels. This solution allows parties to join and leave trading whenever they want without disrupting others.
How does it work in a nutshell?
Overall, Cosmex's channel system provides a secure and efficient way for traders to trade off-chain with the added benefit of reducing transaction fees and increasing transaction speeds.
It's faster and cheaper than on-chain trading, yet still secure and provably solvent.
No slippage, no front-running, no flash-loans, no IOUs. Your keys – your crypto.
Cosmex directly addresses this challenge by providing a high-impact product that significantly enhances the Cardano ecosystem and stimulates further adoption.
Expanded Use Cases: Cosmex, as a semi-centralized L2 order book exchange for Cardano, introduces an efficient and high-speed trading solution for Cardano native tokens, thereby expanding the range of possibilities and use cases within the Cardano ecosystem.
Seamless Integrations: Cosmex will offer an API to enable seamless integrations with other platforms, applications, and services within the Cardano ecosystem. This allows for increased collaboration and mutual enhancement of services, further enriching the Cardano ecosystem's utility and value.
Driving Adoption: The unique combination of high-speed transactions, low costs, and robust security provided by Cosmex is expected to attract a wide range of users, including traders and developers, fostering greater adoption of the Cardano ecosystem.
Privacy and Autonomy: Cosmex operates in a permissionless manner, not requiring KYC, and guarantees users' control over their funds. This feature is likely to appeal to users who value their privacy and autonomy, encouraging them to prefer Cosmex over traditional exchanges.
Cosmex will be the first and the only one fast L2 exchange allowing cheap trading. This should greatly benefit arbitrage traders, and be useful specifically for algorithmic stablecoins like Djed.
Success of the Cosmex project will be primarily measured by three key indicators:
User Adoption: The number of users actively engaging with and testing our platform on the Cosmex Testnet. Increased user activity signifies market interest and successful adoption.
User Feedback: We'll actively seek and analyze feedback from our users. Positive user experiences, alongside constructive suggestions for improvement, will be considered a measure of success.
Proof of Concept Validation: The successful demonstration of our concept, its feasibility, and its appeal to traders will be crucial. Validation that our system works as intended, and that it brings noticeable benefits to traders, will be considered a significant marker of success.
The Cosmex Whitepaper and Cosmex Smart Contract will be fully open source.
All the outputs and results will be published on GitHub and Cosmex site.
The documentation will be published online on https://cosmex.io
The news, updates and announcements will be published on the official Cosmex Twitter:
I’m a former compiler engineer at IOG, I worked on Marlowe DSL (https://marlowe.iohk.io).
I’m a senior Scala engineer with more than 10 years of Scala development experience with companies like UBS and Deutsche Bank.
The main goals for the Cosmex project include:
Enhanced Trading Experience: Uniting the speed of centralized exchanges with the ownership security of decentralized protocols.
Security Assurance: Guaranteeing users' fund safety and unrestricted withdrawal access.
Innovative Infrastructure: Implementing a unique approach with star-shaped two-party state channels on the Cardano blockchain.
Whitepaper Development: Detailing the Cosmex system, benefits, and development roadmap in a comprehensive whitepaper.
We'll validate our approach through:
Proof of Concept (POC): Developing a working model to demonstrate the effectiveness of our system, including its speed, efficiency, and security.
Minimum Viable Product (MVP): Releasing a streamlined version of our product for user testing, ensuring practical usability and robust performance.
Whitepaper Peer Review: Inviting field experts to review our whitepaper, enabling us to refine our design and strategy based on informed feedback.
Through a combination of technical milestones and user-centered evaluations, we aim to build Cosmex as a pioneering, secure, and user-friendly exchange platform.
Milestones/Goals/Deliverables – Hours
Cosmex Whitepaper - 1 month
Write a whitepaper describing Cosmex protocol - 160
Cosmex Smart Contracts - 2 months
Develop Cosmex State Machine contract - 160
Tests for Cosmex State Machine contract - 160
Cosmex Exchange API - 4 months
Matching engine and Order Book implementation - 160
Exchange API implementation and tests - 160
Cardano Node integration - 80
Documentation, examples, tutorials - 80
Testnet Deployment and testing - 160
Cosmex Whitepaper
Deliverables: A comprehensive whitepaper detailing the protocol of Cosmex.
Outputs: An official document describing Cosmex's system, benefits, and development roadmap.
Intended Outcomes: The whitepaper will serve as a solid foundation for the project and a reference point for stakeholders, helping them understand the project's goals, methodology, and roadmap.
Cosmex Smart Contracts
Deliverables: Developed Cosmex State Machine contract and its corresponding tests.
Outputs: A fully functional smart contract that handles the operations of Cosmex, and a set of tests to ensure the reliability and security of the contract.
Intended Outcomes: The smart contracts will enable the core functionalities of Cosmex. The tests will ensure that the system is secure and operates as expected.
Cosmex Exchange API
Deliverables: Matching engine and Order Book implementation, Exchange API implementation, and tests.
Outputs: Software that handles the matching of trades, management of the order book, and provides an interface for interacting with the exchange. Tests will ensure the software performs as expected.
Intended Outcomes: The Exchange API will provide a fast and efficient interface for trading on Cosmex. The matching engine and order book implementation will ensure efficient and fair trade execution.
From the estimates above here is the budget breakdown:
Subtotal hours - 1120
Contingency Budget (20%) - 224 hours
Total engineering hours - 1344
Engineering hour price, including taxes etc, $/hour - 75
Development Budget - $100,800
Ada price (considering volatility) - 0.25
Budget in Ada - 403,200
The Cosmex project presents substantial value for money for the Cardano ecosystem due to several factors:
Fostering Adoption: By offering a Layer 2 solution with fast, cheap, and secure trading functionalities, Cosmex can attract more users to the Cardano ecosystem. The project may help to onboard users who might otherwise be deterred by the latency or high costs of on-chain trading.
Novel Approach to Trading: Cosmex presents a unique solution to common problems faced by centralized and decentralized exchanges. With its provably solvent, semi-centralized design, it brings together the benefits of both worlds, enhancing user experience and overall trust in the Cardano ecosystem.
Expansion of the Cardano DeFi Ecosystem: As the DeFi space is burgeoning, Cosmex can play a crucial role in the growth and diversification of the Cardano DeFi ecosystem. It can pave the way for new DeFi projects to be built on Cardano, reinforcing its competitive positioning in the DeFi market.
Research & Development Contribution: The Cosmex whitepaper and subsequent development will add to the academic and intellectual foundation of the Cardano project. These resources can be used by other developers and researchers in the community to build more advanced solutions.
Security and Ownership: By ensuring user ownership of tokens and guaranteeing solvency, Cosmex provides a significant layer of security for the users in the Cardano ecosystem, which in turn, can boost overall confidence in the system and potentially attract more users.
The estimated cost of the project, considering these benefits, signifies a robust return on investment for the Cardano ecosystem.
The main proposer, Alexander Nemish, will be actively working on the proposal.
I will hire another engineer to help make the project sooner.