Compact contracts for Pulse's Midnight DEX
npm install @pulsefinance/dex-contractMidnight AMM DEX contract, written in Compact.
This AMM contract doesn't require a batcher, and the main goal is to protect the treasury and liquidity providers. From the user's point-of-view, each swap is atomic.
pnpm buildFirst make sure the compact compiler is installed. The contract unit tests can be run with the following commands:
1. pnpm install
2. pnpm build
3. pnpm test