Building an open source DEX tailor-made for eUTxO, composable, fully decentralized, economically viable and with advanced order types and strategies.
This is the total amount allocated to Yadex: an open, eutxo-fit, efficient, versatile and novel DEX.
Efficient aiken on-chain contracts (PoC already done) and offchain rust code (todo) that are easily readable, reusable and elegantly solve the stated goals.
No dependencies
I intend to use the same license as Aiken, an Apache-2.0 license.
Current DEXs on cardano are of three kinds:
I believe there is space for a new DEX that has the following characteristics:
These are all features that fit perfectly with Cardano's eUTxO model. I already have proofs of concept contracts for most of these. Any of the existing DEXes on Cardano have tradeoffs that make some of these properties impossible. For example batching prevents atomic composability. Axo's dedicated processing network makes it expensive and not as easily composable with other markets, etc.
This will benefit all Cardano users as it will make trades more capital-efficient and have a lower impact on the overall network block space.
Remark: This project has many similarities with the very recent beta-release of cardano-swaps, so I see potential collaborations.
This project will have a positive impact for all DeFi users as well as the general Cardano community.
The impact on DeFi users may be measured in multiple ways.
The impact on the general Cardano community can be measure by the saved network throughput when using this protocol compare to other alternatives.
Since all contracts will be public, these measures will also be easily reproducible by any independent third party.
This DEX project is doable with Cardano as it is today. In fact I already have PoC aiken contracts for some of the expected features.
In parallel, I'm building elm-cardano, a new Cardano frontend framework in Elm, a functional language for the web (see my other Fund 11 proposal). This endeavor deepens my understanding of all the low-level Cardano features by dealing with transaction building and community tools like indexers.
Finally, I intend to build the offchain market making provider in Rust. This is a language I've been using for many years. It is well fitted for the task as it can provide fast and reliable code for both Cardano-infra-related needs, and the mathematical optimizations for the market making needs. This part still needs to be done, but I'm confident in my abilities to figure it out.
In general, I've also chosen aiken, rust, and elm because these are languages with welcoming and friendly communities. I'm confident in finding insight in these communities for potential hurdles along the way. I'm also confident using these languages will result in an open source code with many more external contributions than if choosing Haskell.
Build a simple offchain market maker capable of the following:
Build a simple frontend capable of communicating with an offchain market maker (milestone 2) to suggest trades to an end user and submit transactions using these aiken contracts (milestone 1)
This frontend should work on testnet.
Matthieu Pizenberg (myself): Computer Vision research engineer, and PhD, with a passion for open source, functional programming, great tooling and impactful projects such as Cardano.
All three technical aspects of the project (contracts, offchain backend, offchain frontend) will take roughly the same amount of time. I estimate approximately 2 months of work for each, considering 20h of work per week. With an estimate of 3K€ per month, this amounts to 18K€ for the 6 months period.
I estimate an additional 500€ for different cardano-related services for integration tests, like Demeter and other similar infrastructure services.
At an estimated price of 0.40€ per Ada, this amounts to 46250 Ada.
Considering this is a technical proposal leading to a testnet product, I do not intend to spend additional amounts for legal or marketing. These will come in a followup step. Though I expect the open source nature of the project to actively attract interest of the Cardano Dev community, leading to more awareness from the Cardano builders.
My estimate of 3K€/month for a half-time job correlates to experienced developer wages in my country (France). Blockchain positions would typically be much more expensive, so I consider this budget to be very competitive and excellent value for money.