mai-protocol-v3
Mai Protocol V3 designed by MCDEX is an AMM-based decentralized perpetual swap protocol. Perpetual swap is one of the most popular derivatives that has no expiration date, supports margin trading, and has its price soft pegged to index price.
The name Mai comes from two Chinese characters "买" which means buy and "卖" which means sell. Using pinyin (the modern system for transliterating Chinese characters to Latin letters) "买" is spelled Mǎi and "卖" is spelled Mài. Thus, "Mai" means "Buy" and "Sell".
If not specified in advance, we always use decimals 18 as default in the code and documents.
Overview
Overview of mai-protocol-v3.
Reference
Audit
The smart contracts were audited by quantstamp:
Development
Compile contracts
npm install
npx hardhat compile
npx hardhat run scripts/s10test.ts