Core Contract of Clober DEX
| MarketFactory | MarketRouter | OrderCanceler | |
|---|---|---|---|
| Ethereum | 0x93A43391978BFC0bc708d5f55b0Abe7A9ede1B91 |
0x6d928455050b3b71490fe3B73DD84daD094299c4 |
0x99228D1823baFa822dAB2B2f0a02922082f25E9E |
| Polygon(Deprecated) | 0x93A43391978BFC0bc708d5f55b0Abe7A9ede1B91 |
0x6d928455050b3b71490fe3B73DD84daD094299c4 |
0x99228D1823baFa822dAB2B2f0a02922082f25E9E |
| Arbitrum(Deprecated) | 0x93A43391978BFC0bc708d5f55b0Abe7A9ede1B91 |
0x6d928455050b3b71490fe3B73DD84daD094299c4 |
0x99228D1823baFa822dAB2B2f0a02922082f25E9E |
To install dependencies and compile contracts:
- We use Forge Foundry for test. Follow the guide to install Foundry.
git clone https://github.com/clober-dex/core && cd core
npm installnpm run test:unit:forgenpm run test:limit:forge # Run Limit Order Integration Tests
npm run test:market:forge # Run Market Order Integration Tests
npm run test:claim:forge # Run Claim Order Integration Tests
npm run test:cancel:forge # Run Cancel Order Integration TestsTo run coverage profile:
npm run coverage:local
open coverage/index.htmlTo run lint checks:
npm run prettier:ts
npm run lint:solTo run lint fixes:
npm run prettier:fix:ts
npm run lint:fix:solAudited by Spearbit from January to February 2023. All security risks are fixed. Full report is available here.
- The primary license for Clober Core is the Time-delayed Open Source Software Licence, see License file.
- All files in
contracts/interfacesmay also be licensed under GPL-2.0-or-later (as indicated in their SPDX headers), see LICENSE_GPL. contracts/utils/ReentrancyGuard.solfile is licensed under AGPL-3.0-only (as indicated in their SPDX headers), see LICENSE_APGL.contracts/utils/BoringERC20.solfile is licensed under MIT (as indicated in their SPDX headers).