@pulsefinance/dex-contract
v0.1.13
Published
Compact contracts for Pulse's Midnight DEX
Readme
midnight-dex-contract
Midnight 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.
Compilation steps
- install the compact toolchain (see https://docs.midnight.network/getting-started/installation#4-install-compact-using-the-installer-script)
pnpm build
Testing steps
First make sure the compact compiler is installed. The contract unit tests can be run with the following commands:
pnpm installpnpm buildpnpm test
