MCDEX Arbitrum Integration audit reports

Arbitrummcdex.io

MCDEX Arbitrum Integration has 2 public audit reports from Quantstamp; the latest is Quantstamp, 21 Jun 2021; no critical findings reported.

Critical findings
No open critical findings
Across 2 reports.
Open the latest report
Your label, live
Get the label for your site

Last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.

Audits2

Newest first

ReportSecurity firmDateScopeCritical findingsFindingsSource
MCDEX Arbitrum IntegrationSecurity firm: QuantstampDate: Scope: Files listedNone openFindings: 2 medium · 4 low
1 fixed · 4 acknowledged
certificate.quantstamp.com ↗
MCDEXSecurity firm: QuantstampDate: Scope: Files listedNone openFindings: 1 high · 3 medium · 13 low
10 fixed · 5 acknowledged
certificate.quantstamp.com ↗

Findings28

28 findings in 2 reports: 11 fixed, 3 mitigated, 9 acknowledged (the team chose not to change the code), none open, 5 informational.

SeverityAcknowledgedFixedMitigated
Critical000
High010
Medium320
Low683

Not fixed (9)

MediumAcknowledgedInsurance Fund Not Replenished by Liquidation Penalty RatioMCDEX Arbitrum Integration · Quantstamp · 21 Jun 2021

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 ↗
MediumAcknowledgedNo Settlement for Stale OracleMCDEX Arbitrum Integration · Quantstamp · 21 Jun 2021

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 ↗
MediumAcknowledgedNo Backup Oracle Nor Protection From Erroneous Price DataMCDEX · Quantstamp · 11 Apr 2021

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 ↗
LowAcknowledgedContract Limit Size ExceededMCDEX Arbitrum Integration · Quantstamp · 21 Jun 2021

Without optimizations, the contract size for `LiquidityPoolModule` several contracts`` exceeds 24576 bytes (a limit introduced in Spurious Dragon hard fork).

Report ↗
LowAcknowledgedNonce Not AutoincrementedMCDEX Arbitrum Integration · Quantstamp · 21 Jun 2021

`PoolCreator.createLiquidityPool` allows the caller to introduce the same nonce multiple times which will result in a contract deployment failure.

Report ↗
LowAcknowledged`calculateCashToReturn` Does Not Exclude PerpetualsMCDEX · Quantstamp · 11 Apr 2021

The function `calculateCashToReturn` assumes that the context is fully prepared without excluding any perpetuals.

Report ↗
LowAcknowledgedContract Stores Its Own Balance For Calculation Instead Of Utilising Real-Time Token Contract ValueMCDEX · Quantstamp · 11 Apr 2021

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 ↗
LowAcknowledgedPossible Reward TruncationMCDEX · Quantstamp · 11 Apr 2021

`L61` in `setRewardRate` may truncate unfinished reward distribution.

Report ↗
LowAcknowledgedUnused FunctionsMCDEX · Quantstamp · 11 Apr 2021

Functions `transferFromUserToPool` and `transferFromPoolToUser` are unused. There are also comments indicating risks of incorrect calculation if used in `addLiquidity` or `removeLiquidity`.

Report ↗

Contracts

No deployed address is recorded for these audits.

The reports name a repository or files. Open a report to see its scope.

The repositories and files the reports name

MCDEX Arbitrum Integration: questions

Is MCDEX Arbitrum Integration audited?

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”).

Who audited MCDEX Arbitrum Integration?

Quantstamp wrote the 2 reports Trustblock holds for MCDEX Arbitrum Integration.

Are there open findings in MCDEX Arbitrum Integration’s audits?

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