MCDEX Arbitrum Integration has 2 public audit reports from Quantstamp; the latest is Quantstamp, 21 Jun 2021; no critical findings reported.
Last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.
Newest first
| Report | Security firm | Date | Scope | Critical findings | Findings | Source |
|---|---|---|---|---|---|---|
| MCDEX Arbitrum Integration | Security firm: Quantstamp | Date: | Scope: Files listed | None open | Findings: 2 medium · 4 low 1 fixed · 4 acknowledged | certificate.quantstamp.com ↗ |
| MCDEX | Security firm: Quantstamp | Date: | Scope: Files listed | None open | Findings: 1 high · 3 medium · 13 low 10 fixed · 5 acknowledged | certificate.quantstamp.com ↗ |
28 findings in 2 reports: 11 fixed, 3 mitigated, 9 acknowledged (the team chose not to change the code), none open, 5 informational.
| Severity | Acknowledged | Fixed | Mitigated |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 0 | 1 | 0 |
| Medium | 3 | 2 | 0 |
| Low | 6 | 8 | 3 |
There is a [recommendation](https://mcdex.io/references/#/en-US/mai-protocol-v3?id=_7-insurance-fund) to fill the initial and supplementary Insurance Funds with capital `liquidityPool.donatedInsuranceFund` from the operator (`We encourage operators to donate to the initial capital and supplement the insurance fund as the contract runs.`). There is also a mechanism to refill the Insurance Fund of the Perpetual with a certain ratio (`perpetual.insuranceFundRate` L457 of `TradeModule`) from the liquidation penalty (`When trader’s position gets liquidated due to insufficient margin, a certain ratio (based on the AMM parameters) of the charged liquidation penalty goes to the insurance fund`) that goes into `liquidityPool.insuranceFund`. But if the donated operator funds are insufficient then the liquidation penalty fraction assigned to insurance will always be insufficient to bail out the liquidated users because the liquidation penalty is always bigger than the ratio assigned for the replenishment (see L470-473 and check that `penaltyToFund < penalty`). > int256 penaltyToLP = liquidityPool.updateInsuranceFund(penaltyToFund); > perpetual.updateCash(address(this), penaltyToLP); > perpetual.updateCash(liquidator, penaltyToLiquidator); > perpetual.updateCash(trader, penalty.add(vaultFee).neg());
Report ↗According to [documentation](https://mcdex.io/references/#/en-US/mai-protocol-v3?id=_6-settlement) `when Oracle does not provide updates for over 24 hours, the contract will also enter settlement`, but this functionality is not implemented.
Report ↗According to `updatePrice` in `contracts\module\PerpetualModule.sol` and `contracts\interface\IOracle.sol`, the oracles that the current system uses do not have any backup. The system only collects price data of each `path` from one oracle so there is no backup oracle. The system could fail to work correctly when any of the oracles is operating abnormally or being manipulated.
Report ↗Without optimizations, the contract size for `LiquidityPoolModule` several contracts`` exceeds 24576 bytes (a limit introduced in Spurious Dragon hard fork).
Report ↗`PoolCreator.createLiquidityPool` allows the caller to introduce the same nonce multiple times which will result in a contract deployment failure.
Report ↗The function `calculateCashToReturn` assumes that the context is fully prepared without excluding any perpetuals.
Report ↗Contract Stores Its Own Balance For Calculation Instead Of Utilising Real-Time Token Contract Value
For `account.cash` and `collateralToken`, the system stores its own balance data for calculation instead of utilising real-time token contract data. This could lead to faulty calculation when non-standard tokens (e.g., those which may be deflationary, involve rebasing, or have wrong return values from `transfer`) are used.
Report ↗`L61` in `setRewardRate` may truncate unfinished reward distribution.
Report ↗Functions `transferFromUserToPool` and `transferFromPoolToUser` are unused. There are also comments indicating risks of incorrect calculation if used in `addLiquidity` or `removeLiquidity`.
Report ↗The reports name a repository or files. Open a report to see its scope.
Trustblock holds 2 public audit reports for MCDEX Arbitrum Integration, dated 11 Apr 2021 to 21 Jun 2021. The latest is by Quantstamp (“MCDEX Arbitrum Integration”).
Quantstamp wrote the 2 reports Trustblock holds for MCDEX Arbitrum Integration.
9 findings are still open or acknowledged in the firms’ reports: 3 medium, 6 low (all acknowledged). No critical finding is reported. Statuses are the security firms’ own.
Something wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.
Tell us