Please describe your proposed solution
Open Batching (OB) refers to the DEX architectural design that enables 3rd parties to handle the off-chain computation needed to process orders in an AMM DEX on Cardano. It represents a move away from a single centralized off-chain sequencer/batcher.
The current Open Batching model has two main flaws:
- Sequencers financially benefit from participating in the protocol by batching orders, without having to put anything at stake and without being vetted in an objective way.
- Sequencers can conduct a denial-of-service attack on the DEX, blocking real users, without any sort of repercussion.
This presents several challenges. Because batching happens off-chain, it's not possible to hold batchers accountable through a smart-contract based system that prevent malicious behavior. Our solution aims to overcome these shortcomings, it is presented in 2 parts:
1) Open Batcher Smart Contract:
The Minswap AMM v2 contract allows the batcher to be a wallet or a script address. Protocol settings can be updated and have the batcher be a new smart contract. This smart contract would allow anyone to batch orders on Minswap as long as they satisfy the protocol's predefined conditions (for example, own a certain amount of MIN for a certain duration).
2) Open-source Batcher Software
We will develop an open-source batcher software version that requires minimal dependencies and is straightforward to set up and start a new batcher. Batchers that satisfy the protocol's predefined conditions will be able to run this software and earn Batcher fees for their contribution to the protocol.
This batcher software will use a default batching algorithm that balances between execution fairness and speed. Given the batching process happens off-chain, we cannot embed into the batching smart contract the ability to detect malicious batcher actions such as denial-of-service attacks. The DAO can vote to ban any batcher they deem malicious and the batcher authorization (license) will be revoked via a multi-sig transaction. The scope of this is outside the Proposal as it belongs to Minswap governance system.